harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Timoshenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1802) [drlvm][jit] Jitrino.OPT does not handle unresolved method parameters properly
Date Wed, 11 Oct 2006 08:46:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1802?page=comments#action_12441381 ] 
George Timoshenko commented on HARMONY-1802:

Mikhail is right. 

return type usage appeares during parsing bytecode. There is a way that alows to generate
throwLinkingException helper call at the point of the usage of problem return type (if it
is). This functionality needs an opcode (of usage) and constant pool index of the return value
class (or any other item that fails to be resolved at the point).

But the input parameters are processed in the JavaLabelPrepass constructor, before bytecode
parsing is started. We can not get the constant pool index of a problem class at that point.
The only way for the case is to return compilation failure.

> [drlvm][jit] Jitrino.OPT does not handle unresolved method parameters properly
> ------------------------------------------------------------------------------
>                 Key: HARMONY-1802
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1802
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Mikhail Fursov
> Jitrino.OPT does not handle unresolved method parameters properly. Here is the testcase.
> compile this code:
> public class Test {
> public static void main(String[] args) {
> foo(null);
> }
> static void foo(X x) {}
> }
> class X {
> }
> delete X.class file and run the test with -Xem:opt cmdline option.
> The same problem occurs if class X is exception handler parameter.

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


View raw message