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

Can't compare Java enums to strings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • core-libs
    • None
    • b53
    • generic
    • generic

    Backports

      Description

        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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: