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

Some additional static import regressions since beta-2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-3
    • 1.1-rc-1
    • None
    • None

    Description

      There are still some cases which worked with beta-2 which are still broken after the move to StaticImportVisitor, e.g:

              import static java.util.Calendar.getInstance as now
              def now = now().time
              assert now.class == Date
      

      =>

      groovy.lang.MissingMethodException: No signature of method: groovy.StaticImportTest.now() is applicable for argument types: () values: {}
      

      This is mainly a placeholder - I have a partial fix for this locally but am about to head off for a week's holiday (after opening the first Groovy User Group in Australia tomorrow)!, so don't want to risk breaking the build while I have limited ability to respond - we should fix before rc-1 though.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: