Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
11.0
-
None
-
None
Description
I can't share the proprietary code, but I got quite a few of these:
It was shortly after a command-line git branch-switch which introduced a new interface and implemented it in the class which triggered the error. I think the background scanner had not at that point discovered the new interface because it was showing as a compile error in the IDE, despite the underlying code/project being entirely legal according to gradle/javac.
Caused: java.lang.NullPointerException
at com.sun.tools.javac.tree.TreeInfo.isModuleInfo(TreeInfo.java:1241)
at org.netbeans.lib.nbjavac.services.NBJavadocEnter.visitTopLevel(NBJavadocEnter.java:83)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:537)
at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:328)
at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:343)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:813)
at com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:878)
at com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:827)
at com.sun.tools.javac.main.JavaCompiler.lambda$new$210(JavaCompiler.java:362)
at com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:384)
at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:300)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:1276)
at com.sun.tools.javac.comp.Check.importAccessible(Check.java:3753)
at com.sun.tools.javac.comp.TypeEnter$ImportsPhase.lambda$resolveImports$201(TypeEnter.java:373)
at com.sun.tools.javac.code.Scope$FilterImportScope.lambda$null$29(Scope.java:963)
at com.sun.tools.javac.util.Iterators$2.update(Iterators.java:103)
at com.sun.tools.javac.util.Iterators$2.<init>(Iterators.java:99)
at com.sun.tools.javac.util.Iterators.createFilterIterator(Iterators.java:98)
at com.sun.tools.javac.code.Scope$FilterImportScope.lambda$getSymbolsByName$30(Scope.java:961)
at com.sun.tools.javac.code.Scope$CompoundScope.lambda$null$33(Scope.java:1090)
at com.sun.tools.javac.util.Iterators$CompoundIterator.update(Iterators.java:78)
at com.sun.tools.javac.util.Iterators$CompoundIterator.hasNext(Iterators.java:60)
at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:2244)
at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2328)
at com.sun.tools.javac.comp.Resolve.findIdentInternal(Resolve.java:2357)
at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2343)
at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2604)
at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3924)
at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2329)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:672)
at com.sun.tools.javac.comp.Attr.attribType(Attr.java:742)
at com.sun.tools.javac.comp.Attr.attribType(Attr.java:735)
at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:414)
at com.sun.tools.javadoc.main.JavadocMemberEnter.visitVarDef(JavadocMemberEnter.java:84)
at org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:92)
at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:968)
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:172)
at com.sun.tools.javac.comp.MemberEnter.signature(MemberEnter.java:120)
at com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:255)
at com.sun.tools.javadoc.main.JavadocMemberEnter.visitMethodDef(JavadocMemberEnter.java:70)
at org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitMethodDef(NBJavadocMemberEnter.java:74)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:878)
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:172)
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:184)
at com.sun.tools.javac.comp.TypeEnter$MembersPhase.finishClass(TypeEnter.java:971)
at com.sun.tools.javac.comp.TypeEnter$MembersPhase.runPhase(TypeEnter.java:951)
at com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:298)
at com.sun.tools.javac.comp.TypeEnter$MembersPhase.doCompleteEnvs(TypeEnter.java:886)
at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:267)
at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
at com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:214)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:820)