ASF Bugzilla – Attachment 6196 Details for
Bug 19634
org.apache.poi.hssf.record.UnicodeString doesn't compile under JDK 1.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for the bug.
patch.txt (text/plain), 1.05 KB, created by
Donald Bell
on 2003-05-05 03:11:46 UTC
(
hide
)
Description:
Fix for the bug.
Filename:
MIME Type:
Creator:
Donald Bell
Created:
2003-05-05 03:11:46 UTC
Size:
1.05 KB
patch
obsolete
>Index: UnicodeString.java >=================================================================== >RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/hssf/record/UnicodeString.java,v >retrieving revision 1.9 >diff -u -r1.9 UnicodeString.java >--- UnicodeString.java 1 May 2003 12:50:06 -0000 1.9 >+++ UnicodeString.java 5 May 2003 03:03:38 -0000 >@@ -158,7 +158,15 @@ > field_3_string = new String(data, 3, getCharCount(), > StringUtil.getPreferredEncoding()); > } catch (UnsupportedEncodingException e) { >- throw new RuntimeException(e); >+ // Extract the message out of our encoding >+ // error and then bubble a runtime exception. >+ String errorMessage = e.getMessage(); >+ >+ // Make sure the message isn't null >+ if (errorMessage == null) { >+ errorMessage = e.toString(); >+ } >+ throw new RuntimeException(errorMessage); > } > } > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19634
: 6196