This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 58506 - NCDFE setting an encoding on a Java file under JDK 1.6
Summary: NCDFE setting an encoding on a Java file under JDK 1.6
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: JDK_SPECIFIC, SIMPLEFIX
: 58592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-02 22:20 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-05-02 22:20:35 UTC
JavaNode was using the sun.io.* package to check for legal charset encoding
names when setting the "Encoding" property on a Java source. Since this package
has been removed in JDK 1.6, trying to set Encoding just results in a
NoClassDefFoundError on CharToByteConvertor. Also JavaNode.java did not compile
under JDK 1.6. Can be fixed to use NIO instead, which is a proper API.
Comment 1 Jesse Glick 2005-05-02 22:22:03 UTC
Fixing in the trunk (with a minor unrelated fix):

committed     Up-To-Date  1.128      
java/src/org/netbeans/modules/java/JavaNode.java
Comment 2 Jesse Glick 2005-06-22 18:56:57 UTC
*** Issue 58592 has been marked as a duplicate of this issue. ***
Comment 3 Tomas Danek 2005-07-15 13:21:36 UTC
 Product Version       = NetBeans IDE Dev (Build 200507061800)
  Operating System      = SunOS version 5.9 running on sparc
  Java; VM; Vendor      = 1.6.0-ea;

Verified.