From 36d7a888c5b0ebaf1947afff7d29fc17115101a3 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 13 Aug 2004 15:18:01 +0000 Subject: Bugzilla Bug 71339 AJC produces partial output jar file, when there are warnings during weaving (new dependencies) --- .../testdata/OutjarTest/src/jar1/Parent.java | 17 +++++++++++++++++ .../testdata/OutjarTest/src/jar2/Child.java | 20 ++++++++++++++++++++ .../testdata/OutjarTest/src/jar3/Aspect.aj | 22 ++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 org.aspectj.ajdt.core/testdata/OutjarTest/src/jar1/Parent.java create mode 100644 org.aspectj.ajdt.core/testdata/OutjarTest/src/jar2/Child.java create mode 100644 org.aspectj.ajdt.core/testdata/OutjarTest/src/jar3/Aspect.aj (limited to 'org.aspectj.ajdt.core/testdata/OutjarTest/src') 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()"); + } + +} -- cgit v1.2.3