[
https://issues.apache.org/jira/browse/DERBY-6511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937759#comment-13937759
]
Knut Anders Hatlen commented on DERBY-6511:
-------------------------------------------
Maybe we need to make MethodCallNode.generateAndCastOneParameter() generate a
call such as java.lang.Integer.valueOf(int) in the case where argumentType is
the corresponding primitive type to parameterType. That seems to be where the
result from the inner function call is pushed to the stack as an int instead of
an Integer.
> java.lang.NoSuchMethodError chaining a function and procedure
> -------------------------------------------------------------
>
> Key: DERBY-6511
> URL: https://issues.apache.org/jira/browse/DERBY-6511
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.11.0.0
> Reporter: Rick Hillegas
> Assignee: Rick Hillegas
> Attachments: derby-6511.sql, derby-6511.sql
>
>
> java.lang.NoSuchMethodError is raised when calling a procedure which takes an
> Integer argument and passing it the result of a function which returns an
> int. The error is raised in generated code.
--
This message was sent by Atlassian JIRA
(v6.2#6252)