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

TTY: incorrect expression evaluation

    Details

    • Subcomponent:
    • CPU:
      generic, sparc
    • OS:
      solaris_7, solaris_8

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gafter Neal Gafter
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: