netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lahoda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NETBEANS-252) Code Generator unable to add method to enum constants
Date Sun, 07 Jan 2018 13:13:00 GMT
Jan Lahoda created NETBEANS-252:
-----------------------------------

             Summary: Code Generator unable to add method to enum constants
                 Key: NETBEANS-252
                 URL: https://issues.apache.org/jira/browse/NETBEANS-252
             Project: NetBeans
          Issue Type: Bug
          Components: java - Source
            Reporter: Jan Lahoda
            Assignee: Jan Lahoda


Based on:
https://netbeans.org/bugzilla/show_bug.cgi?id=271633

reported by [~cowwoc]

Consider code like this:
---
package javaapplication1;

public enum E {
    A
    {

    };
}
---

Place the caret between the { } of the enum constant, invoke code completion and try to override
toString(). This will fail, and the method won't be added.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message