Coercion of Java Enums works differently than in Rhino

Krause, Michael michael.krause at grawe.at
Tue Feb 3 12:26:54 UTC 2015


Hi,

It seems that in Nashorn Java enums are no longer coerced into their string value:

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

evaluates to true in Java 7 but to false in Java 8 when executed in the respective JavaScript engine.


Does anybody know if this is actually a bug or just something in the specification?

Thanks!



Mit freundlichen Grüßen / Best regards
Michael Kurt Krause
________________________________________

Grazer Wechselseitige Versicherung AG
Pestalozzistraße 73, 8011 Graz
Tel.:    +43 316 908031-6174
Fax:    +43 316 80379
Mail:    michael.krause at grawe.at
Web:    www.grawe.at

FN 37748m, Landes- als Handelsgericht Graz
Bitte denken Sie an die Umwelt, bevor Sie dieses E-Mail ausdrucken!


More information about the nashorn-dev mailing list