JDK-6212566 : JDBC RowSets i18n bug - message concatenation
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.sql
  • Affected Version: 5.0u2
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-12-24
  • Updated: 2010-11-01
  • Resolved: 2007-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u4 b01Fixed
Related Reports
Relates :  
Relates :  
Description
The following exception messages cannot be localized properly:
j2se/src/share/classes/com/sun/rowset/RowSetResourceBundle.properties

wrsxmlreader.parseerr = ** Parsing Error
wrsxmlreader.line =  , line
wrsxmlreader.uri =  , uri

xmlrch.warning = ** Warning
xmlrch.line =  , line
xmlrch.uri =  , uri

See the following source code:

j2se/src/share/classes/com/sun/rowset/internal/WebRowSetXmlReader.java

catch (SAXParseException err) {
            System.out.println (wrsReaderResBundle.handleGetObject("wrsxmlreader
.parseerr").toString()
                                + wrsReaderResBundle.handleGetObject("wrsxmlread
er.line").toString()+ err.getLineNumber ()
                                + wrsReaderResBundle.handleGetObject("wrsxmlread
er.uri").toString() + err.getSystemId ());
            err.printStackTrace();
            throw new SQLException(err.getMessage());

j2se/src/share/classes/com/sun/rowset/internal/XmlReaderContentHandler.java

   public void warning (SAXParseException err) throws SAXParseException {
       System.out.println (xmlrchResBundle.handleGetObject("xmlrch.warning").t
oString()
                           + xmlrchResBundle.handleGetObject("xmlrch.line").to
String() + err.getLineNumber ()
                           + xmlrchResBundle.handleGetObject("xmlrch.uri").toS
tring() + err.getSystemId ());
       System.out.println("   " + err.getMessage ());
   } 

These messages should be handled by MessageFormat class to produce concatenated messages in a language-neutral way to allow proper translation.

###@###.### 2004-12-24 21:10:32 GMT

Comments
EVALUATION This should be fixed as part of 6458741
16-11-2006

EVALUATION Need to target this for SE 6 MU1
30-08-2006