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

Static member variable causing ClassFormatError

    XMLWordPrintableJSON

Details

    Description

      class StaticMember {
      public static Long x = 0;
      }

      causes a:

      Exception in thread "main" java.lang.ClassFormatError: StaticMember (Bad string initial value)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at groovy.lang.GroovyClassLoader.access$200(GroovyClassLoader.java:78)
      at groovy.lang.GroovyClassLoader$ClassCollector.onClassNode(GroovyClassLoader.java:400)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            jamiemc Jamie McCrindle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: