Issue Details (XML | Word | Printable)

Key: GROOVY-2155
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Paul King
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Some additional static import regressions since beta-2

Created: 30/Sep/07 02:08 AM   Updated: 08/Oct/07 04:16 AM   Resolved: 08/Oct/07 04:16 AM
Return to search
Component/s: None
Affects Version/s: 1.1-beta-3
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified


 Description  « Hide

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.



Paul King added a comment - 08/Oct/07 04:16 AM

Added to HEAD