Iced Tea in Crete 2012:UNSAFE

From WikiEducator
Jump to: navigation, search
UNSAFE
Convenor: Heinz
Participants:
  • Rabea
  • Thomas
  • Heinz
  • Kirk
Summary:

In Java we find the sun.misc.Unsafe class that very advanced programmers use to write optimal code. Of course it is "unsafe", as it allows us to write to memory directly. We tried to use Unsafe to circumvent Applet security, but you either need your class to be loaded by the boot class loader or otherwise you need a signed applet. Thomas thought he found a way to load it without security by specifying the bootclasspath in the applet tag, but it did not work in a browser, only in the appletviewer.

Recommendations:

Don't use Unsafe. It is Unsafe, as the name suggests.