mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8286615: Small refactor to SerializedLambda
Reviewed-by: bpb, iris
This commit is contained in:
parent
17c52789b7
commit
160944bc6b
1 changed files 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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -277,9 +277,7 @@ public final class SerializedLambda implements Serializable {
|
||||||
|
|
||||||
return deserialize.invoke(null, this);
|
return deserialize.invoke(null, this);
|
||||||
} catch (ReflectiveOperationException roe) {
|
} catch (ReflectiveOperationException roe) {
|
||||||
ObjectStreamException ose = new InvalidObjectException("ReflectiveOperationException during deserialization");
|
throw new InvalidObjectException("ReflectiveOperationException during deserialization", roe);
|
||||||
ose.initCause(roe);
|
|
||||||
throw ose;
|
|
||||||
} catch (PrivilegedActionException e) {
|
} catch (PrivilegedActionException e) {
|
||||||
Exception cause = e.getException();
|
Exception cause = e.getException();
|
||||||
if (cause instanceof RuntimeException)
|
if (cause instanceof RuntimeException)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue