Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 55953 invoked from network); 6 Mar 2007 10:26:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 10:26:46 -0000 Received: (qmail 99708 invoked by uid 500); 6 Mar 2007 10:26:54 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 99691 invoked by uid 500); 6 Mar 2007 10:26:54 -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 99682 invoked by uid 99); 6 Mar 2007 10:26:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 02:26:54 -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; Tue, 06 Mar 2007 02:26:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C1B9D714093 for ; Tue, 6 Mar 2007 02:26:24 -0800 (PST) Message-ID: <4406382.1173176784790.JavaMail.root@brutus> Date: Tue, 6 Mar 2007 02:26:24 -0800 (PST) From: "Ivan Popov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-3309) [jdktools][jpda] JDWP tests for enabling object collection fails with collecting objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [jdktools][jpda] JDWP tests for enabling object collection fails with collecting objects ---------------------------------------------------------------------------------------- Key: HARMONY-3309 URL: https://issues.apache.org/jira/browse/HARMONY-3309 Project: Harmony Issue Type: Bug Components: JDK Environment: Windows/ia32, Linux/ia32, Harmony-jdk-r514598 Reporter: Ivan Popov Priority: Minor The following JDWP unit tests org.apache.harmony.jpda.tests.jdwp.ObjectReference.EnableCollectionTest org.apache.harmony.jpda.tests.jdwp.MultiSession.EnableCollectionTest fail because unreferenced objects are not collected in debuggee VM. The problem is that JNI Weak Global References used in JDWP agent are not fully supported by DRLVM. However, this does not break usual debugger functionality, so I'm marking this issue as minor. Typical diagnostics for this failure is the following: ## FAILURE: Checked Object is NOT UNLOADed after ObjectReference::EnableCollection command <...> junit.framework.AssertionFailedError: Checked Object is NOT UNLOADed after ObjectReference::EnableCollection command at org.apache.harmony.jpda.tests.jdwp.ObjectReference.EnableCollectionTest.testEnableCollection001(EnableCollectionTest.java:141) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) or ## FAILURE: Checked Object is NOT UNLOADed after MultiSession::EnableCollection command <...> junit.framework.AssertionFailedError: Invalid message from debuggee. at org.apache.harmony.jpda.tests.jdwp.MultiSession.EnableCollectionTest.testEnableCollection001(EnableCollectionTest.java:137) 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.ObjectReference.EnableCollectionTest 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.ObjectReference.EnableCollectionTest -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.