You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/01/29 05:25:11 UTC
[groovy] branch GROOVY_2_4_X updated: GROOVY-9271: fix regression
of brackets in method names due to buggy ASM version (test case)
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_2_4_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_2_4_X by this push:
new 7084345 GROOVY-9271: fix regression of brackets in method names due to buggy ASM version (test case)
7084345 is described below
commit 708434545b613fbb7961090830098c12da708066
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Jan 29 15:24:57 2020 +1000
GROOVY-9271: fix regression of brackets in method names due to buggy ASM version (test case)
---
src/test/groovy/bugs/Groovy9271Test.groovy | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/test/groovy/bugs/Groovy9271Test.groovy b/src/test/groovy/bugs/Groovy9271Test.groovy
new file mode 100644
index 0000000..7cd9b11
--- /dev/null
+++ b/src/test/groovy/bugs/Groovy9271Test.groovy
@@ -0,0 +1,16 @@
+package groovy.bugs
+
+import org.codehaus.groovy.control.CompilerConfiguration
+
+class Groovy9271Test extends GroovyTestCase {
+ private cc = new CompilerConfiguration(optimizationOptions: [indy: true])
+ void testBracketsInMethodNameWithIndy() {
+ new GroovyShell(cc).evaluate '''
+ class Bar {
+ private char letter = 'o'
+ int 'foo$()bar'() { 'Goodbye'.toList().count{ it == letter } }
+ }
+ assert new Bar().'foo$()bar'() == 2
+ '''
+ }
+}