JDK-6328463 : encoding bug (6317399): com/sun/corba/se/impl/ior/WireObjectKeyTemplate.java
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba:idl
  • Affected Version: 5.0u4
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-24
  • Updated: 2024-04-12
  • Resolved: 2018-02-14
Related Reports
Relates :  
Description
Please first read Comments section here and in 6317399.

In com/sun/corba/se/impl/ior/WireObjectKeyTemplate.java (5.0u4):

// wrong line 134
      String str = new String( bid ) ;
// correction
	String str = null;
	try {
	    str = new String( bid ,"ISO-8859-1") ;
	} catch (java.io.UnsupportedEncodingException ex) {
	}

Comments
The Java EE and CORBA modules have been removed from JDK 11. There are no plans to fix this issue.
14-02-2018

EVALUATION There are several places in the ORB that convert byte[] to String, but assume that default encoding is ISO-8859-1. When the default encoding is set to something else, this code can fail. The fix is already described in the description.
11-08-2006

SUGGESTED FIX See Description.
24-09-2005