Details
Description
a final modifier on a local variable of some kind is currently ignored by groovy. Instead groovy should give a compile time error if final is used but the variable gets still a value
Activity
Paul King
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | finalForLocalVarsTooStrict.patch [ 55966 ] |
Paul King
made changes -
| Attachment | finalForParamsAndLocalVarsPartial.patch [ 55996 ] | |
| Attachment | astNodeChangesWithFinal.patch [ 55997 ] |
Paul King
made changes -
| Attachment | finalForLocalVariables.patch [ 56012 ] |
Paul King
made changes -
| Attachment | astNodeChangesWithFinal.patch [ 55997 ] |
Paul King
made changes -
| Attachment | finalForLocalVarsTooStrict.patch [ 55966 ] |
Paul King
made changes -
| Attachment | finalForParamsAndLocalVarsPartial.patch [ 55996 ] |
Attaching a spike. This is too strict in that it requires initialization at declaration time, e.g. this is correctly detected:
but will reject the following valid code:
final x x = 2