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

Summary: NCDFE setting an encoding on a Java file under JDK 1.6
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker Keywords: JDK_SPECIFIC, SIMPLEFIX
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.