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 165001

Summary: [67cat] AssertionError in internal compiler upon illegal indirect reference to 'this'
Product: java Reporter: matthies <matthies>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description matthies 2009-05-12 20:43:38 UTC
The following source file causes an AssertionError in the internal compiler:

    public class Test
    {
        static class Outer
        {
            Outer(Inner inner) { }

            interface Inner { void f(); }
        }

        static class Foo extends Outer
        {
            Foo() { super(new Inner() { public void f() { Foo.this.notify(); } }); }
        }
    }

See http://statistics.netbeans.org/analytics/exception.do?id=202209 for the stacktrace.
Happens reproducably in NB 6.7 Beta.
Regression from NB 6.5, which doesn't cause an AssertionError with this example.
Comment 1 matthies 2009-05-12 20:47:35 UTC
*** Issue 164999 has been marked as a duplicate of this issue. ***
Comment 2 Jiri Prox 2009-05-13 14:56:55 UTC
*** Issue 165000 has been marked as a duplicate of this issue. ***
Comment 4 Quality Engineering 2009-05-14 07:53:59 UTC
Integrated into 'main-golden', will be available in build *200905140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/60bcfc0fcfcc
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #165001: AssertionError in internal compiler upon illegal indirect reference to 'this' - fixed.
Comment 5 matthies 2009-07-16 18:10:39 UTC
Verified in 6.7.