-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XPathContext should be immutable #19
Comments
totally agree, we should fix it and annotate with |
@dmarkov please pay for this report |
we'll find someone to do this task, soon |
I created a pull request for it at #20 . |
@yegor256 of course. @carlosmiranda many thanks for reporting, I just topped your account up for 15 mins, payment ID: |
@carlosmiranda this is your task now, please help. The budget of it is 30 mins |
We're done here, merged pull request at #20. |
@carlosmiranda Thanks for your contribution, 30 mins was added to your account, payment ID is |
The Javadoc for
XPathContext
helpfully tells us the following: "The class is immutable and thread-safe." This is a blatant lie. :)@Immutable
. And even if it were, it wouldn't work because...map
andcontexts
are instantiated with mutable types.merge
method creates a new instance and manipulates itsmap
field before returning it.We need to fix that, or change the Javadoc to suit. If we do need to fix it, you may assign it to me - I have a fix ready. :)
The text was updated successfully, but these errors were encountered: