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

Reema Taneja closed NETBEANS-1117.
----------------------------------
    Resolution: Duplicate

Please refer https://issues.apache.org/jira/browse/NETBEANS-463
This is a javac issue, fixed in JDK 11.
https://bugs.openjdk.java.net/browse/JDK-8202178 

This issue was fixed in nb-javac plugin.

> java.lang.IllegalArgumentException when using var in the class level
> --------------------------------------------------------------------
>
>                 Key: NETBEANS-1117
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1117
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Editor
>    Affects Versions: 9.0
>         Environment: Windows 10 ver. 1803
>            Reporter: Tevin Niang-Trost
>            Assignee: ARUNAVA SINHA
>            Priority: Critical
>         Attachments: IDE log.txt, UI log.txt
>
>
> Occurs when one types _var_ in the class level of any class (i.e. not in a 
> static initializer block, instance initializer block, or method), including 
> static nested classes, inner classes, local classes, and anonymous classes.
> Examples below. Typing _var_ in each situation brings up a dialog box which 
> says _java.lang.IllegalArgumentException: Unsupported type: none, kind: NONE._
> {{class Test {}}
>  {{    var}}
>  {{}}}
> {{class Test {}}
>  {{    static class StaticNestedTest {}}
>  {{        var}}
>          }
>  {{}}}
> {{class Test {}}
>  {{    class InnerTest {}}
>  {{        var}}
>          }
>  {{}}}
> {{class Test {}}
>  {{    Runnable anonTest = new Runnable() {}}
>  {{        var}}
>          }
>  {{}}}
> {{class Test {}}
>  {{    void x() {}}
>  {{        class LocalTest {}}
>  {{            var}}
>                 }
>         }
>  {{}}}
> UI and IDE logs attached as .txt files.



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