Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Integer literals with leading zeros, in actuality, assume octal values, not decimal values. According to §3.10.1, "Integer Literals," of the Java Language Specification [JLS 2011],

...

Confusing a lowercase letter l with a digit 1 when indicating that an integer denotation is a long value can result in incorrect computations. Automated detection is trivial.

...