Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AC17B421 for ; Sun, 22 Jan 2012 18:54:34 +0000 (UTC) Received: (qmail 95801 invoked by uid 500); 22 Jan 2012 18:54:34 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 95760 invoked by uid 500); 22 Jan 2012 18:54:33 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 95753 invoked by uid 99); 22 Jan 2012 18:54:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 18:54:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 18:54:32 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 91B0F4FE00; Sun, 22 Jan 2012 18:54:12 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 2811] does not work when static final primitive "constants" are modified Date: Sun, 22 Jan 2012 18:54:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Optional Tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bruce@callenish.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=2811 Bruce Atherton changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Bruce Atherton 2012-01-22 18:54:11 UTC --- I agree with Stefan that this is a WONTFIX. The issue here is not sensibly resolvable Ant, it is the javac compiler which inlines the static constant values. This is a a known issue and has its own workaround: If you want your static constant string NOT to be statically copied into your class files, use the .intern() call. For example: class MyClass { public static final String MyVal = "myvalue".intern(); ... } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.