Bug 33753

Summary: Missing resource messages could be improved
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.