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

final var init'd with constant is a constant (DA versus switch)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      javac fails jacks test case 16.2.8-final-4; the underlying symptom
      is reproduced as follows:

      class T {
      public static void main(final String[] args) {
          switch(args.length) {
                  case 0:
                      final byte b = 0;
                      break;
                  case 1:
                      byte c = b;
          }
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              gafter Neal Gafter
              Reporter:
              gafter Neal Gafter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: