Skip to content

Commit 7c68fde

Browse files
committed
Prevent deserialization of Handler
1 parent 1ccc66b commit 7c68fde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/bsh/XThis.java

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ interface from JDK1.2 VM...
118118
*/
119119
class Handler implements InvocationHandler
120120
{
121+
private Object readResolve() throws ObjectStreamException {
122+
throw new NotSerializableException();
123+
}
124+
121125
public Object invoke( Object proxy, Method method, Object[] args )
122126
throws Throwable
123127
{

0 commit comments

Comments
 (0)