Bug 75885 - [1.5][compiler] Naming convention for local innerclasses
Summary: [1.5][compiler] Naming convention for local innerclasses
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 07:40 EDT by Philipe Mulet CLA
Modified: 2005-05-11 10:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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