You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/05/22 15:57:00 UTC

[jira] [Updated] (GROOVY-8795) [Java 10] Illegal method name with special chars

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

Eric Milles updated GROOVY-8795:
--------------------------------
    Environment:     (was: 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)
)

> [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)