This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/25429] New: can't see private static final int CREATE = 1
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 15 Dec 2005 16:30:05 -0000
- Subject: [Bug java/25429] New: can't see private static final int CREATE = 1
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[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