Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4958943

Illegal forward reference in ClassLogger

XMLWordPrintable

    • b32
    • sparc
    • solaris_2.5.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;

              lmalvent Luis-Miguel Alventosa (Inactive)
              lmalvent Luis-Miguel Alventosa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: