javac allows a labelled local variable declaration

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.2.0
    • Affects Version/s: 1.1, 1.1.4, 1.2.0
    • Component/s: tools
    • 1.2beta3
    • generic, x86
    • generic, windows_95
    • Not verified



      Name: sgC58550 Date: 03/18/97


      javac compiles the following code which is illegal
      according to the grammar in 14.6:

      class B {
          {
              i: int i; // local variable declaration may not follow a
      statement label
          }
      }
      ======================================================================

            Assignee:
            Todd Turnidge (Inactive)
            Reporter:
            Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: