Bug 178478 - DSExportImport.java uses non-standard sun.io class
DSExportImport.java uses non-standard sun.io class
Status: CLOSED CURRENTRELEASE
Product: 389
Classification: Community
Component: Directory Console (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Rich Megginson
Viktor Ashirov
1.0.2
:
Depends On:
Blocks: 152373 183369 240316
  Show dependency treegraph
 
Reported: 2006-01-20 16:34 EST by Rich Megginson
Modified: 2015-12-07 12:04 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-12-07 12:04:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Rich Megginson 2006-01-20 16:34:28 EST
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);
Comment 1 Rich Megginson 2006-02-09 14:04:55 EST
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
Comment 2 Nathan Kinder 2007-12-20 14:35:44 EST
Verified that we're no tusing any sun.io classes in the directoryconsole code.

Marking as VERIFIED.

Note You need to log in before you can comment on or make changes to this bug.