[
https://issues.apache.org/jira/browse/DERBY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-4958:
---------------------------------
Attachment: derby-4952-01-aa-convertArrayTypesToCellTypes.diff
Attaching derby-4952-01-aa-convertArrayTypesToCellTypes.diff. This is a first
attempt to fix this problem. If this works, I will add regression tests in a
follow-on patch. Running the existing tests now.
This patch makes the ClassInspector compare cell types rather than array types
when checking to see if a wrapper type is compatible with a primitive type
according to the ANSI rules.
Touches the following file:
M java/engine/org/apache/derby/iapi/services/loader/ClassInspector.java
> Wrapper types not recognized when resolving procedures with OUT arguments.
> --------------------------------------------------------------------------
>
> Key: DERBY-4958
> URL: https://issues.apache.org/jira/browse/DERBY-4958
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.8.0.0
> Reporter: Rick Hillegas
> Assignee: Rick Hillegas
> Attachments: derby-4952-01-aa-convertArrayTypesToCellTypes.diff,
> zz.java
>
>
> Derby does not recognize the wrapper objects when trying to match Java
> methods to the signatures of procedures with OUT arguments. For instance, the
> following procedure declaration
> create procedure proc
> (
> out intCol int
> )
> language java
> parameter style java
> no sql
> external name 'zz.proc'
> is supposed to match both of the following Java signatures:
> public static void proc( int[] arg ) {...}
> public static void proc( Integer[] arg ) {...}
> However, only the first signature is matched. I will attach a test case which
> shows this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.