This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java/2060: Bug accessing variable in superclass from inner class of subclass. (value is munged)



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]