Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3054

ClassFormatError: Illegal class name Exception when running a script from a folder with dot in its name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • bytecode
    • None
    • Ubuntu 7.10
      SunOS 5.10

    Description

      To reproduce this error just generate a folder with the name "test-7.2"
      and generate in it an easy script file named Test:

      //script file
      println 'foo'

      When you run this script the following Exception is thrown:
      Caught: java.lang.ClassFormatError: Illegal class name "test-7" in class file test-7

      If you rename the file to something with a dot extension (e.g. Test.groovy or Test.test) it works.

      Attachments

        Activity

          People

            paulk Paul King
            mszalbach Marcel Szalbach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: