Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4330997

JdbcOdbcResultSet.getString(int) is broken

XMLWordPrintable

    • 03
    • x86
    • windows_nt
    • Verified



        Name: stC104175 Date: 04/17/2000


        Java HotSport(TM) Client VM (1.3.0rc3, mixed mode, build Z)


        In the rc3 u optimized the getString(int)-method of the
        sun.jdbc.odbc.JdbcOdbcResultSet-class to create the byte-Array where the
        database field content gets read into only if this field isn't empty or null.
        Well done, but u did forget to make the method
        public String BytesToChars(String s, byte abyte0[]) in the super class
        JdbcOdbcObject
        accept a null parameter for the byte array.
        Now we always get a NullPointerException trying to read an empty String-Field.
        (Review ID: 103776)
        ======================================================================

              jellissunw Jon Ellis (Inactive)
              stompkinsunw Sean Tompkins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: