Skip to content

Instantly share code, notes, and snippets.

Pierre Ernst pierre-ernst

  • Ottawa ON, Canada
Block or report user

Report or block pierre-ernst

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pierre-ernst
pierre-ernst / FinalizeTester.java
Created Apr 7, 2016
Testing if the finalize() method is called for objects created by deserialization
View FinalizeTester.java
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.URL;
import java.net.HttpURLConnection;
You can’t perform that action at this time.