groovy

allow importing of static methods like Java 1.5

Details

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

Description

import java.math.Math

sin(1234.14) * cos(2.4)

etc

Issue Links

Activity

Hide
Guillaume Laforge added a comment -

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()

Show
Guillaume Laforge added a comment - 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()
Hide
Paul King added a comment -

Duplicate of GROOVY-1806 which is closed.

Show
Paul King added a comment - Duplicate of GROOVY-1806 which is closed.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: