Community
Participate
Working Groups
Build Identifier: M20110909-1335 No value error fired when you type a string in an integer property field. The decorator doesn't change; Reproducible: Always Steps to Reproduce: 1. Open sapphire-gallery.xml (Sapphire Samples 0.4) 2. Navigate to node "value properties/numbers/integer" 3. type "abc" in any of the three fields
Could you specify the exact error that you are seeing. I did not run into any issues following your steps.
(In reply to comment #1) > Could you specify the exact error that you are seeing. I did not run into any > issues following your steps. My bad, I didn't see the NullPointerException in my developpement instance of eclipse. It seems like I can't load the integer class java.lang.NullPointerException at org.eclipse.sapphire.modeling.localization.ClassLocalizationService.load(ClassLocalizationService.java:54) I guess it's my configuration... I'll try to fix it myself, and if I can't you might see me again on the forums. I see that you deal with locale in the ClassLocalizationService and my locale is french. Sorry for polluting bugzilla, I can't understand how I missed the exception but I did...
It could be an issue with locales. I will try switching my locale later today to see what happens.
After debugging a little it seems like it's not a locale issue but a classloader one. In ClassLocalizationService //final InputStream stream = this.cl.getClassLoader().getResourceAsStream( resPath ); getClassLoader returns "null" when cl is an Integer, BigInteger, etc. Take a look at getClassLoader javadoc : // public ClassLoader getClassLoader() // // Returns the class loader for the class. Some implementations may use null to // represent the bootstrap class loader. This method will return null in such // implementations if this class was loaded by the bootstrap class loader. I guess that's why it throws the exception
What JVM are you using?
(In reply to comment #5) > What JVM are you using? java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
I have reproduced this problem when launching Eclipse on Oracle JVM with non-English locale. Working on a fix.
I have fixed the problem. Sorry for the delay. Please verify.
Sorry for the delay. Bug fixed in 0.5.
Thanks. Closing.