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

ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.jvm.UninitializedType

    XMLWordPrintableJSON

Details

    Description

      Hello,

      This error probably occurred while editing the code.

      Please help

      Thank you

      java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.jvm.UninitializedType (com.sun.tools.javac.code.Type$ClassType and com.sun.tools.javac.jvm.UninitializedType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @387d1e00)java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.jvm.UninitializedType (com.sun.tools.javac.code.Type$ClassType and com.sun.tools.javac.jvm.UninitializedType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @387d1e00) at com.sun.tools.javac.jvm.Code.emitInvokespecial(Code.java:468) at com.sun.tools.javac.jvm.Items$MemberItem.invoke(Items.java:532) at com.sun.tools.javac.jvm.Gen.visitApply(Gen.java:1864) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1760) at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:868) at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1727) at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1547) at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:601) at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:636) at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:622) at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:673) at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1088) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1062) at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:601) at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:636) at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:958) at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:921) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:908) at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:601) at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2402) at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:786) at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1752) at com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:592) at com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:669) at com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:595)[catch] at org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303) 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$Work$3.call(RepositoryUpdater.java:3300) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.call(RepositoryUpdater.java:3255) 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$Work.scanFiles(RepositoryUpdater.java:3255) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:3785) 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: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

        Activity

          People

            Unassigned Unassigned
            Michal_cat Michal Rama
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: