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

Re: Please ReSubmit: (Review ID: 113555) ResultSetMetaData.getColumnClassName()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta
    • x86
    • windows_95



      Name: boT120536 Date: 12/16/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      Pattern "ImputStream" found in:
              File: rt.jar
              Modified: 2 Jun. 2000 13:11:54
              JDK Version: see above
              Class file: JdbcOdbcResultSetMetaData.class

              Decompiled source fragment:


      ...
      public String getColumnClassName(int i)
              throws SQLException
          {
              if(JdbcOdbcObject.isTracing())
                  JdbcOdbcObject.trace("*ResultSetMetaData.getColumnClassName (" + i
      + ")");
              String s = (new String()).getClass().getName();
              int j = getColumnType(i);
              switch(j)
              {
              case 2: // '\002'
              case 3: // '\003'
                  s = (new BigDecimal(0.0D)).getClass().getName();
                  break;

              case -7:
                  s = (new Boolean(false)).getClass().getName();
                  break;

              case -6:
                  s = (new Byte("0")).getClass().getName();
                  break;

              case 5: // '\005'
                  s = (new Short("0")).getClass().getName();
                  break;

              case 4: // '\004'
                  s = (new Integer(0)).getClass().getName();
                  break;

              case -5:
                  s = (new Long(0L)).getClass().getName();
                  break;

              case 7: // '\007'
                  s = (new Float(0.0F)).getClass().getName();
                  break;

              case 6: // '\006'
              case 8: // '\b'
                  s = (new Double(0.0D)).getClass().getName();
                  break;

              case -3:
              case -2:
                  byte abyte0[] = new byte[0];
                  s = abyte0.getClass().getName();
                  break;

              case -4:
                  s = "java.io.ImputStream";
                  break;

              case 91: // '['
                  s = (new Date(0x1e240L)).getClass().getName();
                  break;

              case 92: // '\\'
                  s = (new Time(0x1e240L)).getClass().getName();
                  break;

              case 93: // ']'
                  s = (new Timestamp(0x1e240L)).getClass().getName();
                  break;

              }
              return s;
          }
      ...


      I want to remind you the lines from java.sql.Types:

        /**
         * <P>The constant in the Java programming language, sometimes referred
         * to as a type code, that identifies the generic SQL type
         * <code>LONGVARBINARY</code>.
         */
                    public final static int LONGVARBINARY = -4;

              

      I think it will be enough to fix the bug. I greatly disappointed with your
      please_do_not_reply policy.
      (Review ID: 113577)
      ======================================================================

            jellissunw Jon Ellis (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: