[ 
https://issues.apache.org/jira/browse/GROOVY-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080824#comment-18080824
 ] 

Paul King edited comment on GROOVY-3956 at 5/17/26 1:58 AM:
------------------------------------------------------------

This seems to work as expected:
{code}
$ cat chinese.groovy  
void 你好() { println '你好' }
你好()
$ groovy chinese.groovy
你好
{code}

Or this:
{code:groovy}
static 你好() {
    println '你好'
}

static main() {
    你好()
}
{code}


was (Author: paulk):
This seems to work as expected:
{code}
$ cat chinese.groovy  
void 你好() { println '你好' }
你好()
$ groovy chinese.groovy
你好
{code}

> run as groovy does not interpret methed name in Chinese well. 
> --------------------------------------------------------------
>
>                 Key: GROOVY-3956
>                 URL: https://issues.apache.org/jira/browse/GROOVY-3956
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 1.7.0
>         Environment: Vista Chinese, jdk6u10, plugin version: 20081120-2330
>            Reporter: Bing Ran
>            Priority: Major
>
> a simple class that contains a method named in Chinese. 
> /**
>  * 
>  */
> package bran
> /**
>  * @author bran
>  *
>  */
> public class FirstGroovy{
>       /**
>        * @param args
>        */
>       public static void main(def args){
>               System.out.println(你好())
>       }
>       
>       void 你好() {
>               "你好"
>       }
>       
> }
> Compiles OK. 
> Right click on the file and Run as Groovy then:
> No signature of method: static bran.FirstGroovy.浣犲ソ() is 
> applicable for argument types: () values: {}
> The project is configured to used UTF8 throughout. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to