https://bz.apache.org/bugzilla/show_bug.cgi?id=62287
Bug ID: 62287
Summary: ValueExpressionImpl#equals is wrong
Product: Tomcat 9
Version: 9.0.6
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: EL
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 35859
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35859&action=edit
patch for ValueExpressionImpl
ValueExpressionImpl#equals is likely not enough.
The current code just compares the hashCode():
>return (obj instanceof ValueExpressionImpl && obj.hashCode() ==
>this.hashCode());
It's possible that there is the same hashCode for different objects. For some
Java Classes we alwasy get 0 even.
For better tracking: this came up during a bug report against Apache
OpenWebBeans as reported by Holger Sunke.
https://issues.apache.org/jira/browse/OWB-1233
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]