And a strange exception at that... This is the code: try{ final JTree tree = new JTree(super_root); tree.getSelectionModel().setSelectionMode (TreeSelectionModel.SINGLE_TREE_SELECTION); } catch(Exception e) { System.err.println("Exception at start"); System.err.println(e.getMessage()); } The code fails to print the name (e.getMessage() returns "null"): [zaitcev@lembas gtest1]$ gcj -C gtest1.java [zaitcev@lembas gtest1]$ gcj -C Device.java [zaitcev@lembas gtest1]$ /usr/java/jdk1.5.0_01/bin/java gtest1 # (the above works just fine - posts empty window) [zaitcev@lembas gtest1]$ gij gtest1 Exception at start null Versions: gcc-java 4.0.0-4 java-1.4.2-gcj-compat 1.4.2.0-40jpp_14rh
Created attachment 114282 [details] gtest1.java The test case. This needs one more file to operate (Device.java).
Created attachment 114283 [details] Device.java
Anthony, will you see if this bug is fixed in GNU Classpath HEAD?
Works with Classpath+jamvm perfectly $ jamvm gtest1 mark 5 mark 6
Great, I'll wait until the fixes make their way into Rawhide via libgcj before closing this bug.
So, what version of gcj is this? I can close the bug myself once it turns over.
I'm pretty sure it'll be in gcj 4.1 when that hits Rawhide. At that point, retest and close the bug if it's fixed.
Confirmed fixed with gcc-java-4.1.0-0.12