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

further assert/DU problems.

XMLWordPrintable

    • beta3
    • generic
    • solaris_7
    • Verified

      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 }

            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: