[ https://issues.apache.org/jira/browse/GROOVY-7670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Grothaus updated GROOVY-7670: --------------------------------------- Description: Cannot create script with dash ("-") in filename. Please try to run the two attached groovy scripts. The one with an underscore in the filename runs happily (don't wonder, it gives no output). The one with a dash in the filename gives this error: {noformat}$ groovy fibonacci-numbers.groovy Caught: java.lang.ClassFormatError: Illegal class name "fibonacci-numbers$fib" in class file fibonacci-numbers$fib java.lang.ClassFormatError: Illegal class name "fibonacci-numbers$fib" in class file fibonacci-numbers$fib at fibonacci-numbers.run(fibonacci-numbers.groovy:5){noformat} was: Cannot create script with dash ("-") in filename. Please try to run the two attached groovy scripts. The one with an underscore in the filename runs happily (don't wonder, it gives no output). The one with a dash in the filename gives this error: {noformat}$ groovy fibonacci-numbers.groovy Caught: java.lang.ClassFormatError: Illegal class name "fibonacci-numbers$fib" in class file fibonacci-numbers$fib java.lang.ClassFormatError: Illegal class name "fibonacci-numbers$fib" in class file fibonacci-numbers$fib at fibonacci-numbers.run(fibonacci-numbers.groovy:5){nofrmat} > CLONE - dash in script filename > ------------------------------- > > Key: GROOVY-7670 > URL: https://issues.apache.org/jira/browse/GROOVY-7670 > Project: Groovy > Issue Type: Bug > Components: class generator > Affects Versions: 2.4.5 > Environment: Oracle Java 8, Windows (although OS is not relevant IMHO) > Reporter: Christoph Grothaus > Assignee: Guillaume Delcroix > Priority: Minor > Attachments: fibonacci-numbers.groovy, fibonacci_numbers.groovy > > > Cannot create script with dash ("-") in filename. > Please try to run the two attached groovy scripts. The one with an underscore > in the filename runs happily (don't wonder, it gives no output). The one with > a dash in the filename gives this error: {noformat}$ groovy > fibonacci-numbers.groovy > Caught: java.lang.ClassFormatError: Illegal class name > "fibonacci-numbers$fib" in class file fibonacci-numbers$fib > java.lang.ClassFormatError: Illegal class name "fibonacci-numbers$fib" in > class file fibonacci-numbers$fib > at fibonacci-numbers.run(fibonacci-numbers.groovy:5){noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)