negora created NETBEANS-913:
-------------------------------

             Summary: "AssertionError" when writing an annotation inside of a 
type cast
                 Key: NETBEANS-913
                 URL: https://issues.apache.org/jira/browse/NETBEANS-913
             Project: NetBeans
          Issue Type: Bug
          Components: cnd - Code Completion
    Affects Versions: 9.0
         Environment: Operative system : Debian 9.4 Stretch
Kernel: Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 
GNU/Linux
JDK: Oracle JDK 10.0.1
            Reporter: negora


I've just created a Maven project with JAR packaging, using Java 10. I've added 
a class called "Main" and I've written this in it:
  
{code:java}
public class Main {

    public static void main (String[] arguments) {
        var foo = (String) null;
    }

}{code}
Then, I've typed an "at" symbol (@) inside the type cast, in order to get this:
{code:java}
public class Main {

    public static void main (String[] arguments) {
        var foo = (@Nullable String) null;
    }

}{code}
 

 



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