harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5094) [drlvm][jit][server_static] Two JIT regression tests started to fail
Date Thu, 08 Nov 2007 10:18:50 GMT
[drlvm][jit][server_static] Two JIT regression tests started to fail
--------------------------------------------------------------------

                 Key: HARMONY-5094
                 URL: https://issues.apache.org/jira/browse/HARMONY-5094
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Linux and Windows on x86_64
            Reporter: Gregory Shimansky


Two tests from VM regression tests package now fail with the following exception:

java.lang.RuntimeException: A member of the "class com.ibm.icu.text.NumberFormatServiceShim"
with "" modifiers can not be accessed from the "class java.text.NumberFormat"
        at java.text.NumberFormat.getNumberInstance(NumberFormat.java:337)
        at java.text.NumberFormat.getNumberInstance(NumberFormat.java:350)
        at com.ibm.icu.text.NumberFormat.getNumberInstance(NumberFormat.java:523)
        at com.ibm.icu.text.NumberFormat.getInstance(NumberFormat.java:1176)
        at com.ibm.icu.text.NumberFormat.getShim(NumberFormat.java:849)
        at com.ibm.icu.text.NumberFormat.getShim(NumberFormat.java:860)
        at org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter.<init>(SummaryJUnitResultFormatter.java:37)
        at java.lang.reflect.VMReflection.newClassInstance(VMReflection.java)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:283)
        at java.lang.Class.newInstance(Class.java:694)
        at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:218)
        at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:192)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.transferFormatters(JUnitTestRunner.java:586)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

Looking at java.text.NumberFormat.getNumberInstance line 337 I don't see any code that could
result in this exception, this line doesn't generate it. The message for this exception comes
from Java code for reflection java/lang/reflect/ReflectExporter.java:193.

It seems to me that JIT somehow hid some stack frames in exception and in the stack analyzes
in ReflectExporter, this made it throw exception because the class in stack trace was not
correct.

Note!! Running this test by hands doesn't make it fail. It is necessary to run this test from
Ant using Ant's junit reports formatters. The shortest command line that I've found so far
looks like this (correct paths for your system):

/nfs/ims/proj/drl/mrt2/users/gregory/em64t/trunk/working_vm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java
-Xem:server_static -cp /nfs/ims/proj/drl/mrt2/users/gregory/em64t/trunk/working_vm/build/lnx_em64t_gcc_debug/tests/reg.tests/classes:/nfs/ims/home/gashiman/work/em64t/trunk/working_vm/build/make/tmp/junit.jar:/nfs/ims/home/gashiman/work/em64t/trunk/working_vm/build/make/tmp/xalan.jar:/nfs/ims/proj/drl/mrt2/users/gregory/apache-ant-1.6.5/lib/ant-launcher.jar:/nfs/ims/home/gashiman/work/apache-ant-1.6.5/lib/ant.jar:/nfs/ims/home/gashiman/work/apache-ant-1.6.5/lib/ant-junit.jar
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner org.apache.harmony.drlvm.tests.regression.h1788.abcdTest
 formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter,/nfs/ims/proj/drl/mrt2/users/gregory/em64t/trunk/working_vm/build/lnx_em64t_gcc_debug/tests/reg.tests/reports/TEST-org.apache.harmony.drlvm.tests.regression.h1788.abcdTest.txt
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/nfs/ims/proj/drl/mrt2/users/gregory/em64t/trunk/working_vm/build/lnx_em64t_gcc_debug/tests/reg.tests/reports/TEST-org.apache.harmony.drlvm.tests.regression.h1788.abcdTest.xml


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