You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/05/05 05:01:08 UTC

DO NOT REPLY [Bug 19634] New: - org.apache.poi.hssf.record.UnicodeString doesn't compile under JDK 1.3

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19634>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19634

org.apache.poi.hssf.record.UnicodeString doesn't compile under JDK 1.3

           Summary: org.apache.poi.hssf.record.UnicodeString doesn't compile
                    under JDK 1.3
           Product: POI
           Version: 2.0-dev
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: donald@bell.name


The org.apache.poi.hssf.record.UnicodeString class doesn't compile under JDK 
1.3 because it is calling new RuntimeException(Exception) this constructor was 
introduced in JDK 1.4

The offending code is in the method fillFields(byte[] , short) and the snippet 
below shows the problem.


            try {
                field_3_string = new String(data, 3, getCharCount(), 
                                        StringUtil.getPreferredEncoding());
            } catch (UnsupportedEncodingException e) {
                throw new RuntimeException(e);
            }