Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-3
-
Fix Version/s: 2.0-rc-1
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
The following classes should fail to compile:
@TypeChecked
class StaticGroovy1 {
Date foo = ""
}
@TypeChecked
class StaticGroovy2 {
Closure<List> cls = { Date aDate -> aDate.getTime() }
}
@TypeChecked
class StaticGroovy3 {
static Closure<Long> cls = { Date aDate -> aDate.getTime() }
def bar() {
cls("")
}
}
Activity
Cedric Champeau
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Cedric Champeau [ melix ] |
Cedric Champeau
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.0-rc-1 [ 18472 ] | |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |