Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
So I have a class that defines:
public static Environment getCurrentEnvironment()
I use this class like:
import static grails.util.Environment.*
However this throws a MPE:
println currentEnvironment
whilst this works
println getCurrentEnvironment()
Seems wrong that propery notation should work for a static getter when it works when used directly:
import grails.util.Environment
println Environment.currentEnvironment