Blank final initialize bug in the 1.1.x compiler

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.2.0
    • Affects Version/s: 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.6
    • Component/s: tools
    • 1.2beta
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_2.6, windows_95, windows_nt
    • Not verified



      Name: mc57594 Date: 06/04/97


      public class C {
      C() {
      o = null;
      }

      class R {
      }

      final Object o;
      }

      gives
      .java:2: Blank final variable 'o' may not have been initialized. It must be assigned a value in an initializer, or in every constructor.
      C() {
      ^
      1 error

      remove the declaration of the inner class R and it compiles fine.

      NOTE this is a problem with 1.1.2.

      ======================================================================

            Assignee:
            William Maddox (Inactive)
            Reporter:
            Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: