Versions Compared

Key

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

...

Code Block
bgColor#ccccff
...
public static final FuncLoader m_functions;
...

Compliant Solution

Additionally for mutable static state one can define assessor methods and add appropriate security checks.

...

However as a cautionary note, simply changing the modifier to final may not prevent attackers from indirectly causing indirectly retrieving an incorrect value to be stored in from the static final variable before its initialization. See Eliminate Class Initialization Cycles for more on this problem.

...