src/java.base/share/classes/java/lang/invoke/SerializedLambda.java
changeset 57956 e0b8b019d2f5
parent 51118 2467bd84c59b
child 58520 e036ee8bae56
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    63  *
    63  *
    64  * @see LambdaMetafactory
    64  * @see LambdaMetafactory
    65  * @since 1.8
    65  * @since 1.8
    66  */
    66  */
    67 public final class SerializedLambda implements Serializable {
    67 public final class SerializedLambda implements Serializable {
       
    68     @java.io.Serial
    68     private static final long serialVersionUID = 8025925345765570181L;
    69     private static final long serialVersionUID = 8025925345765570181L;
    69     private final Class<?> capturingClass;
    70     private final Class<?> capturingClass;
    70     private final String functionalInterfaceClass;
    71     private final String functionalInterfaceClass;
    71     private final String functionalInterfaceMethodName;
    72     private final String functionalInterfaceMethodName;
    72     private final String functionalInterfaceMethodSignature;
    73     private final String functionalInterfaceMethodSignature;
   223      */
   224      */
   224     public Object getCapturedArg(int i) {
   225     public Object getCapturedArg(int i) {
   225         return capturedArgs[i];
   226         return capturedArgs[i];
   226     }
   227     }
   227 
   228 
       
   229     @java.io.Serial
   228     private Object readResolve() throws ObjectStreamException {
   230     private Object readResolve() throws ObjectStreamException {
   229         try {
   231         try {
   230             Method deserialize = AccessController.doPrivileged(new PrivilegedExceptionAction<>() {
   232             Method deserialize = AccessController.doPrivileged(new PrivilegedExceptionAction<>() {
   231                 @Override
   233                 @Override
   232                 public Method run() throws Exception {
   234                 public Method run() throws Exception {