8070507: LambdaLambdaSerialized can fail in -agentvm mode

Reviewed-by: mcimadamore
This commit is contained in:
Joel Borggrén-Franck 2015-01-21 19:02:20 +01:00
parent 22e2343e57
commit 4b78cb3eb7
2 changed files with 8 additions and 8 deletions

View file

@ -68,12 +68,12 @@ public class LambdaLambdaSerialized {
}
static void readAssert(ObjectInputStream in, String expected) throws IOException, ClassNotFoundException {
LSI<LSI<Map>> ls = (LSI<LSI<Map>>) in.readObject();
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 {
interface LSI<T> extends Serializable {
T get();
}
}

View file

@ -111,8 +111,8 @@ public class SerializedLambdaInInit {
}
}
}
}
interface LSI extends Serializable {
interface LSI extends Serializable {
String convert(String x);
}
}