{"action":"created","issue":{"url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1372","repository_url":"https://api.github.com/repos/rzwitserloot/lombok","labels_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1372/labels{/name}","comments_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1372/comments","events_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1372/events","html_url":"https://github.com/rzwitserloot/lombok/issues/1372","id":224801493,"number":1372,"title":"Compiling class using Lombok with JDK9 doesn't work as advertised.","user":{"login":"schauder","id":136683,"avatar_url":"https://avatars0.githubusercontent.com/u/136683?v=4","gravatar_id":"","url":"https://api.github.com/users/schauder","html_url":"https://github.com/schauder","followers_url":"https://api.github.com/users/schauder/followers","following_url":"https://api.github.com/users/schauder/following{/other_user}","gists_url":"https://api.github.com/users/schauder/gists{/gist_id}","starred_url":"https://api.github.com/users/schauder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schauder/subscriptions","organizations_url":"https://api.github.com/users/schauder/orgs","repos_url":"https://api.github.com/users/schauder/repos","events_url":"https://api.github.com/users/schauder/events{/privacy}","received_events_url":"https://api.github.com/users/schauder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-27T14:26:34Z","updated_at":"2018-03-04T19:13:13Z","closed_at":"2017-05-08T19:27:37Z","author_association":"NONE","body":"Based on #985 I tried to compile the following java file `LombokTest.java`:\r\n\r\n```\r\nimport lombok.Data;\r\n\r\n@Data\r\npublic class LombokTest {\r\n  private final int id;\r\n}\r\n```\r\n\r\nUsing the following command:\r\n\r\n     ~/.jenv/candidates/java/9/bin/javac -J--permit-illegal-access -cp /Users/jschauder/.m2/repository/org/projectlombok/lombok/1.16.16/lombok-1.16.16.jar LombokTest.java \r\n\r\nThis resulted in the following exception:\r\n```\r\njava.lang.IllegalArgumentException: URI has an authority component\r\n\tat java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:53)\r\n\tat java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:99)\r\n\tat java.base/java.nio.file.Paths.get(Paths.java:138)\r\n\tat lombok.javac.apt.LombokFileObjects$Java9Compiler.wrap(LombokFileObjects.java:142)\r\n\tat lombok.javac.apt.LombokFileObjects.createEmpty(LombokFileObjects.java:123)\r\n\tat lombok.javac.apt.InterceptingJavaFileManager.getJavaFileForOutput(InterceptingJavaFileManager.java:47)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceOrClassFile(JavacFiler.java:499)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceFile(JavacFiler.java:425)\r\n\tat lombok.javac.apt.LombokProcessor.forceNewRound(LombokProcessor.java:333)\r\n\tat lombok.javac.apt.LombokProcessor.process(LombokProcessor.java:322)\r\n\tat lombok.core.AnnotationProcessor$JavacDescriptor.process(AnnotationProcessor.java:114)\r\n\tat lombok.core.AnnotationProcessor.process(AnnotationProcessor.java:164)\r\n\tat lombok.launch.AnnotationProcessorHider$AnnotationProcessor.process(AnnotationProcessor.java:74)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:968)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:884)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2200(JavacProcessingEnvironment.java:108)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1206)\r\n\tat jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1315)\r\n\tat jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1246)\r\n\tat jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:922)\r\n\tat jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:302)\r\n\tat jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:162)\r\n\tat jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:55)\r\n\tat jdk.compiler/com.sun.tools.javac.Main.main(Main.java:41)\r\nwarning: Can't force a new processing round. Lombok won't work.\r\nLombokTest.java:3: error: package javax.annotation is not visible\r\n@Data\r\n^\r\n  (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)\r\nLombokTest.java:5: error: package javax.annotation is not visible\r\n  private final int id;\r\n                    ^\r\n  (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)\r\n2 errors\r\n1 warning\r\n```\r\n\r\nJDK version is: \r\n```\r\njava version \"9-ea\"\r\nJava(TM) SE Runtime Environment (build 9-ea+166)\r\nJava HotSpot(TM) 64-Bit Server VM (build 9-ea+166, mixed mode)\r\n```\r\n\r\nAm I doing something wrong? Or did Java9 break something in Lombok?"},"comment":{"url":"https://api.github.com/repos/rzwitserloot/lombok/issues/comments/370255151","html_url":"https://github.com/rzwitserloot/lombok/issues/1372#issuecomment-370255151","issue_url":"https://api.github.com/repos/rzwitserloot/lombok/issues/1372","id":370255151,"user":{"login":"eximius313","id":5578017,"avatar_url":"https://avatars0.githubusercontent.com/u/5578017?v=4","gravatar_id":"","url":"https://api.github.com/users/eximius313","html_url":"https://github.com/eximius313","followers_url":"https://api.github.com/users/eximius313/followers","following_url":"https://api.github.com/users/eximius313/following{/other_user}","gists_url":"https://api.github.com/users/eximius313/gists{/gist_id}","starred_url":"https://api.github.com/users/eximius313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eximius313/subscriptions","organizations_url":"https://api.github.com/users/eximius313/orgs","repos_url":"https://api.github.com/users/eximius313/repos","events_url":"https://api.github.com/users/eximius313/events{/privacy}","received_events_url":"https://api.github.com/users/eximius313/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T19:13:13Z","updated_at":"2018-03-04T19:13:13Z","author_association":"NONE","body":"@rspilker , if it's about `By default, lombok adds @javax.annotation.Generated(\"lombok\") to all generated methods.`\r\n\r\nHere is quotation from [JEP](http://openjdk.java.net/jeps/320#Java-EE-modules):\r\n```\r\nsome applications rely on the @Generated annotation whose type, \r\njavax.annotation.Generated, is co-located with JAX-WS in JDK 9. \r\n(Applications may choose instead to rely on the type \r\njavax.annotation.processing.Generated that was introduced in Java SE 9)\r\n```\r\n\r\nSo maybe it would be good, to make that transition?"}}
{"actor":{"display_login":"eximius313"}}