Bug 33753 - Missing resource messages could be improved
Summary: Missing resource messages could be improved
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 10:06 EST by Olivier Thomann CLA
Modified: 2003-03-10 11:55 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 Olivier Thomann CLA 2003-03-04 10:06:24 EST
When the resources from the batch compiler are missing, the error message
doesn't allow to find out which resource is missing. This could be improved.
We get:
java.lang.ExceptionInInitializerError: java.util.MissingResourceException

Stack trace:
   java/lang/Throwable.<init>()V
   java/lang/Throwable.<init>(Ljava/lang/String;)V
   java/lang/Exception.<init>(Ljava/lang/String;)V
   java/lang/RuntimeException.<init>(Ljava/lang/String;)V
   java/util/MissingResourceException.<init>
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
   java/util/ResourceBundle.getBundleImpl
(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/Resourc
eBundle;
   java/util/ResourceBundle.getBundle(Ljava/lang/String;Ljava/util/Locale;)
Ljava/util/ResourceBundle;
   org/eclipse/jdt/internal/compiler/batch/Main.relocalize()V
   org/eclipse/jdt/internal/compiler/batch/Main.<clinit>()V
   java/lang/Class.initializeImpl()V
   java/lang/Class.initialize()V
   java/lang/Class.initialize()V

instead of something like:
Missing resource : org/eclipse/jdt/internal/compiler/batch/messages.properties
for locale en_US
Missing resource : org/eclipse/jdt/internal/compiler/util/messages.properties
for locale en_US
Comment 1 Philipe Mulet CLA 2003-03-04 10:28:07 EST
Should improve to ease diagnosis of bogus packaging problem.
Comment 2 Olivier Thomann CLA 2003-03-04 10:43:06 EST
The new messages reported cannot be NLS'd, otherwise their resource might not be
available and the problem cannot be reported.
Changed applied to the batch compiler, Util class in the compiler.util package
and the problem factory.
Fixed and released in the 2.1 stream.
Comment 3 Olivier Thomann CLA 2003-03-10 11:55:47 EST
Verified.