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

Switch implemented incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • tools
    • None
    • x86
    • windows_95



      Name: mc57594 Date: 02/21/97


      14.9 requires that all BlockStatements in a SwitchBlock are
      preceded by SwitchLabels. Your compiler does not require this, instead it
      allows the block to begin with unlabelled statements. E.g.:

      class X {
          {
              switch (0) {
                  int x = 5;
              }
          }
      }
      ======================================================================

            tlindholsunw Timothy Lindholm (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: