harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vera Petrashkova (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4380) [drlvm][classloader] VM does not reject a class in which class_index in EnclosingMethod attribute refers to improper class
Date Mon, 09 Jul 2007 11:07:05 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vera Petrashkova updated HARMONY-4380:
--------------------------------------

    Summary: [drlvm][classloader]  VM does not reject a class in which class_index in EnclosingMethod
attribute refers to improper class  (was: org.apache.harmony.vts.test.vm.jvms.classFile.attributes.enclosingMethod.enclosingMethod08.enclosingMethod08n)

> [drlvm][classloader]  VM does not reject a class in which class_index in EnclosingMethod
attribute refers to improper class
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4380
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4380
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vera Petrashkova
>            Priority: Minor
>
> The changes to the specification of J2SE VM edition defines EnclosingMethod attribute
whith the following structute:
>     EnclosingMethod_attribute {
>         u2 attribute_name_index;
>         u4 attribute_length;
>         u2 class_index
>         u2 method_index;
>     }
> and  says that
>     The value of the class_index item must be a valid index into the
>     constant_pool table. The constant_pool entry at that index
>     must be a CONSTANT_Class_info structure representing
>     the innermost class that encloses the declaration of the current
>     class.
> But VM does not reject class file when CONSTANT_Class_index refers to "this" class
> in  EnclosingMethod attribute instead of enclosing class
> To reproduce this bug run VTS test 
>     vm/jvms/classFile/attributes/enclosingMethod/enclosingMethod08/enclosingMethod08.xml
    
> which fails.
> This test also fails on RI.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message