Project: JDT
Bug 118246 Definition of getJavaLikeExtensions() leads to programming errors
Reported: 2005-11-28 10:53:28 | Status: verified fixed

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'

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchPage.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertyKeyHyperlink.java