Thomas confirmed that we should be using java.io.CharConversionException instead of sun.io.MalformedInputException - see http://developer.classpath.org/mediation/ClasspathMigration Proposed patch: mport.java.~1.1.1.1.~ 2005-07-17 18:55:39.000000000 -0600 --- DSExportImport.java 2006-01-20 13:24:47.000000000 -0700 *************** *** 452,459 **** } } /* Create error message */ ! String msg; ! if (e instanceof sun.io.MalformedInputException) { String[] args = {String.valueOf(_numEntry), e.toString()}; msg = DSUtil._resource.getString("import", "malformedinputerror-label", args); --- 452,460 ---- } } /* Create error message */ ! String msg; ! /* see if there was an invalid char in the input e.g. a non-utf8 8 bit char */ ! if (e instanceof java.io.CharConversionException) { String[] args = {String.valueOf(_numEntry), e.toString()}; msg = DSUtil._resource.getString("import", "malformedinputerror-label", args);
Reviewed by: Nathan, Noriko (Thanks!) Files: directoryconsole/src/com/netscape/admin/dirserv/DSExportImport.java Branch: HEAD Fix Description: Use java.io.CharConversionException instead. Platforms tested: Fedora Core 4 Flag Day: no Doc impact: no QA impact: should be covered by regular nightly and manual testing New Tests integrated into TET: none
Verified that we're no tusing any sun.io classes in the directoryconsole code. Marking as VERIFIED.