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()
Activity
Andrew Eisenberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.8-rc-4 [ 17245 ] | |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
This problem does not occur in 1.7.