JDK-8087312 : PropertyMapWrapper.equals should compare className
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-06-12
  • Updated: 2016-01-14
  • Resolved: 2015-06-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u72Fixed 9 b70Fixed
PropertyMapWrapper is a class that implements equals and hashCode on property maps to allow for reuse of maps. It currently just compares properties, but not the owning object's class. If a property map is used with different owner classes accessing any field property will result in a ClassCastException. 

I noticed this while working on JDK-8077149, but the code that triggers the ClassCastException will not be part of the fix so I'm filing a separate bug.