{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1619","repository_url":"https://api.github.com/repos/mapstruct/mapstruct","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1619/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1619/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1619/events","html_url":"https://github.com/mapstruct/mapstruct/issues/1619","id":364837532,"node_id":"MDU6SXNzdWUzNjQ4Mzc1MzI=","number":1619,"title":"SpecificCompilerWorkarounds.replaceTypeElementIfNecessary NPE","user":{"login":"Riscue","id":6816806,"node_id":"MDQ6VXNlcjY4MTY4MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/6816806?v=4","gravatar_id":"","url":"https://api.github.com/users/Riscue","html_url":"https://github.com/Riscue","followers_url":"https://api.github.com/users/Riscue/followers","following_url":"https://api.github.com/users/Riscue/following{/other_user}","gists_url":"https://api.github.com/users/Riscue/gists{/gist_id}","starred_url":"https://api.github.com/users/Riscue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riscue/subscriptions","organizations_url":"https://api.github.com/users/Riscue/orgs","repos_url":"https://api.github.com/users/Riscue/repos","events_url":"https://api.github.com/users/Riscue/events{/privacy}","received_events_url":"https://api.github.com/users/Riscue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-28T10:46:13Z","updated_at":"2018-10-02T08:32:54Z","closed_at":null,"author_association":"NONE","body":"- [x] Is this an issue (and hence not a question)?\r\nThis is a bug, i think.\r\n\r\nIf i use `@Context` annotation with primitive `boolean` in abstract method's parameters this Exception is thrown. If i use with Object `Boolean` works fine.\r\n\r\nMapstruct version in project is 1.2.0.Final.\r\n\r\nSpecificCompilerWorkarounds.java:112 is ( 1.2.0.Snapshot )\r\n`        if ( element.getEnclosedElements().isEmpty() ) {`\r\n\r\nThat line is at SpecificCompilerWorkarounds.java:99 nowadays.\r\n\r\n\r\nException and StackTrace:\r\n`Error:(28, 17) java: *******.java 28: Internal error in the mapping processor: java.lang.NullPointerException  \tat org.mapstruct.ap.internal.util.workarounds.SpecificCompilerWorkarounds.replaceTypeElementIfNecessary(SpecificCompilerWorkarounds.java:112)  \tat org.mapstruct.ap.internal.util.Executables.getAllEnclosedAccessors(Executables.java:208)  \tat org.mapstruct.ap.internal.util.Executables.getAllEnclosedExecutableElements(Executables.java:188)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.retrieveMethods(MethodRetrievalProcessor.java:153)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.retrieveLifecycleMethodsFromContext(MethodRetrievalProcessor.java:279)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.getMethodRequiringImplementation(MethodRetrievalProcessor.java:245)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.getMethod(MethodRetrievalProcessor.java:199)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.retrieveMethods(MethodRetrievalProcessor.java:154)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.process(MethodRetrievalProcessor.java:96)  \tat org.mapstruct.ap.internal.processor.MethodRetrievalProcessor.process(MethodRetrievalProcessor.java:72)  \tat org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:280)  \tat org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:260)  \tat org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:226)  \tat org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:162)  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:627)  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:556)  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:701)  \tat com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:987)  \tat com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)  \tat com.sun.tools.javac.main.Main.compile(Main.java:353)  \tat com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)  \tat org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:199)  \tat org.jetbrains.jps.javac.ExternalJavacProcess.compile(ExternalJavacProcess.java:196)  \tat org.jetbrains.jps.javac.ExternalJavacProcess.access$400(ExternalJavacProcess.java:48)  \tat org.jetbrains.jps.javac.ExternalJavacProcess$CompilationRequestsHandler$1.run(ExternalJavacProcess.java:263)  \tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)  \tat java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)  \tat java.util.concurrent.FutureTask.run(FutureTask.java:138)  \tat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)  \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)  \tat java.lang.Thread.run(Thread.java:662) `"},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/426192977","html_url":"https://github.com/mapstruct/mapstruct/issues/1619#issuecomment-426192977","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1619","id":426192977,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjE5Mjk3Nw==","user":{"login":"sjaakd","id":6173283,"node_id":"MDQ6VXNlcjYxNzMyODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6173283?v=4","gravatar_id":"","url":"https://api.github.com/users/sjaakd","html_url":"https://github.com/sjaakd","followers_url":"https://api.github.com/users/sjaakd/followers","following_url":"https://api.github.com/users/sjaakd/following{/other_user}","gists_url":"https://api.github.com/users/sjaakd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjaakd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjaakd/subscriptions","organizations_url":"https://api.github.com/users/sjaakd/orgs","repos_url":"https://api.github.com/users/sjaakd/repos","events_url":"https://api.github.com/users/sjaakd/events{/privacy}","received_events_url":"https://api.github.com/users/sjaakd/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T08:32:54Z","updated_at":"2018-10-02T08:32:54Z","author_association":"CONTRIBUTOR","body":"> We use in my company JDK 1.6\r\n\r\nThat might very well be the origin of the exception (and the reason @chris922  can't reproduce it).  \r\n\r\nPlease note: we are discussing to drop support for Java6 and Java7 in the upcoming releases (1.4, 2.0?)"}}
{"actor":{"display_login":"sjaakd"}}