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 - [67cat] AssertionError in internal compiler upon illegal indirect reference to 'this'
Summary: [67cat] AssertionError in internal compiler upon illegal indirect reference t...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
: 164999 165000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-12 20:43 UTC by matthies
Modified: 2009-07-16 18:10 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 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.