Bug 5341

Summary: Error message shouldn't expose exception class
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John Arthorne CLA 2001-10-29 15:05:08 EST
1) In the new java class wizard, enter the name "Aux" for the class name. 
2) Click Finish.

An error dialog comes up.  Depending on build, this dialog is something like:

Wizard action failed
Reason: Core exception: Aux.java already exists.

It should not expose the string "Core exception", this is an implementation 
detail.  "Wizard action failed" is also kind of generic.  Better would be:

Unable to create new class
Reason: Aux.java already exists
Comment 1 Dirk Baeumer CLA 2002-01-08 09:20:02 EST
Message still contains "core exception" in build 20011219
Comment 2 Martin Aeschlimann CLA 2002-01-08 09:36:56 EST
Message rendered by resources.core

move to CORE
Comment 3 John Arthorne CLA 2002-01-18 09:47:23 EST
No, I think these messages come from JDT Core.  A grep of *.properties in 
Eclipse for "Core exception" yields only one file:

org.eclipse.jdt.internal.core/messages.properties
Comment 4 Jerome Lanneluc CLA 2002-01-24 06:51:18 EST
Fix to bug 6473 now prevents user from pressing Finish when the name of the 
class is invalid for the current OS.

*** This bug has been marked as a duplicate of 6473 ***