This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 59467 - Don't allow to add static declarations to InnerClass
Summary: Don't allow to add static declarations to InnerClass
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 10:23 UTC by Milan Kubec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-06-01 10:23:36 UTC
[dev-200505311800, JDK 1.5.0_03]

User is able to add static declarations into InnerClass through Explorer UI
(context menu on InnerClass):
Static Initializer
Interface
AnnotationType
All those are illegal in InnerClass and therefore UI should not allow to add them.
Comment 1 Pavel Flaska 2005-08-25 14:40:21 UTC
Do we really want to fix this? In my opinion, it is correct to add them, even if
it causes error in source code. User may then decide to change the declaration
of inner class to static.

If we decide to fix it, we have to fix also customizers which shouldn't allow to
add static field and method. I can imagine many of other problematic usecases.

Opinions?
Comment 2 Jan Becicka 2005-08-26 12:43:13 UTC
My opinion is, that this issue is not P3, but P4 or P5. No feature is broken, no
data corruption. Just minor ui issue.
Comment 3 Pavel Flaska 2005-08-29 09:46:18 UTC
Lowering priority.
Comment 4 Jan Becicka 2007-09-19 17:26:38 UTC
Wizard removed.