Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 42386 invoked from network); 13 Jul 2007 11:33:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 11:33:29 -0000 Received: (qmail 92639 invoked by uid 500); 13 Jul 2007 11:33:31 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 92547 invoked by uid 500); 13 Jul 2007 11:33:31 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 92538 invoked by uid 99); 13 Jul 2007 11:33:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 04:33:31 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 04:33:28 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B878471420E for ; Fri, 13 Jul 2007 04:33:07 -0700 (PDT) Message-ID: <30012084.1184326387751.JavaMail.jira@brutus> Date: Fri, 13 Jul 2007 04:33:07 -0700 (PDT) From: "Pavel Pervov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4380) [drlvm][classloader] VM does not reject a class in which class_index in EnclosingMethod attribute refers to improper class In-Reply-To: <3446897.1183721468415.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512438 ] Pavel Pervov commented on HARMONY-4380: --------------------------------------- If the test fails on RI I would treat this one as invalid test and suggest to close the JIRA as WONTFIX. > [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.