Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2113345 | 1.0.1 | Luis-Miguel Alventosa | P3 | Resolved | Fixed | 1.0.1 |
Illegal forward reference in ClassLogger detected by the J2SE 1.3.1 compiler.
The global variable 'ok' should be defined before the static block.
static {
/* We attempt to work even if we are running in J2SE 1.3, where
there is no java.util.logging. The technique we use here is
not strictly portable, but it does work with Sun's J2SE 1.3
at least. This is just a best effort: the Right Thing is for
people to use at least J2SE 1.4. */
boolean loaded = false;
try {
Class c = java.util.logging.Logger.class;
loaded = true;
} catch (Error e) {
}
ok = loaded;
}
private static final boolean ok;
The global variable 'ok' should be defined before the static block.
static {
/* We attempt to work even if we are running in J2SE 1.3, where
there is no java.util.logging. The technique we use here is
not strictly portable, but it does work with Sun's J2SE 1.3
at least. This is just a best effort: the Right Thing is for
people to use at least J2SE 1.4. */
boolean loaded = false;
try {
Class c = java.util.logging.Logger.class;
loaded = true;
} catch (Error e) {
}
ok = loaded;
}
private static final boolean ok;
- backported by
-
JDK-2113345 Illegal forward reference in ClassLogger
- Resolved