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 216968 - Create subclass hint is provided for inner classes
Summary: Create subclass hint is provided for inner classes
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-16 12:20 UTC by Jiri Prox
Modified: 2016-07-07 07:18 UTC (History)
1 user (show)

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 Jiri Prox 2012-08-16 12:20:27 UTC
Create subclass hint is provided also for inner non-static classes. Applying this hint will produce not compilable code.

Steps to reproduce:
1) have a class:
public class TestClass {
 
    class InnerClass {
    }

}

2) use hint to create subclass of InnerClass

->
import javaapplication97.TestClass.InnerClass;

public class InnerClassImpl extends InnerClass { //<< here is syntax error
    
}



Product Version: NetBeans IDE Dev (Build 201208150001)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jan Lahoda 2013-08-30 08:42:12 UTC
I am not completely convinced it is a bug (why force the user to first make the class static just to be able to create a subclass - why the user cannot make it static after creating the subclass?). But if it is, I think it is quite low priority.
Comment 2 Martin Balin 2016-07-07 07:18:55 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss