Skip to content

Commit

Permalink
Fix java.lang.ClassFormatError: Illegal method name "test IO stream/r…
Browse files Browse the repository at this point in the history
…eader closed by the parser properly" when using Java9
  • Loading branch information
daniellansun committed Apr 17, 2018
1 parent e19a932 commit 4840d1f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4840d1f

Please sign in to comment.