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 267312

Summary: Local Inner Class constructors are not visible for code complete
Product: java Reporter: Maksim Khramov <mkhramov>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Maksim Khramov 2016-07-26 11:16:11 UTC
Product Version: NetBeans IDE Dev (Build 201607260002)
Java: 1.8.0_103; Java HotSpot(TM) 64-Bit Server VM 25.103-b01

Steps to reproduce:
Imagine we have method with inner class:

    public void testMethodWithLocalClass() {
        
        class MethodLocal {
            public MethodLocal(String param) {
                
            }
            public MethodLocal(String param, String other) {
                
            }
        }

    }

After inner class definition type:
MethodLocal ml = new MethodLocal
and press <ctrl>-<Space> to invoke code complete.

No MethodLocal class constrictors are shown

Similar nested class defined on class level shows me 2 available constructors