Bug 75885

Summary: [1.5][compiler] Naming convention for local innerclasses
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mlists
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Philipe Mulet CLA 2004-10-08 07:40:58 EDT
Build 3.1m2

JLS 13.1 (3rd edition) now mandates that local innerclass names be formed as: 

binary name of immediate enclosing type followed by '$', number and local type
name. 

Thus, X$1$Local is no longer appropriate, and should rather be: X$1Local

Javac 1.4.2 implements this.

We should consider this change for 1.4 and 1.5 modes. Also check the existing
tools which are doing name guessing (source mapper for instance).
Comment 1 Jerome Lanneluc CLA 2004-10-13 12:47:43 EDT
Java model and source mapper updated to support this naming convention.
Comment 2 Philipe Mulet CLA 2005-05-09 07:19:43 EDT
Will only address this defect in 1.5 compliant mode and above.
Retrofitting this into 1.4 compliance level could introduce nasty problems to
existing customers. 

Only late versions of 1.4.2 javac seem to exhibit this behavior.

Fixed
Comment 3 Olivier Thomann CLA 2005-05-11 10:06:46 EDT
Verified in I20050510-0010