Bug 157517
| Summary: | JTree.getSelectionModel().setSelectionMode throws exception | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pete Zaitcev <zaitcev> | ||||||
| Component: | gcc4 | Assignee: | Thomas Fitzsimmons <fitzsim> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | rawhide | ||||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2006-02-03 21:39:31 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 150222 | ||||||||
| Attachments: |
|
||||||||
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 |
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