Ketan Padegaonkar created GROOVY-8795:
-----------------------------------------

             Summary: [Java 10] Illegal method name with special chars
                 Key: GROOVY-8795
                 URL: https://issues.apache.org/jira/browse/GROOVY-8795
             Project: Groovy
          Issue Type: Bug
          Components: class generator
    Affects Versions: 2.4.15
         Environment: java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

            Reporter: Ketan Padegaonkar


I'm running this code on java 8 and java 10. While this code compiles and runs 
fine on java 8, it fails on java 10 with an error

{noformat}
Error: LinkageError occurred while loading main class Foo
        java.lang.ClassFormatError: Illegal method name "foo/bar" in class Foo
{noformat}

{noformat}
class Foo {

  void "foo/bar"() {
    println "foo"
  }

  public static void main(String[] args) {
    new Foo()."foo/bar"()
  }
}
{noformat}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to