Versions Compared

Key

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

...

JDK 5.0, the output of this code is 0. But it is an undefined behavior, which depends on how many caches we could use. But if we set more caches inside Integer, then the result may be different!

Risk Assessment

The result is an undefined behavior, so it will exert  a potential security risk.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

  EXP05-J

medium

likely

low medium

 

 

Automated Detection

TODO

...