Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 9555 invoked from network); 11 Dec 2006 16:37:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2006 16:37:49 -0000 Received: (qmail 11014 invoked by uid 500); 11 Dec 2006 16:37:57 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 10985 invoked by uid 500); 11 Dec 2006 16:37:57 -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 10976 invoked by uid 99); 11 Dec 2006 16:37:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 08:37:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Mon, 11 Dec 2006 08:37:48 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 461AA7140D1 for ; Mon, 11 Dec 2006 08:37:28 -0800 (PST) Message-ID: <29047167.1165855048284.JavaMail.jira@brutus> Date: Mon, 11 Dec 2006 08:37:28 -0800 (PST) From: "Leviev Ilya (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2558) [drlvm][jit] 'new' bytecode does not cause class initialization In-Reply-To: <18097507.1165594167697.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-2558?page=3Dall ] Leviev Ilya updated HARMONY-2558: --------------------------------- Attachment: HARMONY-2558-reproduce-tests.zip To run see HowTo file. > [drlvm][jit] 'new' bytecode does not cause class initialization > --------------------------------------------------------------- > > Key: HARMONY-2558 > URL: http://issues.apache.org/jira/browse/HARMONY-2558 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Vladimir Beliaev > Attachments: HARMONY-2558-reproduce-tests.zip, Test.zip > > > According to JVMS for 'new' bytecode: > http://java.sun.com/docs/books/vmspec/2nd-edition/html/Instructions2.doc1= 0.html#new > ... named class, array, or interface type is resolved (=C2=A75.4.3.1) ..= . > ... On successful resolution of the class, it is initialized (=C2=A75.5)= if it has not already been initialized.... > See also 5.5 Initialization (http://java.sun.com/docs/books/vmspec/2nd-ed= ition/html/ConstantPool.doc.html#77976). > ... A class or interface may be initialized only as a result of: > o The execution of any one of the Java virtual machine instruction= s new, getstatic,... > So, executing 'new' bytecode must cause a class initialization (in partic= lar call). The attached test shows it is not true for recent versi= on of DRLVM. In this test the produce exception which is supposed = to be catched in 'main' method. > The issue is not reproducible with interpreter (-Xint) - marking this bug= as JIT one. > To prepare the test please build attached Jasm_part.jj first; then build = Test.java. > Test output is: > $ deploy/jre/bin/java -showversion Test > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Fo= undation or its licensors, as applicable. > java version "1.5.0"=20 > pre-alpha : not complete or compatible > svn =3D r482108, (Dec 8 2006), Windows/ia32/msvc 1310, debug build > http://incubator.apache.org/harmony > FAILED: no exception... > $ deploy/jre/bin/java -showversion -Xint Test > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Fo= undation or its licensors, as applicable. > java version "1.5.0"=20 > pre-alpha : not complete or compatible > svn =3D r482108, (Dec 8 2006), Windows/ia32/msvc 1310, debug build > http://incubator.apache.org/harmony > PASSED... > $ java -showversion Test > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-= 75, GC: System optimized over throughput (initial strategy singleparpar)) > PASSED... > Thanks > Vladimir --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira