Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
Next
-
None
-
None
-
- NetBeans built from source at a15d4b6b26e5e7f113af440a8afc34c8685befb7
- JDK 17 b25 both for NetBeans and the project
Description
With
- NetBeans built from source at a15d4b6b26e5e7f113af440a8afc34c8685befb7
- JDK 17 b25 both for NetBeans and the project
- compile on save disabled for the Maven project
- nb-javac not installed
I get
java.lang.ClassNotFoundException: com.sun.tools.javac.util.Filter at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:209) Caused: java.lang.ClassNotFoundException: com.sun.tools.javac.util.Filter starting from ModuleCL@6c0f5225[org.netbeans.modules.java.source.base] with possible defining loaders null and declared parents [ModuleCL@5d826d6e[org.netbeans.modules.classfile], ModuleCL@34fa9785[org.netbeans.modules.queries], ModuleCL@6925d6ba[org.netbeans.modules.java.lexer], org.netbeans.MainImpl$BootClassLoader@32e6e9c3, ModuleCL@35df23a9[org.netbeans.modules.parsing.lucene], ModuleCL@22a45042[org.openide.text], ModuleCL@67e3914b[org.netbeans.api.annotations.common], ModuleCL@376fa70f[org.netbeans.lib.nbjavac], ModuleCL@59cb883b[org.netbeans.libs.javacimpl], ModuleCL@62fb8d2b[org.netbeans.api.scripting], ...20 more] at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:211) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) Caused: java.lang.NoClassDefFoundError: com/sun/tools/javac/util/Filter at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.throwTree(VanillaCompileWorker.java:667) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitBlock(VanillaCompileWorker.java:650) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitBlock(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1083) at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:880) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:94) at jdk.compiler/com.sun.source.util.TreeScanner.visitIf(TreeScanner.java:443) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1539) at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:880) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:94) at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:109) at jdk.compiler/com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:255) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitBlock(VanillaCompileWorker.java:647) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitBlock(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1083) at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:880) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:94) at jdk.compiler/com.sun.source.util.TreeScanner.visitMethod(TreeScanner.java:213) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:602) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitMethod(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:933) at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:880) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:94) at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:109) at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:117) at jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:194) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:715) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:840) at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:880) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:109) at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:117) at jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:148) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitCompilationUnit(VanillaCompileWorker.java:551) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitCompilationUnit(VanillaCompileWorker.java:535) at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:611) at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:880) at org.netbeans.modules.java.source.indexing.VanillaCompileWorker.dropMethodsAndErrors(VanillaCompileWorker.java:1032) [catch] at org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:326) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634) at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork$4.call(RepositoryUpdater.java:5714) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork$4.call(RepositoryUpdater.java:5622) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$4.run(RepositoryUpdater.java:2127) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2123) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2104) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1500(RepositoryUpdater.java:136) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:5749) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:5419) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:5038) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5821) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6095) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6091) 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.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6091) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 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)
on the following incorrect source:
package test.mavenproject1;import java.util.function.Predicate;public class NewMain { public static void main(String[] args) { // TODO code application logic here Predicate<?> p = f -> System.out.println("" + p); }; } }
Attachments
Attachments
Issue Links
- relates to
-
NETBEANS-5349 Update Netbeans Codebase to Account for deprecated/removed API in Java 11/15
- Open