lkishalmi opened a new pull request, #4036:
URL: https://github.com/apache/netbeans/pull/4036

   
   Bumped into the following, while the IDE tried to index the Gradle project:
   ```
   java.lang.ClassCastException: class 
com.sun.tools.javac.code.Type$UnknownType cannot be cast to class 
com.sun.tools.javac.code.Type$ClassType 
(com.sun.tools.javac.code.Type$UnknownType and 
com.sun.tools.javac.code.Type$ClassType are in unnamed module of loader 
org.netbeans.StandardModule$OneModuleClassLoader @29bfa8a1)
        at 
org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:694)
        at 
org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.visitClass(VanillaCompileWorker.java:535)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:860)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:86)
        at 
org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:886)
        at 
org.netbeans.modules.java.source.indexing.VanillaCompileWorker$3.scan(VanillaCompileWorker.java:535)
        at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:96)
   ```
   
   This one is just something blind, prevent the ClassCastException to happen 
in this case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to