There are still some cases which worked with beta-2 which are still broken after the move to StaticImportVisitor, e.g:
importstatic 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.
Description
There are still some cases which worked with beta-2 which are still broken after the move to StaticImportVisitor, e.g:
importstatic 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.