You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Rick Hillegas (JIRA)" <ji...@apache.org> on 2011/01/04 17:52:45 UTC

[jira] Created: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

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
         Attachments: 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.


[jira] Assigned: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas reassigned DERBY-4958:
------------------------------------

    Assignee: Rick Hillegas

> 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: 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.


[jira] Updated: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4958:
---------------------------------

    Attachment: derby-4958-01-ab-convertArrayTypesToCellTypes.diff

Attaching second rev of the patch, derby-4958-01-ab-convertArrayTypesToCellTypes.diff. This rev includes a regression test for the change. Committed at subversion revision 1055181.

Touches the following files:

M      java/engine/org/apache/derby/iapi/services/loader/ClassInspector.java
M      java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignaturesTest.java
M      java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignatures.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, derby-4958-01-ab-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.


[jira] Updated: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4958:
---------------------------------

    Attachment: zz.java

Attaching zz.java, a test case which demonstrates the problem.

> 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
>         Attachments: 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.


[jira] Closed: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas closed DERBY-4958.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 10.8.0.0

> 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
>             Fix For: 10.8.0.0
>
>         Attachments: derby-4952-01-aa-convertArrayTypesToCellTypes.diff, derby-4958-01-ab-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.


[jira] Commented: (DERBY-4958) Wrapper types not recognized when resolving procedures with OUT arguments.

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977439#action_12977439 ] 

Rick Hillegas commented on DERBY-4958:
--------------------------------------

The existing tests passed cleanly me for me except for the testPing Heisenbug.

> 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.