Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-488

DatabaseMetaData.getColumns() fails on iSeries JDK 1.4 with verfier error on generated class.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.1.0
    • Fix Version/s: 10.0.2.2, 10.1.2.1, 10.2.1.6
    • Component/s: SQL
    • Labels:
      None

      Description

      Analysis shows that
      ----------------------------------------------------------------------
      The problem is occurring starting at offset 2007 in method e23. There is an invokeinterface to method setWidth(int, int, boolean) of class VariableSizeDataValue. This invoke returns a value of class DataValueDescriptor. That value is in turn stored in field e142 at offset 2015 in method e23. The problem is that field e142 is a NumberDataValue, and DataValueDescriptor is not a valid subclass of NumberDataValue. Thus the store is not allowed.
      ----------------------------------------------------------------------

      Looking at the generated setWidth() calls I see one in BinaryOperatorNode where the return (DataValueDescriptor) is not cast to the type of the field it is stored in.

        Attachments

        1. patch488.txt
          0.6 kB
          Daniel John Debrunner

          Activity

            People

            • Assignee:
              kmarsden Kathey Marsden
              Reporter:
              djd Daniel John Debrunner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: