This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
java/2060: Bug accessing variable in superclass from inner class of subclass. (value is munged)
- To: gcc-gnats at gcc dot gnu dot org
- Subject: java/2060: Bug accessing variable in superclass from inner class of subclass. (value is munged)
- From: mjr at statesmean dot com
- Date: 22 Feb 2001 18:53:35 -0000
- Reply-To: mjr at statesmean dot com
>Number: 2060
>Category: java
>Synopsis: Bug accessing variable in superclass from inner class of subclass. (value is munged)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 22 10:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Mark Roberts
>Release: gcc version 3.1 20010221 (experimental)
>Organization:
>Environment:
>Description:
Compile the test case below. The output will deviate from IBM's JDK as follows:
mjr::mjr$ javac Test.java ; java -cp . Test
works here: 42
but not here: 42
mjr::mjr$ gcj --main=Test -o test Test.java ; ./test
works here: 42
but not here: 0
mjr::mjr$
>How-To-Repeat:
Compile and run the attached test case.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: