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

Discarded arguments must still be evaluated for side effects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • core-libs
    • None
    • b82
    • generic
    • generic
    • Verified

      While fixing JDK-8005958, a regression was introduced where arguments discarded on INVOKESTATIC function call are not evaluated.

      Example:

      (function() {})(print("hello"))

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: