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

TTY: incorrect expression evaluation

XMLWordPrintable

    • generic, sparc
    • solaris_7, solaris_8

      Name: suvasis date:10/22/02

      all the *= operators are just treated like =.
      Testcase is regressionTestsInWaiting/IncorrectExprEval.sh

      public class tree{
          public static int flags = 9;
          public static void main(String args[]) {
                 System.out.println("Hellow World");
          }
      }




      main[1] print tree.flags
       tree.flags = 9
      main[1] print tree.flags <<= 1
       tree.flags <<= 1 = 1
      main[1] print tree.flags
       tree.flags = 1
      main[1]

      ###@###.### 2002-10-22

            Unassigned Unassigned
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: