Bug 237304
Summary: | JEditorPane.setContentType NullPointer | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sander Hoentjen <sander> |
Component: | gcc | Assignee: | Thomas Fitzsimmons <fitzsim> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | neugens |
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: | 2007-05-14 23:45:59 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: |
Description
Sander Hoentjen
2007-04-20 17:56:38 UTC
Hello! I've run your test program with cacao + classpath HEAD and it works. I'm on a Fedora 6 and I've tested it with the system gcj (4.1.1 20070105) and with sun java 6u1 and it works too. I think this can be either a regression introduced classpath and then fixed or a gcj-1.5 issue. Yes, the problem is this code: try { styleSheet = new StyleSheet(); Class c = HTMLEditorKit.class; InputStream in = c.getResourceAsStream(DEFAULT_CSS); InputStreamReader r = new InputStreamReader(in); styleSheet.loadRules(r, null); r.close(); } catch (IOException ex) { // No style available. } DEFAULT_CSS is "default.css" which not being compiled into libgcj (but is built into GNU Classpath's glibj.zip). The exception is silently eaten and manifests later as a NullPointerException. I'm working on a fix. I committed my fix to redhat/gcc-4_1-branch. It will be included in the next Rawhide gcc build, at which point I'll close this bug report. thanks, i grabbed the build from koji and it works fine. The fix hit Rawhide. Closing. |