java/3096: GCJ does not increment
aneesha@hpl.hp.com
aneesha@hpl.hp.com
Fri Jun 8 16:56:00 GMT 2001
>Number: 3096
>Category: java
>Synopsis: GCJ does not increment
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Jun 08 16:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Aneesh Aggarwal
>Release: gcc version 3.1 20010601 (experimental)
>Organization:
>Environment:
Linux 2.4 on x86
>Description:
GCJ does not increment the value of an entry in an array when
the increment operator "++" is used in front. It, however,
works when the operator is appended at the end.
>How-To-Repeat:
public class inc_test {
public static void main(String [] args) {
long a[];
a = new long[2];
for(int i = 0; i < 2; i++) {
++a[i];
System.out.println(" Value " + a[i]);
}
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list