Bug 118246 - Definition of getJavaLikeExtensions() leads to programming errors
Summary: Definition of getJavaLikeExtensions() leads to programming errors
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.2 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-28 10:53 EST by Dani Megert CLA
Modified: 2005-11-29 09:32 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (7.39 KB, patch)
2005-11-28 14:36 EST, Jerome Lanneluc CLA
no flags Details | Diff

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