Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I'd like 'class' to be a special variable like 'this' and 'super' when used inside an expression or named parameter call.
e.g.
class Foo {
log = Log.newInstance(class)
static main(String[] args)
{ class.newInstance().run() }}
or when used with GroovyMarkup...
builder = new BeanBuilder()
bean = builder.bean(class:Customer) {
address(city:'London')
name('James')
}