Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: english

...

Code

Java behaviour

Suggested behaviour for STC

Code Block
long x = 1;

int y = x;

Complains about possible loose loss of precision

"Standard Groovy" actually performs an implicit cast : int y=(int)x. So there is normally no reason to complain. However, it can be disturbing for the Java developer and may be a source of error.

Code Block
Set set = []

Unsupported

Should not complain

Code Block
Dimension d = [100,200]

Unsupported

Should not complain

...