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 168716 - Unwarranted error shown on inner superclass super() call
Summary: Unwarranted error shown on inner superclass super() call
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-07-16 22:41 UTC by matthies
Modified: 2009-07-17 13:57 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-07-16 22:41:36 UTC
Example:

    package test;

    public class Test
    {
        class Inner { }
    
        static class Sub extends Inner
        {
            Sub(Test test)
            {
                test.super();
            }
        }
    }

On "test.super();" an error "no enclosing instance of type test.Test is in scope" is displayed, although the code is 
correct and the external compiler (javac 1.6) accepts it.

The error only shows up every other time the source is scanned; sometimes you have to make some dummy change and/or 
save the file for the error to appear. This hints at that the referential circularity isn't properly handled internally.
Comment 1 matthies 2009-07-16 22:46:02 UTC
Regression from NB 6.5.
Comment 2 Dusan Balek 2009-07-17 13:57:39 UTC
Already fixed in the current dev build.