Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 52264 invoked from network); 13 Oct 2006 07:50:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 07:50:22 -0000 Received: (qmail 28792 invoked by uid 500); 13 Oct 2006 07:50:22 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 28771 invoked by uid 500); 13 Oct 2006 07:50:22 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 28760 invoked by uid 99); 13 Oct 2006 07:50:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 00:50:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 00:50:21 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD76C7142F9 for ; Fri, 13 Oct 2006 00:49:37 -0700 (PDT) Message-ID: <3125575.1160725777838.JavaMail.jira@brutus> Date: Fri, 13 Oct 2006 00:49:37 -0700 (PDT) From: "Maxim Makarov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (HARMONY-1854) [drlvm][unit] WeakReference has not been garbage collected using JET MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [drlvm][unit] WeakReference has not been garbage collected using JET --------------------------------------------------------------------- Key: HARMONY-1854 URL: http://issues.apache.org/jira/browse/HARMONY-1854 Project: Harmony Issue Type: Bug Components: DRLVM Reporter: Maxim Makarov Problem details: WeakReference has not been garbage collected using JET Code for reproducing: import java.lang.ref.WeakReference; public class Test extends junit.framework.TestCase { public void testTest() { try { Object pos = new Object(); WeakReference wr = new WeakReference(pos); for (int i = 0; i < 5; i++) { System.gc(); } System.out.println(wr.get()); assertNull("Position object hasn't been garbage collected", wr.get()); }catch(Exception e){ } } } Output on RI: ---------------- Note: Test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. On RI .null Time: 0.203 OK (1 test) On Harmony: --------------- Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r454528, (Oct 12 2006), Windows/ia32/msvc 1310, release build http://incubator.apache.org/harmony .java.lang.Object@2061ca2c F Time: 0.031 There was 1 failure: 1) testTest(Test)junit.framework.AssertionFailedError: Position object hasn't been garbage collected at Test.testTest(Test.java:36) at java.lang.reflect.VMReflection.invokeMethod(Native Method) FAILURES!!! Tests run: 1, Failures: 1, Errors: 0 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira