changeset 2802:ba94059b469a

8070507: LambdaLambdaSerialized can fail in -agentvm mode Reviewed-by: mcimadamore
author jfranck
date Wed, 21 Jan 2015 19:02:20 +0100
parents 1580b10e028a
children a6f70f3d55b5
files test/tools/javac/lambda/LambdaLambdaSerialized.java test/tools/javac/lambda/SerializedLambdaInInit.java
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/lambda/LambdaLambdaSerialized.java	Tue Jan 20 21:49:55 2015 +0100
+++ b/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/test/tools/javac/lambda/SerializedLambdaInInit.java	Tue Jan 20 21:49:55 2015 +0100
+++ b/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);
-}