You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/06/19 10:20:58 UTC
[groovy] branch danielsun/tweak-build updated: Avoid illegal access
to `transient`
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch danielsun/tweak-build
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/danielsun/tweak-build by this push:
new 763f4e9 Avoid illegal access to `transient`
763f4e9 is described below
commit 763f4e9e6dde88a0488c71a8c3a861a733396ae1
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jun 19 18:20:45 2021 +0800
Avoid illegal access to `transient`
---
src/test/org/codehaus/groovy/classgen/TransientMetaClassTest.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/org/codehaus/groovy/classgen/TransientMetaClassTest.groovy b/src/test/org/codehaus/groovy/classgen/TransientMetaClassTest.groovy
index 18265cf..cc14bfa 100644
--- a/src/test/org/codehaus/groovy/classgen/TransientMetaClassTest.groovy
+++ b/src/test/org/codehaus/groovy/classgen/TransientMetaClassTest.groovy
@@ -27,11 +27,11 @@ class TransientMetaClassTest extends GroovyTestCase {
def gcl = new GroovyClassLoader()
def fooClass = gcl.parseClass('class Foo {}')
def fooInfo = java.beans.Introspector.getBeanInfo(fooClass)
- assert fooInfo.propertyDescriptors.find{ it.name == 'metaClass' }.transient
+ assert fooInfo.propertyDescriptors.find{ it.name == 'metaClass' }.getValue('transient')
Closure c = { -> }
def cInfo = java.beans.Introspector.getBeanInfo(c.getClass())
- assert cInfo.propertyDescriptors.find{ it.name == 'metaClass' }.transient
+ assert cInfo.propertyDescriptors.find{ it.name == 'metaClass' }.getValue('transient')
'''
}
}