From 09e2b1bc62beb82dbaf746b996ebc8d7049380bc Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 29 Nov 2006 15:46:51 +0000 Subject: [PATCH] test and fix for 165631: Dont allow multiple parameterizations in a hierarchy --- weaver/src/org/aspectj/weaver/patterns/DeclareParents.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/patterns/DeclareParents.java b/weaver/src/org/aspectj/weaver/patterns/DeclareParents.java index 414e1d8ba..3d97bcad7 100644 --- a/weaver/src/org/aspectj/weaver/patterns/DeclareParents.java +++ b/weaver/src/org/aspectj/weaver/patterns/DeclareParents.java @@ -326,7 +326,9 @@ public class DeclareParents extends Declare { return false; } } - return verifyNoInheritedAlternateParameterization(supertype,newParent,world); + if (!verifyNoInheritedAlternateParameterization(supertype,newParent,world)) { + return false; + } } return true; } -- 2.39.5