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 234720 - [Introduce local extension] inner class problem
Summary: [Introduce local extension] inner class problem
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 12:04 UTC by ssazonov
Modified: 2015-09-17 11:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Broken_Class.png (28.85 KB, image/png)
2013-08-21 12:05 UTC, ssazonov
Details
Introduce_Local_Extension.png (23.68 KB, image/png)
2013-08-21 12:05 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2013-08-21 12:04:56 UTC
1. Create simple java class:

public class ClassA {
	public class InnerClass {
	}
}

2. Right click "InnerClass" > Reafctor > introduce > Local Extension...

3. Keep all parameters default ant perform refactor (see Introduce_Local_Extension.png)

>> new class is created, but there is an error in code (see Broken_Class.png)

Product Version: NetBeans IDE Dev (Build 201308202300)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 ssazonov 2013-08-21 12:05:30 UTC
Created attachment 138991 [details]
Broken_Class.png
Comment 2 ssazonov 2013-08-21 12:05:45 UTC
Created attachment 138992 [details]
Introduce_Local_Extension.png
Comment 3 Martin Balin 2015-09-17 11:16:10 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.