You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Joseph Henry (Jira)" <ji...@apache.org> on 2020/03/31 21:34:00 UTC

[jira] [Commented] (GROOVY-9194) Groovy fails when a script starts with a #

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

Joseph Henry commented on GROOVY-9194:
--------------------------------------

[~paulk] Hey, sorry for such a late response. I guess you comment got lost in the sea of Jira updates I get on a daily basis.

To answer your question, I debugged through the code and found where and why the error was happening and then just did a git blame and found the commit that changed and linked it to the Jira issue.

> Groovy fails when a script starts with a #
> ------------------------------------------
>
>                 Key: GROOVY-9194
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9194
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime
>    Affects Versions: 2.4.17
>            Reporter: Joseph Henry
>            Priority: Minor
>
> An exception occurs in Groovy if the groovy file contains the character #.
> This happens on linux systems where a script that starts with a # will result in an error:
> Exception in thread "main" java.lang.ClassFormatError: Illegal class name "" in class file 
> simply doing this:
> groovy /path/#myfile
> will produce this error.
> This is a regression caused by GROOVY-6641



--
This message was sent by Atlassian Jira
(v8.3.4#803005)