JDk1.2 Compiler: accepts non initialized final variables

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0
    • Component/s: tools
    • generic
    • generic



      Name: igT44549 Date: 02/09/99


      Compiler Bug:

      Test1 compiles without problems (IT SHOULD PRODUCE AN ERROR!)
      while Test2 reports correctly an error.


      public class Test1
      { private final int test;
        public Test()
        { this.test=test; }
      }


      public class Test2
      { private final int test, i;
        public Test()
        { this.test=i; i=test; }
      }
      (Review ID: 48777)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: