Bug 42588 - Incorrect selection of current enclosing instance
Summary: Incorrect selection of current enclosing instance
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-05 06:37 EDT by Philipe Mulet CLA
Modified: 2003-10-08 07:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-09-05 06:37:35 EDT
Build 3.0M3

The following code should not compiler in 1.4 compliant mode (used to be 
accepted incorrectly by 1.3 compilers).

public class X {	
	class Y extends X {}	
	class Z extends Y {	
		Z(){} // no enclosing instance
	}	
}	

This error is motivated by a spec clarification for selecting the current 
enclosing instance (also see http://www.ergnosis.com/java-spec-report/java-
language/jls-8.8.5.1-d.html).

This error is now reported by Jikes and Javac 1.4.2, we should also migrate.
Comment 2 Philipe Mulet CLA 2003-09-05 12:54:42 EDT
Fixed selection algorithm
Comment 3 Philipe Mulet CLA 2003-09-08 04:20:29 EDT
Fixed
Comment 4 David Audel CLA 2003-10-08 07:32:22 EDT
Verified.