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

DA/DU versus assignment in false for loop condition

XMLWordPrintable

    • mantis
    • generic
    • solaris_8

      javac fails the following test

      /*
       * @test @(#)T4720379.java 1.1 02/07/31
       * @bug 4720379
       * @summary DA/DU versus assignment in false for loop condition
       * @author Neal Gafter (gafter)
       *
       * @compile T4720379.java
       */

      class T4720379 {
          static void main(String[] args) {
              for (final boolean b; (b = true) && false; );
          }
      }

            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: