You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "negora (JIRA)" <ji...@apache.org> on 2018/06/04 12:04:00 UTC

[jira] [Created] (NETBEANS-913) "AssertionError" when writing an annotation inside of a type cast

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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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