[
https://issues.apache.org/jira/browse/BCEL-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270749#comment-14270749
]
Jérôme Leroux edited comment on BCEL-188 at 1/9/15 8:25 AM:
------------------------------------------------------------
Attach new patch with (supersedes the previous one {{BCEL-188.patch}}):
* Fix for BCEL-188
* Test for BCEL-188
Previous patch does not manage {{byte}} type in
{{Type.normalizeForStackOrLocal()}}. New patch handles them correctly and also
adds a new test.
was (Author: jejecool):
Attach new patch with (supersedes the previous one _BCEL-188.patch_):
* Fix for BCEL-188
* Test for BCEL-188
Previous patch does not manage _byte_ type. New patch handles them correctly
and also adds a new test.
> Verification error when returning an Object
> -------------------------------------------
>
> Key: BCEL-188
> URL: https://issues.apache.org/jira/browse/BCEL-188
> Project: Commons BCEL
> Issue Type: Bug
> Components: Verifier
> Reporter: Jérôme Leroux
> Fix For: 6.0
>
> Attachments: BCEL-188-2.patch, BCEL-188.patch
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> The bytecode generated from the following code produces a verification error:
> {code:java}
> public static Object test(){
> return new Object();
> }
> {code}
> Here is the error message:
> {quote}
> Pass 3b, method number 2 \['public static Object test()'\]:
> VERIFIED_REJECTED
> Constraint violated in method 'public static Object test()':
> Returned type void does not match Method's return type java.lang.Object
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)