[jboss-jira] [JBoss JIRA] Created: (JASSIST-58) Complie error on autoboxing

Guy Korland (JIRA) jira-events at lists.jboss.org
Sat Mar 22 14:59:40 EDT 2008


Complie error on autoboxing
---------------------------

                 Key: JASSIST-58
                 URL: http://jira.jboss.com/jira/browse/JASSIST-58
             Project: Javassist
          Issue Type: Bug
            Reporter: Guy Korland
         Assigned To: Shigeru Chiba


e.g.
1. call the following method: void foo(Object obj) as foo(1) causes compile error.
2. casting a primitive to Object causes a compile error e.g.: (Object )1.

The first error is caused by the MemberResolver.compareSignature() line 220:
if (j < 0 || argTypes[n] != CLASS)
                    return NO;
Should be changed to 
if (j < 0)
                    return NO;

The second error caused by CodeGen line 1395:
if (type == CLASS)
Should be removed


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list