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

DA/DU versus assignment in false for loop condition

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      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; );
          }
      }

        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: