You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/10 03:23:11 UTC
[jira] [Commented] (GROOVY-5985) Invalid hash key
"serialVersionUID"
[ https://issues.apache.org/jira/browse/GROOVY-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369403#comment-15369403 ]
ASF GitHub Bot commented on GROOVY-5985:
----------------------------------------
GitHub user jwagenleitner opened a pull request:
https://github.com/apache/groovy/pull/365
GROOVY-5985 - Invalid hash key serialVersionUID
Using a map key with the same name as a read-only property on the Map
class would throw a groovy.lang.ReadOnlyPropertyException. The fix for
GROOVY-3471 (commit 18f6f8271ed3bfb) moved the map handling
below the handling for read-only properties. In order to avoid the
issue in GROOVY-3471 we also need to check and make sure the
method is null so we are not in a setX call.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jwagenleitner/groovy GROOVY-5985
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/365.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #365
----
commit 1a081b087dd7fd9c3f7979d3c88b5783d089c5eb
Author: John Wagenleitner <jw...@apache.org>
Date: 2016-07-08T22:05:38Z
GROOVY-5985 - Invalid hash key serialVersionUID
Using a map key with the same name as a read-only property on the Map
class would throw a groovy.lang.ReadOnlyPropertyException. The fix for
GROOVY-3471 (commit 18f6f8271ed3bfb) moved the map handling
below the handling for read-only properties. In order to avoid the
issue in GROOVY-3471 we also need to check and make sure the
method is null so we are not in a setX call.
----
> Invalid hash key "serialVersionUID"
> -----------------------------------
>
> Key: GROOVY-5985
> URL: https://issues.apache.org/jira/browse/GROOVY-5985
> Project: Groovy
> Issue Type: Sub-task
> Components: groovy-runtime
> Affects Versions: 2.1.0
> Environment: Groovy Version: 2.1.0 JVM: 1.7.0_11 Vendor: Oracle Corporation OS: Mac OS X
> Reporter: Dave Farnham
> Attachments: bug.groovy
>
>
> Using "serialVersionUID" as a hash key with bracket notation throws exception
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)