Can't compare Java enums to strings

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b53
    • generic
    • generic

        Example:

            java.math.RoundingMode.UP == "UP"

        evaluates to true in Rhino and to false in Nashorn. Reported at:
        http://mail.openjdk.java.net/pipermail/nashorn-dev/2015-February/004142.html

              Assignee:
              Attila Szegedi
              Reporter:
              Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: