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

[Java 10] Illegal method name with special chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.15
    • None
    • class generator

    Description

      I'm running this code on java 8 and java 10. While this code compiles and runs fine on java 8, it fails on java 10 with an error

      Error: LinkageError occurred while loading main class Foo
      	java.lang.ClassFormatError: Illegal method name "foo/bar" in class Foo
      
      class Foo {
      
        void "foo/bar"() {
          println "foo"
        }
      
        public static void main(String[] args) {
          new Foo()."foo/bar"()
        }
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ketanpadegaonkar@gmail.com Ketan Padegaonkar
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: