[
https://issues.apache.org/jira/browse/GROOVY-9712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Lundqvist updated GROOVY-9712:
----------------------------------
Description:
Compiling the code below with groovyc results in the following error message:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Ö_ClassWithUlmaut.groovy: 2: Unexpected input: '(' @ line 2, column 41.
Ö_ClassWithUlmaut getInstance(){
^
1 error
The file is encoded in Windows-1252 and I tried compiling it with the following
command:
\Tools\groovy-3.0.5\bin\groovyc --encoding Windows-1252
Ö_ClassWithUlmaut.groovy
Compiling with version 2.5.8 works fine
The problem only seem to occur when the class name starts with a unicode
character.
Example:
{code:java}
class Ö_ClassWithUlmaut {
static Ö_ClassWithUlmaut getInstance(){
}
}
{code}
was:
Compiling the following code with groovyc results in the following error
message:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Ö_ClassWithUlmaut.groovy: 2: Unexpected input: '(' @ line 2, column 41.
Ö_ClassWithUlmaut getInstance(){
^
1 error
The file is encoded in Windows-1252 and I tried compiling it with the following
command:
\Tools\groovy-3.0.5\bin\groovyc --encoding Windows-1252
Ö_ClassWithUlmaut.groovy
Compiling with version 2.5.8 works fine
The problem only seem to occur when the class name starts with a unicode
character.
Example:
{code:java}
class Ö_ClassWithUlmaut {
static Ö_ClassWithUlmaut getInstance(){
}
}
{code}
> groovyc fails when compiling class starting with unicode character
> ------------------------------------------------------------------
>
> Key: GROOVY-9712
> URL: https://issues.apache.org/jira/browse/GROOVY-9712
> Project: Groovy
> Issue Type: Bug
> Components: command line processing
> Affects Versions: 3.0.5
> Environment: Windows 10 version 1809
> Groovy 3.0.5
> Reporter: Ted Lundqvist
> Priority: Major
>
>
> Compiling the code below with groovyc results in the following error message:
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> failed:
> Ö_ClassWithUlmaut.groovy: 2: Unexpected input: '(' @ line 2, column 41.
> Ö_ClassWithUlmaut getInstance(){
> ^
> 1 error
>
> The file is encoded in Windows-1252 and I tried compiling it with the
> following command:
> \Tools\groovy-3.0.5\bin\groovyc --encoding Windows-1252
> Ö_ClassWithUlmaut.groovy
> Compiling with version 2.5.8 works fine
>
> The problem only seem to occur when the class name starts with a unicode
> character.
>
> Example:
> {code:java}
> class Ö_ClassWithUlmaut {
> static Ö_ClassWithUlmaut getInstance(){
> }
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)