diff options
-rw-r--r-- | weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java | 4 |
1 files changed, 3 insertions, 1 deletions
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()<AjAttribute.WeaverVersionInfo.WEAVER_VERSION_MAJOR_AJ150) return null; SourceLocation ret = null; ObjectInputStream ois = null; try { |