Tevin Niang-Trost created NETBEANS-1117:
-------------------------------------------

             Summary: 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
         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. Each 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: [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