Skip to content

Commit

Permalink
8286615: Small refactor to SerializedLambda
Browse files Browse the repository at this point in the history
Reviewed-by: bpb, iris
  • Loading branch information
jddarcy committed May 12, 2022
1 parent 17c5278 commit 160944b
Showing 1 changed file with 2 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -277,9 +277,7 @@ public Method run() throws Exception {

return deserialize.invoke(null, this);
} catch (ReflectiveOperationException roe) {
ObjectStreamException ose = new InvalidObjectException("ReflectiveOperationException during deserialization");
ose.initCause(roe);
throw ose;
throw new InvalidObjectException("ReflectiveOperationException during deserialization", roe);
} catch (PrivilegedActionException e) {
Exception cause = e.getException();
if (cause instanceof RuntimeException)
Expand Down

1 comment on commit 160944b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.