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

NioGroovyMethods don't work under JDK6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.4
    • 2.4.0-beta-2
    • groovy-jdk
    • None

    Description

      When using Groovy 2.3.3 under (Apple) JDK 6, the following warning is printed:

      Jul 15, 2014 9:05:26 AM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
      WARNING: Module [groovy-all] - Unable to load extension class [org.codehaus.groovy.runtime.NioGroovyMethods]
      

      (No reason is given why the class cannot be loaded.) Attempts to use a method from NioGroovyMethods (e.g. Closeable#withCloseable) lead to groovy.lang.MissingMethodException.

      Output of java -version:

      java version "1.6.0_65"
      Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
      Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
      

      PS: Groovy version 2.3.3 isn't available in JIRA (i.e. 2.3.3 isn't accepted for "Affects Version/s").

      Attachments

        Activity

          People

            paulk Paul King
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: