Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356691

Summary: Getting resolutions fails in Turkish Locale
Product: z_Archived Reporter: Tankut Koray <tankut>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Tankut Koray CLA 2011-09-04 18:39:16 EDT
Build Identifier: 

When buckminster is trying to get resolutions, it fails with the error given below. Please notice, in exception message it says "PLUGİN" which is not the same as "PLUGIN" in Turkish locale. When making an uppercase, English locale should be forced.

3004: Unexpected error occurred.
  java.lang.IllegalArgumentException: No enum const class org.eclipse.buckminster.pde.internal.EclipsePlatformVersionFinder$InstalledType.PLUGİN
  	at java.lang.Enum.valueOf(Unknown Source)
  	at org.eclipse.buckminster.pde.internal.EclipsePlatformVersionFinder$InstalledType.valueOf(EclipsePlatformVersionFinder.java:1)
  	at org.eclipse.buckminster.pde.internal.EclipsePlatformVersionFinder.<init>(EclipsePlatformVersionFinder.java:51)
  	at org.eclipse.buckminster.pde.internal.EclipsePlatformReaderType.getVersionFinder(EclipsePlatformReaderType.java:194)
  	at org.eclipse.buckminster.core.rmap.model.Provider.findMatch(Provider.java:219)
  	at org.eclipse.buckminster.core.resolver.LocalResolver.localResolve(LocalResolver.java:330)
  	at org.eclipse.buckminster.core.metadata.WorkspaceInfo.resolveLocal(WorkspaceInfo.java:610)
  	at org.eclipse.buckminster.core.metadata.WorkspaceInfo.getResolution(WorkspaceInfo.java:465)
  	at org.eclipse.buckminster.core.metadata.WorkspaceInfo.getResolution(WorkspaceInfo.java:412)
  	at org.eclipse.buckminster.core.metadata.WorkspaceInfo.getAllResolutions(WorkspaceInfo.java:186)
  	at org.eclipse.buckminster.ui.providers.ResolutionsTreeContentProvider$AllResolutionsNode.createNode(ResolutionsTreeContentProvider.java:52)
  	at org.eclipse.buckminster.generic.model.tree.PendingTreeDataNode$1.run(PendingTreeDataNode.java:52)
  	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Reproducible: Always

Steps to Reproduce:
1. On startup, if buckminster is installed
2.
3.
Comment 1 Thomas Hallgren CLA 2011-09-10 05:15:45 EDT
All references to toUpperCase() and toLowerCase() are now using Locale.ENGLISH.

Fixed in http://git.eclipse.org/c/buckminster/buckminster.git/commit/?id=e5169f79ce5a7b8c415fde90cf368924b3dd7856