Quick-n-Dirty: A simple isRecycled() method (2)

Tommy Valand improved the idea: In his solution the isDead method of the NotesBase class is accessed, and this works better, because the method addionally checks for the C object handle.

Here you can find the method: http://stackoverflow.com/questions/12740889/what-is-the-least-expensive-way-to-test-if-a-view-has-been-recycled

Update:

If you have problems with the java security manager, please add the following to the the java.policy file:

grant {
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};
Dieser Beitrag wurde unter Java, ServerSide JavaScript abgelegt und mit , , , verschlagwortet. Setze ein Lesezeichen auf den Permalink.

1 Antwort zu Quick-n-Dirty: A simple isRecycled() method (2)

  1. Pingback: Quick-n-Dirty: A simple isRecycled() method | blog@hasselba.ch

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.