public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/25429] New: can't see private static final int CREATE = 1
@ 2005-12-15 16:30 aph at gcc dot gnu dot org
2005-12-15 16:30 ` [Bug java/25429] " aph at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-12-15 16:30 UTC (permalink / raw)
To: java-prs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]
[cagney@eclipse_1 jdom-1.0]$ gcj4 -C -I src/java
src/java/org/jdom/ContentList.java
src/java/org/jdom/ContentList.java: In class 'C$I':
src/java/org/jdom/ContentList.java: In method 'C$I.f()':
src/java/org/jdom/ContentList.java:7: error: Constant expression required.
case CONST:
^
src/java/org/jdom/ContentList.java: In class 'C':
src/java/org/jdom/ContentList.java: In method '<clinit>()':
src/java/org/jdom/ContentList.java:3: error: final field âCONSTâ may not
have
been initialized
src/java/org/jdom/ContentList.java:1: confused by earlier errors, bailing out
class C
{
private static final int CONST = 0;
class I {
public void f () {
switch(0) {
case CONST:
}
}
}
}
--
Summary: can't see private static final int CREATE = 1
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: aph at gcc dot gnu dot org
ReportedBy: aph at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
@ 2005-12-15 16:30 ` aph at gcc dot gnu dot org
2005-12-15 16:32 ` aph at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-12-15 16:30 UTC (permalink / raw)
To: java-prs
------- Comment #1 from aph at gcc dot gnu dot org 2005-12-15 16:30 -------
This is https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175569
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
2005-12-15 16:30 ` [Bug java/25429] " aph at gcc dot gnu dot org
@ 2005-12-15 16:32 ` aph at gcc dot gnu dot org
2005-12-15 16:33 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-12-15 16:32 UTC (permalink / raw)
To: java-prs
------- Comment #2 from aph at gcc dot gnu dot org 2005-12-15 16:32 -------
Created an attachment (id=10503)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10503&action=view)
Patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
2005-12-15 16:30 ` [Bug java/25429] " aph at gcc dot gnu dot org
2005-12-15 16:32 ` aph at gcc dot gnu dot org
@ 2005-12-15 16:33 ` pinskia at gcc dot gnu dot org
2005-12-16 0:00 ` tromey at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-15 16:33 UTC (permalink / raw)
To: java-prs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-12-15 16:33 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Known to fail| |4.2.0
Last reconfirmed|0000-00-00 00:00:00 |2005-12-15 16:33:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-12-15 16:33 ` pinskia at gcc dot gnu dot org
@ 2005-12-16 0:00 ` tromey at gcc dot gnu dot org
2005-12-16 0:02 ` tromey at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-12-16 0:00 UTC (permalink / raw)
To: java-prs
------- Comment #4 from tromey at gcc dot gnu dot org 2005-12-16 00:00 -------
Subject: Bug 25429
Author: tromey
Date: Fri Dec 16 00:00:43 2005
New Revision: 108608
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108608
Log:
gcc/java:
PR java/25429
* parse.y (resolve_expression_name): Don't generate accessor
methods for constant fields.
libjava:
* testsuite/libjava.compile/rh175833.java: New file.
* testsuite/libjava.compile/pr25429.java: New file.
Added:
trunk/libjava/testsuite/libjava.compile/pr25429.java
trunk/libjava/testsuite/libjava.compile/rh175833.java
Modified:
trunk/gcc/java/ChangeLog
trunk/gcc/java/parse.y
trunk/libjava/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-12-16 0:00 ` tromey at gcc dot gnu dot org
@ 2005-12-16 0:02 ` tromey at gcc dot gnu dot org
2005-12-16 17:21 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-12-16 0:02 UTC (permalink / raw)
To: java-prs
------- Comment #5 from tromey at gcc dot gnu dot org 2005-12-16 00:02 -------
I checked in a fix for this on svn trunk.
I will merge to 4.1 (and perhaps 4.0 -- Andrew?) tomorrow,
unless someone else wants to do it first.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-12-16 0:02 ` tromey at gcc dot gnu dot org
@ 2005-12-16 17:21 ` tromey at gcc dot gnu dot org
2005-12-16 17:24 ` tromey at gcc dot gnu dot org
2005-12-16 17:30 ` tromey at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-12-16 17:21 UTC (permalink / raw)
To: java-prs
------- Comment #6 from tromey at gcc dot gnu dot org 2005-12-16 17:21 -------
Subject: Bug 25429
Author: tromey
Date: Fri Dec 16 17:20:59 2005
New Revision: 108660
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108660
Log:
gcc/java:
PR java/25429
* parse.y (resolve_expression_name): Don't generate accessor
methods for constant fields.
libjava:
* testsuite/libjava.jacks/jacks.xfail
(8.5.2-accessible-static-member-usage-3): Removed.
* testsuite/libjava.compile/rh175833.java: New file.
* testsuite/libjava.compile/pr25429.java: New file.
Added:
branches/gcc-4_1-branch/libjava/testsuite/libjava.compile/pr25429.java
- copied unchanged from r108608,
trunk/libjava/testsuite/libjava.compile/pr25429.java
branches/gcc-4_1-branch/libjava/testsuite/libjava.compile/rh175833.java
- copied unchanged from r108608,
trunk/libjava/testsuite/libjava.compile/rh175833.java
Modified:
branches/gcc-4_1-branch/gcc/java/ChangeLog
branches/gcc-4_1-branch/gcc/java/parse.y
branches/gcc-4_1-branch/libjava/ChangeLog
branches/gcc-4_1-branch/libjava/testsuite/libjava.jacks/jacks.xfail
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-12-16 17:21 ` tromey at gcc dot gnu dot org
@ 2005-12-16 17:24 ` tromey at gcc dot gnu dot org
2005-12-16 17:30 ` tromey at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-12-16 17:24 UTC (permalink / raw)
To: java-prs
------- Comment #7 from tromey at gcc dot gnu dot org 2005-12-16 17:24 -------
Subject: Bug 25429
Author: tromey
Date: Fri Dec 16 17:24:42 2005
New Revision: 108661
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108661
Log:
gcc/java:
PR java/25429
* parse.y (resolve_expression_name): Don't generate accessor
methods for constant fields.
libjava:
* testsuite/libjava.jacks/jacks.xfail
(8.5.2-accessible-static-member-usage-3): Removed.
* testsuite/libjava.compile/rh175833.java: New file.
* testsuite/libjava.compile/pr25429.java: New file.
Added:
branches/gcc-4_0-branch/libjava/testsuite/libjava.compile/pr25429.java
- copied unchanged from r108608,
trunk/libjava/testsuite/libjava.compile/pr25429.java
branches/gcc-4_0-branch/libjava/testsuite/libjava.compile/rh175833.java
- copied unchanged from r108608,
trunk/libjava/testsuite/libjava.compile/rh175833.java
Modified:
branches/gcc-4_0-branch/gcc/java/ChangeLog
branches/gcc-4_0-branch/gcc/java/parse.y
branches/gcc-4_0-branch/libjava/ChangeLog
branches/gcc-4_0-branch/libjava/testsuite/libjava.jacks/jacks.xfail
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug java/25429] can't see private static final int CREATE = 1
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-12-16 17:24 ` tromey at gcc dot gnu dot org
@ 2005-12-16 17:30 ` tromey at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-12-16 17:30 UTC (permalink / raw)
To: java-prs
------- Comment #8 from tromey at gcc dot gnu dot org 2005-12-16 17:30 -------
Fix checked in.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25429
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-12-16 17:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-15 16:30 [Bug java/25429] New: can't see private static final int CREATE = 1 aph at gcc dot gnu dot org
2005-12-15 16:30 ` [Bug java/25429] " aph at gcc dot gnu dot org
2005-12-15 16:32 ` aph at gcc dot gnu dot org
2005-12-15 16:33 ` pinskia at gcc dot gnu dot org
2005-12-16 0:00 ` tromey at gcc dot gnu dot org
2005-12-16 0:02 ` tromey at gcc dot gnu dot org
2005-12-16 17:21 ` tromey at gcc dot gnu dot org
2005-12-16 17:24 ` tromey at gcc dot gnu dot org
2005-12-16 17:30 ` tromey at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).