Community
Participate
Working Groups
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
Should improve to ease diagnosis of bogus packaging problem.
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.
Verified.