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] Created: (HARMONY-4380) org.apache.harmony.vts.test.vm.jvms.classFile.attributes.enclosingMethod.enclosingMethod08.enclosingMethod08n
Date Fri, 06 Jul 2007 11:31:08 GMT

                 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

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 
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.

View raw message