Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Open
Assignee
Alexey Kudravtsev
Subsystem
Editor. Intention Actions
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Chris Kent
    4 years ago (29 Oct 2007 16:07)
  • Updated by   Chris Kent
    2 months ago (29 Nov 2011 14:23)
  • Jira: IDEADEV-22880
    (history, comments)
 
IDEA-41812 "Create Constructor Matching Super" ignores final parameters code style setting
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
The "Create Constructor Matching Super" quick-fix creates non-final constructor parameters whatever the settings in code style -> generated code -> make generated parameters final.

Environment: Windows XP, bundled JRE
Comments (2)
 
History
 
Linked Issues (?)
 
Chris Kent
  Chris Kent
29 Oct 2007 21:34
4 years ago
This only seems to happen when the superclass is in a library. If the superclass is part of the same project as the subclass it works fine.
Chris Kent
  Chris Kent
29 Nov 2011 14:23
2 months ago
This is still a problem. I think the parameters are copied directly from the superclass constructor including whether they are final. I currently have the opposite problem from the one above. My code style settings specify non-final parameters but IDEA is generating final parameters when the superclass constructor parameters are final.