Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Anna Kozlova
Subsystem
Editor. Intention Actions
Affected versions
No Affected versions
Fixed in build
108.1064  
  • Created by   t800t8
    4 years ago (02 Nov 2007 10:25)
  • Updated by   Anna Kozlova
    5 months ago (25 Aug 2011 13:44)
  • Jira: IDEADEV-22984
    (history, comments)
 
IDEA-41841 Do not show "Create Constant Field" quickfix for enum classes
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
When I create a constant field for one enum, the generated code looks like below (before that the enum's body is empty)

public enum Sex {

    ;

    public static final Object MALE = ;
}
Comments (2)
 
History
 
Linked Issues (?)
 
Dmitry Jemerov
  Dmitry Jemerov
02 Nov 2007 21:59
4 years ago
t800t8: Note that a different quickfix - "Create Enum Constant" - does what you need and works correctly.
Anna Kozlova
  Anna Kozlova
25 Aug 2011 13:44
5 months ago
Create Enum Constant is moved on the top of available intentions as it is most probably to be invoked. But that is absolutely correct to create simple constant in enum class so it was not disabled.
Thank you
Related Changes
Resolved Date
5 months ago (25 Aug 2011 13:44)
State
OpenFixed
Fixed in build
No Fixed in build108.1064