Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
-
WinXP, JDK1.4.2_03
Description
Trying to create a method closure from a staic metod fails...
y = (new Object()).hashCode
println y()
//succeeds
x = System.currentTimeMillis
println x()
// fails with
// "No such property: currentTimeMillis for class: java.lang.System. Reason: java.lang.NoSuchFieldException: currentTimeMillis"
Also... I don't think 'use' is too wild about static methods either.