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

further assert/DU problems.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic
    • OS:
      solaris_7
    • Verification:
      Verified

      Description

      The following program should fail to compile with the DU rules
      as written, but the compiler allows it:

           1 class T {
           2 void f() {
           3 final int i;
           4 assert true : i=3;
           5 i=4;
           6 }
           7 }

        Attachments

          Issue Links

            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: