8070507: LambdaLambdaSerialized can fail in -agentvm mode
authorjfranck
Wed, 21 Jan 2015 19:02:20 +0100
changeset 28592 4f1da6e809b0
parent 28591 25f1384324ae
child 28593 d8bb77bbb041
8070507: LambdaLambdaSerialized can fail in -agentvm mode Reviewed-by: mcimadamore
langtools/test/tools/javac/lambda/LambdaLambdaSerialized.java
langtools/test/tools/javac/lambda/SerializedLambdaInInit.java
--- a/langtools/test/tools/javac/lambda/LambdaLambdaSerialized.java	Tue Jan 20 21:49:55 2015 +0100
+++ b/langtools/test/tools/javac/lambda/LambdaLambdaSerialized.java	Wed Jan 21 19:02:20 2015 +0100
@@ -67,13 +67,13 @@
         out.writeObject(lamb);
     }
 
-    static void readAssert(ObjectInputStream in, String expected)  throws IOException, ClassNotFoundException {
-        LSI<LSI<Map>> ls = (LSI<LSI<Map>>) in.readObject();
+    static void readAssert(ObjectInputStream in, String expected) throws IOException, ClassNotFoundException {
+        LSI<LSI<Map>> ls = (LSI<LSI<Map>>)in.readObject();
         Map result = ls.get().get();
         System.out.printf("Result: %s\n", result);
     }
+
+    interface LSI<T> extends Serializable {
+        T get();
+    }
 }
-
-interface LSI<T> extends Serializable {
-    T get();
-}
--- a/langtools/test/tools/javac/lambda/SerializedLambdaInInit.java	Tue Jan 20 21:49:55 2015 +0100
+++ b/langtools/test/tools/javac/lambda/SerializedLambdaInInit.java	Wed Jan 21 19:02:20 2015 +0100
@@ -111,8 +111,8 @@
             }
         }
     }
+
+    interface LSI extends Serializable {
+        String convert(String x);
+    }
 }
-
-interface LSI extends Serializable {
-    String convert(String x);
-}