You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/05/02 07:43:15 UTC

[jira] Commented: (HARMONY-3305) [drlvm][jvmti] JVMTI capability can_redefine_classes is not supported

    [ https://issues.apache.org/jira/browse/HARMONY-3305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493013 ] 

Ivan Popov commented on HARMONY-3305:
-------------------------------------

Here is discussion about JVMTI RedefineClasses support in DRLVM:
http://thread.gmane.org/gmane.comp.java.harmony.devel/26606

> [drlvm][jvmti] JVMTI capability can_redefine_classes is not supported
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3305
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3305
>             Project: Harmony
>          Issue Type: New Feature
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r514598
>            Reporter: Ivan Popov
>
> The following JDWP unit test
>    org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest 
> fails because of not implemented JVMTI capability can_redefine_classes in DRLVM, which is requred for JDWP capability canRedefineClasses.
> Typical diagnostics is the following:
> <...>
> Received canRedefineClasses = false
> 	   ## FAILURE: Expected canRedefineClasses = true
> <...>
> junit.framework.AssertionFailedError: Unexpected received capabilities values found out 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest.testCapabilitiesNew001(CapabilitiesNewTest.java:111) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) 3.453 
> To reproduce this failure:
> 1. create Harmony JDK with federated build:
>     svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
>     cd trunk
>     ant
> 2. goto jdktools directory, add junit to classpath, and run particular test:
>     cd working_jdktools
>     export CLASSPATH=<...>/trunk/common_resources/depends/jars/junit_3.8.2/junit.jar
>     ant test -Dbuild.module=jpda -Dtest.case=org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest 
> 3. see results in <...>/trunk/working_jdktools/build/test_report/html/index.html
> It is possible also to run test directly from command line:
>    cd working_jdktools
>    deploy/jdk/bin/java -classpath ../common_resources/depends/jars/junit_3.8.2/junit.jar:build/tests/classes \
>    org.apache.harmony.jpda.tests.jdwp.VirtualMachine.CapabilitiesNewTest 
>  

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