Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
12.1
-
None
-
None
-
NetBeans 12.1 (private build) running on 15.0.1
Description
On NetBeans 12.1 running on OpenJDK 15.0.1, I opened the platform/o.n.core project from the NetBeans sources, and got the following exception:
Annotation: An error occurred during parsing of 'java.desktop/javax/swing/JComponent.java in C:\Program Files\Java\zulu15.28.13-ca-jdk15.0.1\lib\src.zip'. Please report a bug against java/source and attach dump file 'C:\Users\ebakke\AppData\Roaming\NetBeans\dev\var\log\JComponent_1.dump'. Annotation: An error occurred during parsing of 'java.desktop/javax/swing/JComponent.java in C:\Program Files\Java\zulu15.28.13-ca-jdk15.0.1\lib\src.zip'. Please report a bug against java/source and attach dump file 'C:\Users\ebakke\AppData\Roaming\NetBeans\dev\var\log\JComponent_1.dump'. An error occurred during parsing of 'java.desktop/javax/swing/JComponent.java in C:\Program Files\Java\zulu15.28.13-ca-jdk15.0.1\lib\src.zip'. Please report a bug against java/source and attach dump file 'C:\Users\ebakke\AppData\Roaming\NetBeans\dev\var\log\JComponent_1.dump'. An error occurred during parsing of 'java.desktop/javax/swing/JComponent.java in C:\Program Files\Java\zulu15.28.13-ca-jdk15.0.1\lib\src.zip'. Please report a bug against java/source and attach dump file 'C:\Users\ebakke\AppData\Roaming\NetBeans\dev\var\log\JComponent_1.dump'. Caused: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.annotation.Annotation not found at com.sun.tools.javac.code.ClassFinder.newCompletionFailure(ClassFinder.java:432) at com.sun.tools.javac.code.ClassFinder.classFileNotFound(ClassFinder.java:419) at com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:414) at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:301) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:673) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1409) at com.sun.tools.javac.code.Symbol.apiComplete(Symbol.java:679) at com.sun.tools.javac.code.Symbol$ClassSymbol.getSuperclass(Symbol.java:1436) at com.sun.tools.javac.code.Types$15.visitClassType(Types.java:2483) at com.sun.tools.javac.code.Types$15.visitClassType(Types.java:2472) at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:1011) at com.sun.tools.javac.code.Types$UnaryVisitor.visit(Types.java:4948) at com.sun.tools.javac.code.Types.supertype(Types.java:2469) at com.sun.tools.javac.code.Types$12.visitClassType(Types.java:2132) at com.sun.tools.javac.code.Types$12.visitClassType(Types.java:2121) at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:1011) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4868) at com.sun.tools.javac.code.Types.asSuper(Types.java:2118) at com.sun.tools.javac.code.Types$12.visitClassType(Types.java:2146) at com.sun.tools.javac.code.Types$12.visitClassType(Types.java:2121) at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:1011) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4868) at com.sun.tools.javac.code.Types.asSuper(Types.java:2118) at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:1182) at com.sun.tools.javac.code.Types$4.visitClassType(Types.java:1102) at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:1011) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4868) at com.sun.tools.javac.code.Types.isSubtype(Types.java:1098) at com.sun.tools.javac.code.Types.isSubtypeUncheckedInternal(Types.java:1024) at com.sun.tools.javac.code.Types.isSubtypeUnchecked(Types.java:1010) at com.sun.tools.javac.code.Types.isConvertible(Types.java:608) at com.sun.tools.javac.code.Types.isAssignable(Types.java:2326) at com.sun.tools.javac.comp.Check$1.compatible(Check.java:566) at com.sun.tools.javac.comp.Check.checkType(Check.java:607) at com.sun.tools.javac.comp.Check.checkType(Check.java:594) at com.sun.tools.javac.comp.Annotate.attributeAnnotationValues(Annotate.java:476) at com.sun.tools.javac.comp.Annotate.attributeAnnotation(Annotate.java:432) at com.sun.tools.javac.comp.Annotate.annotateNow(Annotate.java:341) at com.sun.tools.javac.comp.Annotate.lambda$annotateLater$0(Annotate.java:267) at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:191) at com.sun.tools.javac.comp.Annotate.unblockAnnotations(Annotate.java:144) at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:157) at com.sun.tools.javac.main.JavaCompiler.enterDone(JavaCompiler.java:1868) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1149) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:399) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:327) [catch] at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:674) at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:380) at org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:88) at org.netbeans.modules.javadoc.hints.Analyzer.lambda$findInheritedParams$1(Analyzer.java:760) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:502) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:452) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:423) at org.netbeans.modules.javadoc.hints.Analyzer.findInheritedParams(Analyzer.java:759) at org.netbeans.modules.javadoc.hints.Analyzer.analyze(Analyzer.java:180) at org.netbeans.modules.javadoc.hints.JavadocHint.errorHint(JavadocHint.java:192) at jdk.internal.reflect.GeneratedMethodAccessor185.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:676) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:827) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:605) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:701) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:245) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:228) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65) at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
The "JComponent_1.dump" file is attached (containing, I believe, just the source code for the JComponent library class and the exception).