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

Are final parameters considered blank finals?

    Details

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

      Description

      javac treats final parameters as non-blank finals, performing DA/DU
      analysis on them. Some other compilers don't. The jacks test 16.1.5-not-assignable-5 checks for this. Which is right?

      The following test distinguishes the compiler behavior.

      class T {
      public static void main(final String[] args) {
          if (true ? true : (args = null));
      }
      }

      similarly, the exception parameter declaration in a catch block.

        Attachments

          Activity

            People

            • Assignee:
              gbrachasunw Gilad Bracha (Inactive)
              Reporter:
              gafter Neal Gafter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: