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/03/07 09:26:24 UTC

[jira] Created: (HARMONY-3317) [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test fails with error <25(INVALID_FIELDID)>

[jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test fails with error <25(INVALID_FIELDID)>
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-3317
                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
             Project: Harmony
          Issue Type: Bug
          Components: JDK
         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
            Reporter: Ivan Popov


The following JDWP test

  org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test

fails on both Windows and Linux platforms with the same diagnostics:

=> CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
# ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
<...>
junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

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

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



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


[jira] Updated: (HARMONY-3317) [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov updated HARMONY-3317:
--------------------------------

    Component/s: DRLVM
        Summary: [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass  (was: [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test fails with error <25(INVALID_FIELDID)>)

Since this is JVMTI problem in DRLVM, I'm changing subject and link this issue to DRLVM component.

> [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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


[jira] Closed: (HARMONY-3317) [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov closed HARMONY-3317.
-------------------------------


Thanks, Gregory. I verified with Harmony-jdk-r522770. Now this JVMTI function works well, but the test still fail on Linux because of similar problem with other JVMTI function. I submitted HARMONY-3505.
Closing this issue.

> [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>         Attachments: H3317-Fix.patch, H3317-Regression-test.patch
>
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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


[jira] Commented: (HARMONY-3317) [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test fails with error <25(INVALID_FIELDID)>

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483662 ] 

Ivan Popov commented on HARMONY-3317:
-------------------------------------

The problem is in incorrect behavior of JVMTI function GetFieldDeclaringClass() in DRLVM:

jvmtiError
GetFieldDeclaringClass(jvmtiEnv* env,
            jclass klass,
            jfieldID field,
            jclass* declaring_class_ptr)

If given 'field' is declared in a superclass of the 'klass', then this function incorrectly returns JVMTI_ERROR_INVALID_FIELDID. 


> [jdktools][jpda] JDWP test org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test fails with error <25(INVALID_FIELDID)>
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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


[jira] Updated: (HARMONY-3317) [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-3317:
---------------------------------------

    Assignee: Gregory Shimansky

Thanks for a good evaluation of this bug. Looking at the code I see that it does actually lookup a field in the current class only, it doesn't try to lookup the field recursively. The fix should be quite easy.

> [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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


[jira] Updated: (HARMONY-3317) [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass

Posted by "Eugene S. Ostrovsky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene S. Ostrovsky updated HARMONY-3317:
-----------------------------------------

    Attachment: H3317-Regression-test.patch

> [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>         Attachments: H3317-Fix.patch, H3317-Regression-test.patch
>
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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


[jira] Updated: (HARMONY-3317) [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass

Posted by "Eugene S. Ostrovsky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene S. Ostrovsky updated HARMONY-3317:
-----------------------------------------

    Attachment: H3317-Fix.patch

> [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>         Attachments: H3317-Fix.patch, H3317-Regression-test.patch
>
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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


[jira] Resolved: (HARMONY-3317) [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-3317.
----------------------------------------

    Resolution: Fixed

Patch applied at 522599. Please check that the bug is fixed now.

> [drlvm]jvmti] GetFieldDeclaringClass() returns error for field declared in superclass
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3317
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3317
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, JDK
>         Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r515478
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>         Attachments: H3317-Fix.patch, H3317-Regression-test.patch
>
>
> The following JDWP test
>   org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test
> fails on both Windows and Linux platforms with the same diagnostics:
> => CHECK ReferenceType::GetValues command for chekedClassRefTypeID, superClassCheckedFieldID...
> # ERROR: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)>
> <...>
> junit.framework.AssertionFailedError: ReferenceType::GetValues command, Error Code:<25(INVALID_FIELDID)> 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.printErrorAndFail(JDWPTestCase.java:729) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:638) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java:539) 
> at org.apache.harmony.jpda.tests.jdwp.share.JDWPTestCase.checkReplyPacket(JDWPTestCase.java) 
> at org.apache.harmony.jpda.tests.jdwp.ReferenceType.GetValues003Test.testGetValues003(GetValues003Test.java:118) 
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> 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.ReferenceType.GetValues003Test
> 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.ReferenceType.GetValues003Test

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