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

enum: switch on enum should use switch instructions, not chained if stmts

XMLWordPrintable

    • b56
    • generic
    • solaris_8

      The code generated by javac for a switch statement on an enum type should
      generate a switch instruction, not a chain of if-then-else statements.

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: