Repository: groovy
Updated Branches:
  refs/heads/master e19a93242 -> 4840d1fce


Fix java.lang.ClassFormatError: Illegal method name "test IO stream/reader 
closed by the parser properly" when using Java9


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/4840d1fc
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/4840d1fc
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/4840d1fc

Branch: refs/heads/master
Commit: 4840d1fce2ccea5efaf30e30b8e569a833257023
Parents: e19a932
Author: sunlan <sun...@apache.org>
Authored: Tue Apr 17 11:20:02 2018 +0800
Committer: sunlan <sun...@apache.org>
Committed: Tue Apr 17 11:20:02 2018 +0800

----------------------------------------------------------------------
 .../org/apache/groovy/parser/antlr4/GroovyParserTest.groovy    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/4840d1fc/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
----------------------------------------------------------------------
diff --git 
a/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
 
b/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
index 1602fa7..fe74a08 100644
--- 
a/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
+++ 
b/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
@@ -45,7 +45,8 @@ class GroovyParserTest extends GroovyTestCase {
         doTestAttachedComments()
     }
 
-    void "test IO stream/reader closed by the parser properly"() {
+    // java.lang.ClassFormatError: Illegal method name "test IO stream/reader 
closed by the parser properly" when using Java9
+    void "test IO reader closed by the parser properly"() {
         def f = File.createTempFile("Script${System.nanoTime()}", ".groovy")
         f.text = '''
             def a = 123
@@ -58,7 +59,8 @@ class GroovyParserTest extends GroovyTestCase {
         assert deleted: "Failed to delete file: ${f.getAbsolutePath()}"
     }
 
-    void "test IO stream/reader closed by the compiler properly"() {
+    // java.lang.ClassFormatError: Illegal method name "test IO stream/reader 
closed by the parser properly" when using Java9
+    void "test reader closed by the compiler properly"() {
         def f = File.createTempFile("Script${System.nanoTime()}", ".groovy")
         f.text = '''
             def a = 123

Reply via email to