Eirik Bakke created NETBEANS-453:
------------------------------------

             Summary: "Incorrect number of type arguments" exception during 
Java editing
                 Key: NETBEANS-453
                 URL: https://issues.apache.org/jira/browse/NETBEANS-453
             Project: NetBeans
          Issue Type: Bug
          Components: java - Source
    Affects Versions: 9.0
         Environment: Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-205-on-20180202) on OpenJDK 64-Bit Server VM 
9.0.4.1+11, Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)
            Reporter: Eirik Bakke


I got the following Exception while editing a Java file in NetBeans 9.0 Beta:

{noformat}
java.lang.IllegalArgumentException: Incorrect number of type arguments
 at com.sun.tools.javac.model.JavacTypes.getDeclaredType0(JavacTypes.java:270)
 at com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:245)
 at 
org.netbeans.modules.java.hints.errors.Utilities.resolveCapturedTypeInt(Utilities.java:619)
 at 
org.netbeans.modules.java.hints.errors.Utilities.resolveCapturedType(Utilities.java:538)
 at 
org.netbeans.modules.java.hints.errors.Utilities.resolveTypeForDeclaration(Utilities.java:519)
 at org.netbeans.modules.java.hints.errors.AddCast.computeType(AddCast.java:193)
 at org.netbeans.modules.java.hints.errors.AddCast.run(AddCast.java:222)
 at 
org.netbeans.modules.java.hints.infrastructure.CreatorBasedLazyFixList.compute(CreatorBasedLazyFixList.java:123)
 at 
org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:87)
 at 
org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:33)
 [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:514)
 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){noformat}

Reporting this as a new JIRA issue since the old NetBeans exception reporter no 
longer seems to be in use.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to