Skip to content
Permalink
Browse files Browse the repository at this point in the history
Prevent deserialization of Handler
  • Loading branch information
stain committed Feb 3, 2016
1 parent 1ccc66b commit 7c68fde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bsh/XThis.java
Expand Up @@ -118,6 +118,10 @@ interface from JDK1.2 VM...
*/
class Handler implements InvocationHandler
{
private Object readResolve() throws ObjectStreamException {
throw new NotSerializableException();
}

public Object invoke( Object proxy, Method method, Object[] args )
throws Throwable
{
Expand Down

0 comments on commit 7c68fde

Please sign in to comment.