Versions Compared

Key

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

...

The bytecode verification process runs by default. The -Xverify:none flag on the JVM command line suppresses the verification process. With Android, that could be done by setting a property in the adb shell  (adb shell setprop dalvik.vm.dexopt-flags v=n). This noncompliant code example uses the flag to disable bytecode verification.

Code Block
bgColor#FFcccc

java -Xverify:none ApplicationName

...

Specifying the -Xverify:all flag on the command line requires the JVM to enable bytecode verification (even when it would otherwise have been suppressed), as shown in this compliant solution.

Code Block
bgColor#ccccff

java -Xverify:all ApplicationName

...

[Oaks 2001]

The Bytecode Verifier

[Pistoia 2004]

Section 7.3, The Class File Verifier

 

      15. Runtime Environment (ENV)