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 17732 - Copying a class into an outer class should make it static
Summary: Copying a class into an outer class should make it static
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-15 21:45 UTC by Jesse Glick
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 Jesse Glick 2001-11-15 21:45:57 UTC
[dev nov 15] Start with code like this:

public class A {
    public static class B {}
}

Now in the Explorer, Cut B and Paste to the folder that A was in. B is
removed from A, and a new outer class B is made. Fine. Now Cut the new
B and Paste into the class A. It is pasted in. But now it looks like
this:

public class A {
    public class B {}
}

Since B was before the data transfer not a nonstatic inner class of A
(i.e. had no A.this reference), after the transfer it should be static
to keep its behavior as much the same as possible.
Comment 1 Jan Chalupa 2001-11-27 13:03:49 UTC
Target milestone -> 3.3.1.
Comment 2 _ ttran 2001-11-29 15:56:26 UTC
the impl lives in the java module I believe
Comment 3 Svata Dedic 2002-01-07 17:05:28 UTC
Fixed in release33,
/cvs/openide/src/org/openide/src/nodes/ClassElementNode.java,v  <--  
ClassElementNode.java
new revision: 1.41.12.1; previous revision: 1.41

Comment 4 Jan Becicka 2002-04-12 15:38:06 UTC
VERIFIED
Comment 5 Quality Engineering 2003-07-01 13:18:43 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.