Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.8-rc-2
-
Fix Version/s: 1.8-rc-4
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Perhaps related to GROOVY-4733.
I would expect that this code prints "99", but it doesn't. It prints "9":
class A {
{
print f
}
def f = 9 //
def other = { }
{
print f }
}
new A()
This code, however, prints "99":
class A {
{
print f
}
{
print f }
def f = 9 //
def other = { }
}
new A()
This problem does not occur in 1.7.