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

JdbcOdbcResultSet.getString(int) is broken

    Details

    • Subcomponent:
    • Resolved In Build:
      03
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      Verified

      Backports

        Description



        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)
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: