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

Can't compare Java enums to strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • 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

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

                Created:
                Updated:
                Resolved: