On 29/01/2013 10:21, Weijun Wang wrote: > I cannot think of a better way to simulate jdk6 behavior without calling > jdk6. > > Without this hack, the forward compatibility check part cannot be > tested. Maybe I can add this part to the jdk6 repo? > I think the type of interop that you attempting to test here is more appropriate for other test suites.
For the jdk repo, then I think it should be fine to check in the bytes streams (in source rather than binary format) and just check that they can be de-serialized in jdk8 (you can go the other way too by testing the serialized stream that jdk8 generated). -Alan.