Issue Details (XML | Word | Printable)

Key: GROOVY-202
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: james strachan
Votes: 0
Watchers: 2
Operations

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

allow importing of static methods like Java 1.5

Created: 17/Feb/04 10:17 AM   Updated: 18/Jun/07 03:54 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified

Issue Links:
dependent
 


 Description  « Hide
import java.math.Math

sin(1234.14) * cos(2.4)

etc



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Laforge added a comment - 24/Nov/04 11:57 AM
We could allow a syntax such as:

import *() from my.Foo
import staticMethod() from my.Foo

Or something like what John Rose suggested on IRC a while back:

import my.Foo.staticMethod()


Paul King added a comment - 18/Jun/07 03:54 AM
Duplicate of GROOVY-1806 which is closed.