Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2120

IllegalArgumentException when trying to open any java file ,NB runing with JDK-12 and without nb-javac plugin

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce.

      1. Run apache:master  latest build with jdk-12 and without nb-javac plugin.
      2. Open any java file in editor.
      3. Exception will occur

       

      StackTrace:

       java.lang.IllegalArgumentException: class com.sun.tools.javac.tree.JCTree$JCCase$ByteBuddy$2V4tVwln cannot be defined in its package using org.netbeans.modules.java.hints.spiimpl.Utilities/package
      at net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.inject(ClassInjector.java:911)
      at net.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:388)
      at net.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:79)
      at net.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:4456)
      at org.netbeans.modules.java.hints.spiimpl.Utilities.load(Utilities.java:1323)
      at org.netbeans.modules.java.hints.spiimpl.JackpotTrees.createInstance(JackpotTrees.java:72)
      Caused: java.lang.IllegalStateException
      at org.netbeans.modules.java.hints.spiimpl.JackpotTrees.createInstance(JackpotTrees.java:116)
      at org.netbeans.modules.java.hints.spiimpl.Utilities$JackpotJavacParser.switchBlockStatementGroupListImpl(Utilities.java:1499)
      at org.netbeans.modules.java.hints.spiimpl.Utilities$JackpotJavacParser$ByteBuddy$pd8aRxkL.switchBlockStatementGroup(Unknown Source)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.switchBlockStatementGroups(JavacParser.java:2799)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:2676)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2517)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2456)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2426)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2440)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseSimpleStatement(JavacParser.java:2597)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2517)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2481)
      at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2748)
      at org.netbeans.modules.java.hints.spiimpl.Utilities.parseStatement(Utilities.java:600)
      at org.netbeans.modules.java.hints.spiimpl.Utilities.parseAndAttribute(Utilities.java:383)
      at org.netbeans.modules.java.hints.spiimpl.Utilities.parseAndAttribute(Utilities.java:356)
      at org.netbeans.modules.java.hints.spiimpl.Utilities.parseAndAttribute(Utilities.java:336)
      at org.netbeans.modules.java.hints.spiimpl.Utilities.parseAndAttribute(Utilities.java:332)
      at org.netbeans.modules.java.hints.spiimpl.pm.PatternCompiler.compile(PatternCompiler.java:44)
      at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:535)
      at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:450)
      at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:221)
      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)
      [catch] 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)

       

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              arunava.sinha ARUNAVA SINHA
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h