Versions Compared

Key

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

An infinite loop with an empty body is a suboptimal solution, because it consumes CPU cycles but does nothing. Optimizing compilers and JITs are permitted to remove such a loop, which can lead to unexpected results. Consequently, use of programs must not include infinite loops with empty bodies is forbidden.

Noncompliant Code Example

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="62327f46ca49718c-a4dc3e5a-432b4e75-a4d09c94-4de2b612216f1cbf3781c529"><ac:plain-text-body><![CDATA[

[[API 2006

https://www.securecoding.cert.org/confluence/display/java/AA.+Java+References#AA.JavaReferences-API06]]

]]></ac:plain-text-body></ac:structured-macro>

...