8070507: LambdaLambdaSerialized can fail in -agentvm mode
Reviewed-by: mcimadamore
--- 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);
-}