From f27f533d1a9fe18634aeed8e49269c80f9ba2f00 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 3 Oct 2005 14:09:09 +0000 Subject: [PATCH] pr83717: Dont expect to find source locations for type mungers if processing code built with 1.2.1 or earlier. --- weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java b/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java index e602170c4..8b0de53a4 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java +++ b/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java @@ -162,8 +162,10 @@ public abstract class ResolvedTypeMunger { } - protected static ISourceLocation readSourceLocation(DataInputStream s) throws IOException { + protected static ISourceLocation readSourceLocation(VersionedDataInputStream s) throws IOException { if (!persistSourceLocation) return null; + // Location persistence for type mungers was added after 1.2.1 was shipped... + if (s.getMajorVersion()