[ 
https://issues.apache.org/jira/browse/NETBEANS-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reema Taneja updated NETBEANS-463:
----------------------------------
    Labels: JDK10-LVTI  (was: )

> IllegalArgumentExcedption thrown if var type used for instance variables
> ------------------------------------------------------------------------
>
>                 Key: NETBEANS-463
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-463
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Reema Taneja
>            Assignee: Reema Taneja
>            Priority: Trivial
>              Labels: JDK10-LVTI
>
> Var type can only be used for local variables but this exception should not 
> be thrown. We should display appropriate hint for invalid var usage.
> java.lang.IllegalArgumentException: Unsupported type: none, kind: NONE
>  at 
> org.netbeans.modules.java.source.usages.ClassFileUtil.encodeType(ClassFileUtil.java:294)
>  at 
> org.netbeans.modules.java.source.usages.ClassFileUtil.createFieldDescriptor(ClassFileUtil.java:148)
>  at 
> org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:476)
>  at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:397)
>  at 
> org.netbeans.modules.java.navigation.CaretListeningTask.updateNavigatorSelection(CaretListeningTask.java:296)
>  at 
> org.netbeans.modules.java.navigation.CaretListeningTask.run(CaretListeningTask.java:153)
>  at 
> org.netbeans.modules.java.navigation.CaretListeningTask.run(CaretListeningTask.java:55)
> [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)



--
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