[ 
https://issues.apache.org/jira/browse/GROOVY-8795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles closed GROOVY-8795.
-------------------------------
    Resolution: Duplicate

> [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
>            Reporter: Ketan Padegaonkar
>            Priority: Major
>              Labels: ClassFormatError
>
> 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
(v8.20.7#820007)

Reply via email to