Complie error on autoboxing
---------------------------
Key: JASSIST-58
URL:
https://jira.jboss.org/jira/browse/JASSIST-58
Project: Javassist
Issue Type: Bug
Reporter: Guy Korland
Assignee: 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: