db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (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
Date Tue, 13 Jul 2010 16:20:52 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Hillegas updated DERBY-4459:
---------------------------------

    Attachment: derby-4459-01-aa-disableOptimization.diff

Attaching derby-4459-01-aa-disableOptimization.diff. This disables the same over-eager optimization
which led to DERBY-1030.

For more context, please see DERBY-1030. This is another case of that optimization being applied
too liberally. This patch disables that optimization when the bind() phase has determined
that an argument needs to be cast to a primitive in order to match the selected method. Running
tests now.

Touches the following files:

-------------

M      java/engine/org/apache/derby/impl/sql/compile/StaticMethodCallNode.java

Disables the optimization.

-------------

M      java/testing/org/apache/derbyTesting/functionTests/tests/lang/RoutineTest.java

Adds a test case.


> 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
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4459
>                 URL: https://issues.apache.org/jira/browse/DERBY-4459
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.4.2.1, 10.5.3.1, 10.6.1.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>         Attachments: derby-4459-01-aa-disableOptimization.diff, derby-4459.sql, derby4459.java
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message