+++ /dev/null
-/* *******************************************************************
- * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
- * 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:
- * PARC initial implementation
- * ******************************************************************/
-
-
-package org.aspectj.ajdt.internal.compiler.lookup;
-
-import org.aspectj.weaver.Advice;
-import org.aspectj.weaver.AjAttribute;
-import org.aspectj.weaver.Member;
-import org.aspectj.weaver.Shadow;
-import org.aspectj.weaver.patterns.Pointcut;
-
-
-public class EclipseAdvice extends Advice {
- public EclipseAdvice(AjAttribute.AdviceAttribute attribute, Pointcut pointcut, Member signature) {
-
- super(attribute, pointcut, signature);
- }
-
-
-
- public void implementOn(Shadow shadow) {
- throw new RuntimeException("unimplemented");
- }
-
- public void specializeOn(Shadow shadow) {
- throw new RuntimeException("unimplemented");
- }
-
- public int compareTo(Object other) {
- throw new RuntimeException("unimplemented");
- }
-
-}
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
- * PARC initial implementation
+ * PARC initial implementation
* ******************************************************************/
public EclipseTypeMunger makeEclipseTypeMunger(ConcreteTypeMunger concrete) {
if (concrete instanceof EclipseTypeMunger) return (EclipseTypeMunger)concrete;
- if (EclipseTypeMunger.supportsKind(concrete.getMunger().getKind())) {
+
+ if (concrete.getMunger() != null && EclipseTypeMunger.supportsKind(concrete.getMunger().getKind())) {
return new EclipseTypeMunger(this, concrete.getMunger(), concrete.getAspectType(), null);
} else {
return null;
public static class MyException extends Exception {}\r
\r
declare soft: MyException: withincode(new(..));\r
+ \r
+ \r
+ // added this to cover Bugzilla Bug 34820 \r
+ // ajc -aspectpath fails with NPE for cflow pointcuts \r
+ int counter = 0;\r
+ before(): cflow(within(client..*)) && call(* println(..)) {\r
+ counter ++;\r
+ }\r
}
\ No newline at end of file