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

@ -67,13 +67,13 @@ public class LambdaLambdaSerialized {
out.writeObject(lamb); out.writeObject(lamb);
} }
static void readAssert(ObjectInputStream in, String expected) throws IOException, ClassNotFoundException { 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(); Map result = ls.get().get();
System.out.printf("Result: %s\n", result); System.out.printf("Result: %s\n", result);
} }
}
interface LSI<T> extends Serializable { interface LSI<T> extends Serializable {
T get(); T get();
}
} }

View file

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