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

Verification error at execute-time when an outer function which takes a primitive arg is wrapped around an inner function which returns the corresponding Java wrapper object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.4.2.1, 10.5.3.1, 10.6.1.0
    • 10.5.3.2, 10.6.2.4, 10.7.1.1
    • SQL
    • None

    Description

      An insane Derby raises a verification error when trying to run the following query:

      values( negateInt( getNullInt() ) );

      where negateInt() takes a primitive int argument and getNullInt() returns an Integer.

      Sane Derby raises an assertion. The same test case, run against 10.3.3.1, also fails but raises a more graceful compile-time exception.

      Attachments

        1. derby-4459.sql
          0.4 kB
          Richard N. Hillegas
        2. derby4459.java
          0.1 kB
          Richard N. Hillegas
        3. derby-4459-01-aa-disableOptimization.diff
          3 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: