ASF Bugzilla – Attachment 35859 Details for
Bug 62287
ValueExpressionImpl#equals is wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for ValueExpressionImpl
ValueExpressionImpl.patch (text/plain), 723 bytes, created by
Mark Struberg
on 2018-04-12 09:42:42 UTC
(
hide
)
Description:
patch for ValueExpressionImpl
Filename:
MIME Type:
Creator:
Mark Struberg
Created:
2018-04-12 09:42:42 UTC
Size:
723 bytes
patch
obsolete
>Index: java/org/apache/el/ValueExpressionImpl.java >=================================================================== >--- java/org/apache/el/ValueExpressionImpl.java (revision 1828957) >+++ java/org/apache/el/ValueExpressionImpl.java (working copy) >@@ -118,8 +118,14 @@ > */ > @Override > public boolean equals(Object obj) { >- return (obj instanceof ValueExpressionImpl && obj.hashCode() == this >- .hashCode()); >+ if (!(obj instanceof ValueExpressionImpl)) { >+ return false; >+ } >+ if (obj.hashCode() != this.hashCode()) { >+ return false; >+ } >+ >+ return (this.getNode().equals(((ValueExpressionImpl) obj).getNode())); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 62287
: 35859