From: aclement Date: Wed, 19 May 2010 15:13:28 +0000 (+0000) Subject: 312839: smaller class files X-Git-Tag: PRE_PUSHIN~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=32284aa74065421fcda4d7cbb36b163242a2e528;p=aspectj.git 312839: smaller class files --- diff --git a/weaver5/java5-testsrc/org/aspectj/weaver/patterns/WildTypePatternResolutionTestCase.java b/weaver5/java5-testsrc/org/aspectj/weaver/patterns/WildTypePatternResolutionTestCase.java index 6211d5db9..5eda5d577 100644 --- a/weaver5/java5-testsrc/org/aspectj/weaver/patterns/WildTypePatternResolutionTestCase.java +++ b/weaver5/java5-testsrc/org/aspectj/weaver/patterns/WildTypePatternResolutionTestCase.java @@ -387,12 +387,13 @@ public class WildTypePatternResolutionTestCase extends TestCase { private TypePattern writeAndRead(TypePattern etp) { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); - CompressingDataOutputStream dos = new CompressingDataOutputStream(baos); + ConstantPoolSimulator cps = new ConstantPoolSimulator(); + CompressingDataOutputStream dos = new CompressingDataOutputStream(baos, cps); etp.write(dos); dos.flush(); dos.close(); ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); - VersionedDataInputStream in = new VersionedDataInputStream(bais); + VersionedDataInputStream in = new VersionedDataInputStream(bais, cps); in.setVersion(new WeaverVersionInfo()); TypePattern ret = TypePattern.read(in, null); return ret;