Bug 5341 - Error message shouldn't expose exception class
Summary: Error message shouldn't expose exception class
Status: RESOLVED DUPLICATE of bug 6473
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-29 15:05 EST by John Arthorne CLA
Modified: 2002-02-12 06:21 EST (History)
0 users

See Also:


Attachments

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