diff options
author | aclement <aclement> | 2004-08-13 15:18:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-13 15:18:01 +0000 |
commit | 36d7a888c5b0ebaf1947afff7d29fc17115101a3 (patch) | |
tree | 213292e62ca36d11323242446ac5a715fbe004df /org.aspectj.ajdt.core/testdata/OutjarTest/src | |
parent | 17cd7b3e1254a56ffd3248bb5bc4ffacdf48bb98 (diff) | |
download | aspectj-36d7a888c5b0ebaf1947afff7d29fc17115101a3.tar.gz aspectj-36d7a888c5b0ebaf1947afff7d29fc17115101a3.zip |
Bugzilla Bug 71339
AJC produces partial output jar file, when there are warnings during weaving
(new dependencies)
Diffstat (limited to 'org.aspectj.ajdt.core/testdata/OutjarTest/src')
3 files changed, 59 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar1/Parent.java b/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar1/Parent.java new file mode 100644 index 000000000..55ec0c902 --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar1/Parent.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * Matthew Webster - initial implementation + *******************************************************************************/ +package jar1; + +public class Parent { + + public static void main(String[] args) { + } +} diff --git a/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar2/Child.java b/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar2/Child.java new file mode 100644 index 000000000..534a96a79 --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar2/Child.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * Matthew Webster - initial implementation + *******************************************************************************/ +package jar2; + +import jar1.Parent; + +public class Child extends Parent { + + public static void main(String[] args) { + System.out.println("? Child.main()"); + } +} diff --git a/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar3/Aspect.aj b/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar3/Aspect.aj new file mode 100644 index 000000000..afe7cbf5d --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/OutjarTest/src/jar3/Aspect.aj @@ -0,0 +1,22 @@ +/*******************************************************************************
+ * Copyright (c) 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * Matthew Webster - initial implementation
+ *******************************************************************************/
+package jar3;
+
+public aspect Aspect {
+
+ pointcut main () :
+ execution(* *.main(..));
+
+ after () : main () {
+ System.out.println("? Aspect.main()");
+ }
+
+}
|