Bug 118246

Summary: Definition of getJavaLikeExtensions() leads to programming errors
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.1   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Dani Megert CLA 2005-11-28 10:53:28 EST
I20051123-1200

In contrast to all existing get*Extension* methods for file (names) in the Platform the new getJavaLikeExtensions() method is containing the '.'. This leads to programming errors when working with extensions in Eclipse:

IFile.getFileExtension() returns 'java' for Foo.java
IFileEditorMapping.getExtension() for the Java editor returns 'java'
BUT:
JavaCore.getJavaLikeExtensions() returns '.java'
Comment 1 Jerome Lanneluc CLA 2005-11-28 12:21:06 EST
Will need to synchronize with existing clients.
Comment 2 Jerome Lanneluc CLA 2005-11-28 14:36:31 EST
Created attachment 30724 [details]
Proposed patch
Comment 3 Jerome Lanneluc CLA 2005-11-29 04:27:19 EST
Committed patch to HEAD and updated JavaLikeExtensionTests.
Comment 4 Dani Megert CLA 2005-11-29 09:32:13 EST
Verified in I20051129-0800.