groovy

Some additional static import regressions since beta-2

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-rc-1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
Paul King added a comment -

Added to HEAD

Show
Paul King added a comment - Added to HEAD

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: