This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
libgcj/10596: Reference and String.intern don't work together
- From: tromey at redhat dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 May 2003 04:10:37 -0000
- Subject: libgcj/10596: Reference and String.intern don't work together
- Reply-to: tromey at redhat dot com
>Number: 10596
>Category: libgcj
>Synopsis: Reference and String.intern don't work together
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 02 04:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Tom Tromey
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
Right now, when a Reference reaches the finalization
stage, we call _Jv_FinalizeObject. However, that
won't work when the object has had a "hidden" finalizer
attached -- this occurs for intern()d Strings.
You could observe a bug here, perhaps even a
crash, by creating a Reference that watches an
intern()d String.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: