aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ajde/testdata/DuplicateManifestTest/aspectjar.jarbin2769 -> 2730 bytes
-rw-r--r--ajde/testdata/DuplicateManifestTest/injar.jarbin702 -> 702 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectAdvice.jarbin2468 -> 2448 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectAdvice_nodebug.jarbin2468 -> 2448 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectDeclare.jarbin1866 -> 1875 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft.jarbin1559 -> 1547 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft_nodebug.jarbin1559 -> 1547 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectDeclare_nodebug.jarbin1866 -> 1875 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectITD.jarbin1890 -> 1864 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectITD_nodebug.jarbin1890 -> 1864 bytes
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/Simple.jarbin698 -> 698 bytes
-rw-r--r--org.aspectj.ajdt.core/testdata/OutjarTest/aspects.jarbin1385 -> 1367 bytes
-rw-r--r--org.aspectj.ajdt.core/testdata/OutjarTest/child.jarbin724 -> 724 bytes
-rw-r--r--org.aspectj.ajdt.core/testdata/OutjarTest/parent.jarbin630 -> 630 bytes
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java1
-rw-r--r--tests/bugs/StringToString/helloworld.jarbin1074 -> 1074 bytes
-rw-r--r--tests/bugs/cflowAndJar/lib.jarbin996 -> 984 bytes
-rw-r--r--tests/bugs/perCflowAndJar/lib.jarbin1194 -> 1183 bytes
-rw-r--r--tests/bugs/serialVersionUID/injar.jarbin2399 -> 2399 bytes
-rw-r--r--tests/new/options11/aspectlib1.jarbin1633 -> 1608 bytes
-rw-r--r--tests/new/options11/aspectlib2.jarbin1281 -> 1266 bytes
-rw-r--r--tests/new/options11/injar.jarbin599 -> 599 bytes
-rw-r--r--weaver/src/org/aspectj/weaver/AjAttribute.java27
-rw-r--r--weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java6
-rw-r--r--weaver/src/org/aspectj/weaver/VersionedDataInputStream.java1
-rw-r--r--weaver/testdata/dummyAspect.jarbin882 -> 870 bytes
-rw-r--r--weaver/testdata/ltw-acaspects.jarbin2544 -> 2519 bytes
-rw-r--r--weaver/testdata/ltw-aspects.jarbin1565 -> 1535 bytes
-rw-r--r--weaver/testdata/ltw-classes.jarbin1494 -> 1494 bytes
-rw-r--r--weaver/testdata/ltw-deaspects.jarbin1217 -> 1195 bytes
-rw-r--r--weaver/testdata/ltw-dwaspects.jarbin1213 -> 1200 bytes
-rw-r--r--weaver/testdata/ltw-itdaspects.jarbin5734 -> 5648 bytes
-rw-r--r--weaver/testdata/ltw-peraspects.jarbin1894 -> 1876 bytes
-rw-r--r--weaver/testdata/ltw-woven.jarbin2814 -> 2732 bytes
-rw-r--r--weaver/testdata/megatrace.jarbin5537 -> 5515 bytes
-rw-r--r--weaver/testdata/megatrace0easy.jarbin3908 -> 3903 bytes
-rw-r--r--weaver/testdata/megatrace0hard.jarbin3753 -> 3732 bytes
-rw-r--r--weaver/testdata/megatraceNoweave.jarbin3307 -> 3308 bytes
-rw-r--r--weaver/testdata/tracing.jarbin2807 -> 2766 bytes
39 files changed, 31 insertions, 4 deletions
diff --git a/ajde/testdata/DuplicateManifestTest/aspectjar.jar b/ajde/testdata/DuplicateManifestTest/aspectjar.jar
index 14a7d97a6..1d1a17999 100644
--- a/ajde/testdata/DuplicateManifestTest/aspectjar.jar
+++ b/ajde/testdata/DuplicateManifestTest/aspectjar.jar
Binary files differ
diff --git a/ajde/testdata/DuplicateManifestTest/injar.jar b/ajde/testdata/DuplicateManifestTest/injar.jar
index 89ed4b7f3..5acb18fbf 100644
--- a/ajde/testdata/DuplicateManifestTest/injar.jar
+++ b/ajde/testdata/DuplicateManifestTest/injar.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice.jar
index adcc0083c..5b1c79f28 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice_nodebug.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice_nodebug.jar
index adcc0083c..5b1c79f28 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice_nodebug.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectAdvice_nodebug.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare.jar
index 67a5d1144..20a53db64 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft.jar
index a7622506b..239347f8c 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft_nodebug.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft_nodebug.jar
index a3af82470..239347f8c 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft_nodebug.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareSoft_nodebug.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare_nodebug.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare_nodebug.jar
index ac5b17062..45bc72b70 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare_nodebug.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclare_nodebug.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectITD.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectITD.jar
index 842ad5ba5..fb54fede9 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectITD.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectITD.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectITD_nodebug.jar b/ajde/testdata/WeaveInfoMessagesTest/AspectITD_nodebug.jar
index 842ad5ba5..fb54fede9 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/AspectITD_nodebug.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectITD_nodebug.jar
Binary files differ
diff --git a/ajde/testdata/WeaveInfoMessagesTest/Simple.jar b/ajde/testdata/WeaveInfoMessagesTest/Simple.jar
index 192cf1888..42490e2ee 100644
--- a/ajde/testdata/WeaveInfoMessagesTest/Simple.jar
+++ b/ajde/testdata/WeaveInfoMessagesTest/Simple.jar
Binary files differ
diff --git a/org.aspectj.ajdt.core/testdata/OutjarTest/aspects.jar b/org.aspectj.ajdt.core/testdata/OutjarTest/aspects.jar
index 8a252d19b..630447de1 100644
--- a/org.aspectj.ajdt.core/testdata/OutjarTest/aspects.jar
+++ b/org.aspectj.ajdt.core/testdata/OutjarTest/aspects.jar
Binary files differ
diff --git a/org.aspectj.ajdt.core/testdata/OutjarTest/child.jar b/org.aspectj.ajdt.core/testdata/OutjarTest/child.jar
index 634616fd8..c68c6ee97 100644
--- a/org.aspectj.ajdt.core/testdata/OutjarTest/child.jar
+++ b/org.aspectj.ajdt.core/testdata/OutjarTest/child.jar
Binary files differ
diff --git a/org.aspectj.ajdt.core/testdata/OutjarTest/parent.jar b/org.aspectj.ajdt.core/testdata/OutjarTest/parent.jar
index 5c9aa4239..d2dc56815 100644
--- a/org.aspectj.ajdt.core/testdata/OutjarTest/parent.jar
+++ b/org.aspectj.ajdt.core/testdata/OutjarTest/parent.jar
Binary files differ
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java
index e7a30d581..cdf3c21cf 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java
@@ -217,6 +217,7 @@ public class BcweaverJarMaker {
args.add("-classpath");
args.add("../lib/test/aspectjrt.jar;../lib/test/testing-client.jar;../weaver/testdata/ltw-classes.jar" +
File.pathSeparator + System.getProperty("aspectjrt.path"));
+ args.add("-XnotReweavable");
args.add("-outjar");
args.add("../weaver/testdata/ltw-woven.jar");
args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/LTWHelloWorld.java");
diff --git a/tests/bugs/StringToString/helloworld.jar b/tests/bugs/StringToString/helloworld.jar
index 0919c86f5..3bc842f8e 100644
--- a/tests/bugs/StringToString/helloworld.jar
+++ b/tests/bugs/StringToString/helloworld.jar
Binary files differ
diff --git a/tests/bugs/cflowAndJar/lib.jar b/tests/bugs/cflowAndJar/lib.jar
index a16714ac1..2c4318164 100644
--- a/tests/bugs/cflowAndJar/lib.jar
+++ b/tests/bugs/cflowAndJar/lib.jar
Binary files differ
diff --git a/tests/bugs/perCflowAndJar/lib.jar b/tests/bugs/perCflowAndJar/lib.jar
index 1c76679d6..b8baf948e 100644
--- a/tests/bugs/perCflowAndJar/lib.jar
+++ b/tests/bugs/perCflowAndJar/lib.jar
Binary files differ
diff --git a/tests/bugs/serialVersionUID/injar.jar b/tests/bugs/serialVersionUID/injar.jar
index 3529dbbc1..431dd1cbe 100644
--- a/tests/bugs/serialVersionUID/injar.jar
+++ b/tests/bugs/serialVersionUID/injar.jar
Binary files differ
diff --git a/tests/new/options11/aspectlib1.jar b/tests/new/options11/aspectlib1.jar
index 532e4e55e..c79c95197 100644
--- a/tests/new/options11/aspectlib1.jar
+++ b/tests/new/options11/aspectlib1.jar
Binary files differ
diff --git a/tests/new/options11/aspectlib2.jar b/tests/new/options11/aspectlib2.jar
index 7faa76526..90ea2ccbe 100644
--- a/tests/new/options11/aspectlib2.jar
+++ b/tests/new/options11/aspectlib2.jar
Binary files differ
diff --git a/tests/new/options11/injar.jar b/tests/new/options11/injar.jar
index 54ae92075..bcbf51b54 100644
--- a/tests/new/options11/injar.jar
+++ b/tests/new/options11/injar.jar
Binary files differ
diff --git a/weaver/src/org/aspectj/weaver/AjAttribute.java b/weaver/src/org/aspectj/weaver/AjAttribute.java
index 30afb8c64..e3a4c2457 100644
--- a/weaver/src/org/aspectj/weaver/AjAttribute.java
+++ b/weaver/src/org/aspectj/weaver/AjAttribute.java
@@ -16,10 +16,12 @@ package org.aspectj.weaver;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
+import java.io.EOFException;
import java.io.IOException;
import org.aspectj.bridge.IMessageHandler;
import org.aspectj.bridge.MessageUtil;
+import org.aspectj.bridge.Version;
import org.aspectj.util.FileUtil;
import org.aspectj.weaver.patterns.Declare;
import org.aspectj.weaver.patterns.PerClause;
@@ -206,11 +208,12 @@ public abstract class AjAttribute {
public static short WEAVER_VERSION_MINOR_AJ121 = 0;
// These are the weaver major/minor numbers for AspectJ 1.5.0
+ public static short WEAVER_VERSION_MAJOR_AJ150M4 = 3;
public static short WEAVER_VERSION_MAJOR_AJ150 = 2;
public static short WEAVER_VERSION_MINOR_AJ150 = 0;
// These are the weaver major/minor versions for *this* weaver
- private static short CURRENT_VERSION_MAJOR = WEAVER_VERSION_MAJOR_AJ150;
+ private static short CURRENT_VERSION_MAJOR = WEAVER_VERSION_MAJOR_AJ150M4;
private static short CURRENT_VERSION_MINOR = WEAVER_VERSION_MINOR_AJ150;
public static final WeaverVersionInfo UNKNOWN =
@@ -220,6 +223,8 @@ public abstract class AjAttribute {
private short major_version;
private short minor_version;
+ private long buildstamp = Version.NOTIME;
+
public String getNameString() {
return AttributeName;
}
@@ -238,13 +243,22 @@ public abstract class AjAttribute {
public void write(DataOutputStream s) throws IOException {
s.writeShort(CURRENT_VERSION_MAJOR);
s.writeShort(CURRENT_VERSION_MINOR);
+ s.writeLong(Version.time); // build used to construct the class...
}
public static WeaverVersionInfo read(VersionedDataInputStream s) throws IOException {
short major = s.readShort();
short minor = s.readShort();
WeaverVersionInfo wvi = new WeaverVersionInfo(major,minor);
-// s.setVersion(wvi);
+ if (s.getMajorVersion()>=WEAVER_VERSION_MAJOR_AJ150M4) {
+ long stamp = 0;
+ try {
+ stamp = s.readLong();
+ wvi.setBuildstamp(stamp);
+ } catch (EOFException eof) {
+ // didnt find that build stamp - its not the end of the world
+ }
+ }
return wvi;
}
@@ -264,6 +278,15 @@ public abstract class AjAttribute {
return CURRENT_VERSION_MINOR;
}
+
+ public void setBuildstamp(long stamp) {
+ this.buildstamp = stamp;
+ }
+
+ public long getBuildstamp() {
+ return buildstamp;
+ }
+
public String toString() {
return major_version+"."+minor_version;
}
diff --git a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java
index ff01be4b0..23a2e57c4 100644
--- a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java
+++ b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java
@@ -378,8 +378,10 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno
if (s.getMajorVersion()>=AjAttribute.WeaverVersionInfo.WEAVER_VERSION_MAJOR_AJ150) {
- boolean isvarargs = s.readBoolean();
- if (isvarargs) m.setVarargsMethod();
+ if (s.getMajorVersion()>=AjAttribute.WeaverVersionInfo.WEAVER_VERSION_MAJOR_AJ150M4) {
+ boolean isvarargs = s.readBoolean();
+ if (isvarargs) m.setVarargsMethod();
+ }
int tvcount = s.readInt();
if (tvcount!=0) {
diff --git a/weaver/src/org/aspectj/weaver/VersionedDataInputStream.java b/weaver/src/org/aspectj/weaver/VersionedDataInputStream.java
index a9f239692..cdc357226 100644
--- a/weaver/src/org/aspectj/weaver/VersionedDataInputStream.java
+++ b/weaver/src/org/aspectj/weaver/VersionedDataInputStream.java
@@ -26,6 +26,7 @@ public class VersionedDataInputStream extends DataInputStream {
public int getMajorVersion() { return version.getMajorVersion(); }
public int getMinorVersion() { return version.getMinorVersion(); }
+ public long getBuildstamp() { return version.getBuildstamp(); }
public void setVersion(WeaverVersionInfo version) { this.version = version; }
} \ No newline at end of file
diff --git a/weaver/testdata/dummyAspect.jar b/weaver/testdata/dummyAspect.jar
index 00039691d..22dccf292 100644
--- a/weaver/testdata/dummyAspect.jar
+++ b/weaver/testdata/dummyAspect.jar
Binary files differ
diff --git a/weaver/testdata/ltw-acaspects.jar b/weaver/testdata/ltw-acaspects.jar
index 0bbc4d447..d637f7e9e 100644
--- a/weaver/testdata/ltw-acaspects.jar
+++ b/weaver/testdata/ltw-acaspects.jar
Binary files differ
diff --git a/weaver/testdata/ltw-aspects.jar b/weaver/testdata/ltw-aspects.jar
index 2ff17dd5b..5a6a924a0 100644
--- a/weaver/testdata/ltw-aspects.jar
+++ b/weaver/testdata/ltw-aspects.jar
Binary files differ
diff --git a/weaver/testdata/ltw-classes.jar b/weaver/testdata/ltw-classes.jar
index 593b4f11b..de87ac21f 100644
--- a/weaver/testdata/ltw-classes.jar
+++ b/weaver/testdata/ltw-classes.jar
Binary files differ
diff --git a/weaver/testdata/ltw-deaspects.jar b/weaver/testdata/ltw-deaspects.jar
index f7bbd02d0..39e0903ce 100644
--- a/weaver/testdata/ltw-deaspects.jar
+++ b/weaver/testdata/ltw-deaspects.jar
Binary files differ
diff --git a/weaver/testdata/ltw-dwaspects.jar b/weaver/testdata/ltw-dwaspects.jar
index fda2b9d2e..278379033 100644
--- a/weaver/testdata/ltw-dwaspects.jar
+++ b/weaver/testdata/ltw-dwaspects.jar
Binary files differ
diff --git a/weaver/testdata/ltw-itdaspects.jar b/weaver/testdata/ltw-itdaspects.jar
index 002847bb3..ac8abfcf6 100644
--- a/weaver/testdata/ltw-itdaspects.jar
+++ b/weaver/testdata/ltw-itdaspects.jar
Binary files differ
diff --git a/weaver/testdata/ltw-peraspects.jar b/weaver/testdata/ltw-peraspects.jar
index 674c960d9..3214321fb 100644
--- a/weaver/testdata/ltw-peraspects.jar
+++ b/weaver/testdata/ltw-peraspects.jar
Binary files differ
diff --git a/weaver/testdata/ltw-woven.jar b/weaver/testdata/ltw-woven.jar
index a1eb2b387..15cb0ec85 100644
--- a/weaver/testdata/ltw-woven.jar
+++ b/weaver/testdata/ltw-woven.jar
Binary files differ
diff --git a/weaver/testdata/megatrace.jar b/weaver/testdata/megatrace.jar
index 7818308b0..ea05f8ab5 100644
--- a/weaver/testdata/megatrace.jar
+++ b/weaver/testdata/megatrace.jar
Binary files differ
diff --git a/weaver/testdata/megatrace0easy.jar b/weaver/testdata/megatrace0easy.jar
index 2a2d311f2..68085fae7 100644
--- a/weaver/testdata/megatrace0easy.jar
+++ b/weaver/testdata/megatrace0easy.jar
Binary files differ
diff --git a/weaver/testdata/megatrace0hard.jar b/weaver/testdata/megatrace0hard.jar
index 5aaa3fb6f..08b449bba 100644
--- a/weaver/testdata/megatrace0hard.jar
+++ b/weaver/testdata/megatrace0hard.jar
Binary files differ
diff --git a/weaver/testdata/megatraceNoweave.jar b/weaver/testdata/megatraceNoweave.jar
index 0ffa3c931..e0e5a5e87 100644
--- a/weaver/testdata/megatraceNoweave.jar
+++ b/weaver/testdata/megatraceNoweave.jar
Binary files differ
diff --git a/weaver/testdata/tracing.jar b/weaver/testdata/tracing.jar
index ab39a6dae..46aeb0b70 100644
--- a/weaver/testdata/tracing.jar
+++ b/weaver/testdata/tracing.jar
Binary files differ