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

Groovy-module's extension method don't work by Grape Annotation(always on Java SE 8)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0-rc-3
    • 2.3.5
    • Grape
    • None
    • java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b115)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b57, mixed mode)

      MacOSX 10.9 marverics

    Description

      Similar issue to GROOVY-6446,

      @Grab( 'com.bloidonia:groovy-stream:0.6.2' )
      import groovy.stream.Stream
      
      println([1,2,3].iterator().toStream())
      

      Fails same exception

      Caught: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList$Itr.toStream() is applicable for argument types: () values: []
      Possible solutions: toString(), toString(), toSet()
      groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList$Itr.toStream() is applicable for argument types: () values: []
      Possible solutions: toString(), toString(), toSet()
      at s.run(s.groovy:5)

      With Java 8 environment, this happens always.
      And with Java 8, following code never success with same error.

      groovy.grape.Grape.grab(['group': 'com.bloidonia', 'module': 'groovy-stream', 'version': '0.6.2'])
      println([1,2,3].iterator().toStream())
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            paulk Paul King
            uehaj UEHARA Junji
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment