issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | } else if (CharOperation.equals(afterReturningAdviceSig,sig)) {
adviceKind = AdviceKind.AfterReturning;
addAdviceAnnotation(annotations[i]);
} else if (CharOperation.equals(afterThrowingAdviceSig,sig)) {
adviceKind = AdviceKind.AfterThrowing;
addAdviceAnnotation(annotations[i]);
} else if (C... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | }
}
}
}
public boolean hasAspectJAnnotations() {
return hasAdviceAnnotation || hasPointcutAnnotation || hasAdviceNameAnnotation || hasAspectAnnotation;
}
private void addAdviceAnnotation(Annotation annotation) {
if (!hasAdviceAnnotation) {
hasAdviceAnnotation = true;
adviceAnnotati... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* 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://ww... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testDifferentNumbersofTVars_pr124803_2() { runTest("generics and different numbers of type variables - classes");}
public void testParameterizedCollectionFieldMatching_pr124808() { runTest("parameterized collection fields matched via pointcut");}
public void testGenericAspectsAndAnnotations_pr124654() {... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | IProgramElement pe = top.findElementForType("pkg","foo");
assertNotNull("Couldn't find 'foo' element in the tree",pe);
assertEquals("foo(int, java.lang.Object)",pe.toLabelString());
assertEquals("C.foo(int, java.lang.Object)",pe.toLinkLabelString());
assertEquals("foo(int, java.lang.Object)",p... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testAtAspectInheritsAbstractPointcut_pr125810 () {
runTest("warning when inherited pointcut not made concrete");
}
public void testAtAspectDEOWInStructureModel_pr120356() {
runTest("@AJ deow appear correctly when structure model is generated");
IHierarchy top = AsmManager.getDefault... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertNotNull("@DeclareWarning should have some relationships but does not",matchedBy);
assertTrue("@DeclareWarning should have one relationship but has " + matchedBy.size(), matchedBy.size() == 1);
List matchedByTargets = ((Relationship)matchedBy.get(0)).getTargets();
assertTrue("@DeclareWarning 'matche... |
121,616 | Bug 121616 [@AspectJ]Lacking import for JoinPoint crahes the compiler | null | resolved fixed | d4219e1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T09:33:38Z | 2005-12-20T20:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | runTest("@AJ no NPE with deow when structure model isn't generated");
}
/*
* Load-time weaving bugs and enhancements
*/
public void testEmptyPointcutInAtAspectJ_pr125475 () {
runTest("define empty pointcut using an annotation");
}
public void testEmptyPointcutInAtAspectJ_pr125475_2() {
runTes... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* 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://ww... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testMemberTypesInGenericTypes_pr122458() { runTest("member types in generic types");}
public void testMemberTypesInGenericTypes_pr122458_2() { runTest("member types in generic types - 2");}
public void testNPEOnDeclareAnnotation_pr123695() { runTest("Internal nullptr exception with complex declare a... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testIncorrectlyReferencingPointcuts_pr122452() { runTest("incorrectly referencing pointcuts");}
public void testIncorrectlyReferencingPointcuts_pr122452_2() { runTest("incorrectly referencing pointcuts - 2");}
public void testInlinevisitorNPE_pr123901() { runTest("inlinevisitor NPE");}
pub... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertEquals("C.foo(int, java.lang.Object)",pe.toLinkLabelString());
assertEquals("foo(int, java.lang.Object)",pe.toSignatureString());
assertEquals("foo(int, Object)",pe.toLabelString(false));
assertEquals("C.foo(int, Object)",pe.toLinkLabelString(false));
assertEquals("foo(int, Object)",pe.t... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testAtAspectDEOWInStructureModel_pr120356() {
runTest("@AJ deow appear correctly when structure model is generated");
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement warningMethodIPE = top.findElementForLabel(top.getRoot(),
IProgramElemen... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | "but has " + matchedByTargets.size(), matchedByTargets.size() == 1);
IProgramElement matchedByTarget = AsmManager.getDefault().getHierarchy().findElementForHandle((String)matchedByTargets.get(0));
assertEquals("target of relationship should be the warningMethod but is IPE with label "
+ matchedByTarget... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | runTest("@AJ without JoinPoint import");
}
/*
* Load-time weaving bugs and enhancements
*/
public void testEmptyPointcutInAtAspectJ_pr125475 () {
runTest("define empty pointcut using an annotation");
}
public void testEmptyPointcutInAtAspectJ_pr125475_2() {
runTest("define empty pointcut using... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved. |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | * 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
* Alexandre Vasseur @Asp... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | import org.aspectj.bridge.WeaveMessage;
import org.aspectj.bridge.context.CompilationAndWeavingContext;
import org.aspectj.bridge.context.ContextToken;
import org.aspectj.weaver.AjcMemberMaker;
import org.aspectj.weaver.AnnotationOnTypeMunger;
import org.aspectj.weaver.AnnotationX;
import org.aspectj.weaver.AsmRelation... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | public BcelTypeMunger(ResolvedTypeMunger munger, ResolvedType aspectType) {
super(munger, aspectType);
}
public String toString() {
return "(BcelTypeMunger " + getMunger() + ")";
}
public boolean munge(BcelClassWeaver weaver) {
ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavin... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | } else if (munger.getKind() == ResolvedTypeMunger.Constructor) {
changed = mungeNewConstructor(weaver, (NewConstructorTypeMunger)munger);
} else if (munger.getKind() == ResolvedTypeMunger.Parent) {
changed = mungeNewParent(weaver, (NewParentTypeMunger)munger);
} else if (munger.getKind() == ResolvedTypeMunger... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (munger.getKind().equals(ResolvedTypeMunger.Parent)) {
NewParentTypeMunger parentTM = (NewParentTypeMunger)munger;
if (parentTM.getNewParent().isInterface()) {
weaver.getWorld().getMessageHandler().handleMessage(WeaveMessage.constructWeavingMessage(WeaveMessage.WEAVEMES... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | CompilationAndWeavingContext.leavingPhase(tok);
return changed;
}
private String getShortname(String path) {
int takefrom = path.lastIndexOf('/');
if (takefrom == -1) {
takefrom = path.lastIndexOf('\\');
}
return path.substring(takefrom+1);
}
private boolean mungeNewAnnotationOnType(BcelClassWeaver ... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | for (Iterator iter = methods.iterator(); iter.hasNext();) {
ResolvedMember superMethod = (ResolvedMember) iter.next();
if (!superMethod.getName().equals("<init>")) {
LazyMethodGen subMethod = findMatchingMethod(newParentTarget, superMethod);
if (subMethod!=null && !subMethod.isBridg... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedMember o = (ResolvedMember)i.next();
if (o.isAbstract() && !o.getName().startsWith("ajc$interField")) {
ResolvedMember discoveredImpl = null;
List newParentTargetMethods = newParentTarget.getType().getMethodsWithoutIterator(false,true);
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | sig,m.getAspectType(),sig.getDeclaringType().resolve(weaver.getWorld()).isInterface()),o)) {
satisfiedByITD = true;
}
}
} else if (m.getMunger().getKind() == ResolvedTypeMunger.MethodD... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | return false;
}
return true;
}
/**
* Rule 3. Can't narrow visibility of methods when overriding
*/
private boolean enforceDecpRule3_visibilityChanges(BcelClassWeaver weaver, ResolvedType newParent, ResolvedMember superMethod, LazyMethodGen subMethod) {
boolean cont = true;
if (superMetho... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
return cont;
}
/**
* Rule 4. Can't have incompatible return types
*/
private boolean enforceDecpRule4_compatibleReturnTypes(BcelClassWeaver weaver, ResolvedMember superMethod, LazyMethodGen subMethod) {
boolean cont = true;
String superReturnTypeSig = superMethod.getReturnTyp... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | private boolean enforceDecpRule5_cantChangeFromStaticToNonstatic(BcelClassWeaver weaver,ISourceLocation mungerLoc,ResolvedMember superMethod, LazyMethodGen subMethod ) {
if (superMethod.isStatic() && !subMethod.isStatic()) {
error(weaver,"This instance method "+subMethod.getName()+subMethod.getParameterS... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | return found;
}
/**
* The main part of implementing declare parents extends. Modify super ctor calls to target the new type.
*/
public boolean attemptToModifySuperCalls(BcelClassWeaver weaver,LazyClassGen newParentTarget, ResolvedType newParent) {
String currentParent = newParentTarget.getSuper... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | boolean satisfiedByITDC = false;
for (Iterator ii = newParentTarget.getType().getInterTypeMungersIncludingSupers().iterator(); ii.hasNext() && !satisfiedByITDC; ) {
ConcreteTypeMunger m = (ConcreteTypeMunger)ii.next();
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | * Creates a nice signature for the ctor, something like "(int,Integer,String)"
*/
private String createReadableCtorSig(ResolvedType newParent, ConstantPoolGen cpg, INVOKESPECIAL invokeSpecial) {
StringBuffer sb = new StringBuffer();
Type[] ctorArgs = invokeSpecial.getArgumentTypes(cpg);
sb.append(newPa... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | private boolean mungePrivilegedAccess(
BcelClassWeaver weaver,
PrivilegedAccessMunger munger)
{
LazyClassGen gen = weaver.getLazyClassGen();
ResolvedMember member = munger.getMember();
ResolvedType onType = weaver.getWorld().resolve(member.getDeclaringType(),munger.getSourceLocation());
if (onType.isRaw... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
}
return true;
} else if (member.getKind() == Member.STATIC_INITIALIZATION) {
gen.forcePublic();
return true;
} else {
throw new RuntimeException("unimplemented");
}
}
return false;
}
private void addFieldGetter(
LazyClassGen gen,
ResolvedMember field,
ResolvedMember acce... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | field.getName(),
BcelWorld.makeBcelType(field.getType()), Constants.GETFIELD));
}
il.append(InstructionFactory.createReturn(BcelWorld.makeBcelType(field.getType())));
mg.getBody().insert(il);
gen.addMethodGen(mg,getSignature().getSourceLocation());
}
private void addFieldSetter(
LazyClassGen gen,... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | field.getName(),
fieldType, Constants.PUTFIELD));
}
il.append(InstructionFactory.createReturn(Type.VOID));
mg.getBody().insert(il);
gen.addMethodGen(mg,getSignature().getSourceLocation());
}
private void addMethodDispatch(
LazyClassGen gen,
ResolvedMember method,
ResolvedMember accessMethod)
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
il.append(Utility.createInvoke(fact, (BcelWorld)aspectType.getWorld(),
method));
il.append(InstructionFactory.createReturn(BcelWorld.makeBcelType(method.getReturnType())));
mg.getBody().insert(il);
gen.addMethodGen(mg);
}
protected LazyMethodGen makeMethodGen(LazyClassGen gen, ResolvedMember m... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | private boolean mungePerObjectInterface(
BcelClassWeaver weaver,
PerObjectInterfaceTypeMunger munger)
{
LazyClassGen gen = weaver.getLazyClassGen();
if (couldMatch(gen.getBcelObjectType(), munger.getTestPointcut())) {
FieldGen fg = makeFieldGen(gen,
AjcMemberMaker.perObjectField(gen.getType(), as... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | gen.addMethodGen(mg);
LazyMethodGen mg1 = new LazyMethodGen(
Modifier.PUBLIC,
Type.VOID,
NameMangler.perObjectInterfaceSet(aspectType),
new Type[]{fieldType,}, new String[0],
gen);
InstructionList il1 = new InstructionList();
il1.append(InstructionConstants.ALOAD_0);
il1.append(... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | private boolean mungePerTypeWithinTransformer(BcelClassWeaver weaver) {
LazyClassGen gen = weaver.getLazyClassGen();
FieldGen fg = makeFieldGen(gen, AjcMemberMaker.perTypeWithinField(gen.getType(), aspectType));
gen.addField(fg.getField(),getSourceLocation());
T... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | private boolean couldMatch(
BcelObjectType bcelObjectType,
Pointcut pointcut) {
return !bcelObjectType.isInterface();
}
private boolean mungeNewMethod(BcelClassWeaver weaver, NewMethodTypeMunger munger) {
World w = weaver.getWorld();
ResolvedMember unMangledInterMethod = munger.getSignature().resolve(w... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | return false;
}
if (onInterface && gen.getLazyMethodGen(unMangledInterMethod.getName(), unMangledInterMethod.getSignature(),true) != null) {
return false;
}
if (onType.equals(gen.getType())) {
ResolvedMember mangledInterMethod =
AjcMemberMaker.interMethod(unMangledInterMethod, asp... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (realMember==null) throw new BCException("Couldn't find ITD holder member '"+
memberHoldingAnyAnnotations+"' on aspect "+aspectType);
annotationsOnRealMember = realMember.getAnnotations();
if (annotationsOnRealMember!=null) {
for (int i = 0; i < annotationsOnRealMember.length; i++) {
An... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (!unMangledInterMethod.isStatic()) {
body.append(InstructionFactory.createThis());
pos++;
}
Type[] paramTypes = BcelWorld.makeBcelTypes(mangledInterMethod.getParameterTypes());
for (int i = 0, len = paramTypes.length; i < len; i++) {
Type paramType = paramTypes[i];
body.append(Instruc... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | return true;
} else if (onInterface && !Modifier.isAbstract(unMangledInterMethod.getModifiers())) {
if (!gen.getType().isTopmostImplementor(onType)) {
ResolvedType rtx = gen.getType().getTopmostImplementor(onType);
if (!rtx.isExposedToWeaver()) {
ISourceLocation sLoc... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
Type[] paramTypes = BcelWorld.makeBcelTypes(mangledInterMethod.getParameterTypes());
Type returnType = BcelWorld.makeBcelType(mangledInterMethod.getReturnType());
InstructionList body = mg.getBody();
InstructionFactory fact = gen.getFactory();
int pos = 0;
if (!mangledInterMet... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (munger.getDeclaredSignature()!=null) {
boolean needsbridging = false;
ResolvedMember toBridgeTo = munger.getDeclaredSignature().parameterizedWith(null,munger.getSignature().getDeclaringType().resolve(getWorld()),false,munger.getTypeVariableAliases());
if (!toBridgeTo.getReturnType().getErasureSignat... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
pos+=paramType.getSize();
}
body.append(Utility.createInvoke(fact, weaver.getWorld(), bridgerMethod));
body.append(InstructionFactory.createReturn(returnType));
gen.addMethodGen(bridgeMethod);
}
}
return true;
}
} else {... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedType superclass = onType.getSuperclass();
boolean quitRightNow = false;
String localMethodName = unMangledInterMethod.getName();
String localParameterSig = unMangledInterMethod.getParameterSignature();
String localReturnTypeESig = unMangledInterMethod.getReturnType().getErasureSignature();
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | createBridgeMethod(weaver.getWorld(), munger, unMangledInterMethod, gen, paramTypes, aMethod);
quitRightNow = true;
}
}
}
}
}
/**
* Create a bridge method for a particular munger.
* @param world
* @param munger
* @param unMangledInterMethod the method to bridge 'to' that we have already ... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | body.append(InstructionFactory.createThis());
pos++;
}
for (int i = 0, len = paramTypes.length; i < len; i++) {
Type paramType = paramTypes[i];
body.append(InstructionFactory.createLoad(paramType, pos));
pos+=paramType.getSize();
}
body.append(Utility.createInvoke(fact, world,unMangledInterMeth... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | gen
);
if (weaver.getWorld().isInJava5Mode()){
AnnotationX annotationsOnRealMember[] = null;
ResolvedType toLookOn = weaver.getWorld().lookupOrCreateName(introduced.getDeclaringType());
if (fromType.isRawType()) toLookOn = fromType.get... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | body.append(ifNonNull);
InstructionHandle ifNonNullElse = body.append(InstructionConstants.ALOAD_0);
body.append(fact.createNew(munger.getImplClassName()));
body.append(InstructionConstants.DUP);
body.append(fact.createInvoke(munger.getImplClassName(), "<init>", Type.VOID... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | weaver.getLazyClassGen().warnOnAddedMethod(mg.getMethod(),getSignature().getSourceLocation());
return true;
}
return false;
}
private boolean mungeFieldHost(BcelClassWeaver weaver, MethodDelegateTypeMunger.FieldHostTypeMunger munger) {
LazyClassGen gen = weaver.getLazyClassGe... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedMember realMember = null;
for (int i = 0; realMember==null && i < aspectMethods.length; i++) {
ResolvedMember member = aspectMethods[i];
if (member.getName().equals(lookingFor.getName())){
UnresolvedType [] memberParams = member.getGenericParameterTypes();
if (memberParams.length == lookingForPa... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
}
}
if (matchOK) realMember = member;
}
}
}
if (debug && realMember==null) System.err.println("Didn't find a match");
return realMember;
}
private void addNeededSuperCallMethods(
BcelClassWeaver weaver,
ResolvedType onType,
Set neededSuperCalls)
{
LazyClassGen gen = weaver.get... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | superMethod.getName());
LazyMethodGen dispatcher =
makeDispatcher(
gen,
dispatchName,
superMethod,
weaver.getWorld(),
isSuper);
weaver.addLazyMethodGen(dispatcher);
}
}
}
private void signalError(String msgid,BcelClassWeaver weaver,UnresolvedType onType) {
IMessage ms... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | return false;
}
if (onType.isEnum()) {
signalError(WeaverMessages.ITDC_ON_ENUM_NOT_ALLOWED,weaver,onType);
return false;
}
if (! onType.equals(currentClass.getType())) return false;
ResolvedMember explicitConstructor = newConstructorTypeMunger.getExplicitConstructor();
LazyMethodGen mg =
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | mg.addAnnotation(new AnnotationX(ag.getAnnotation(),weaver.getWorld()));
}
}
List allDecams = weaver.getWorld().getDeclareAnnotationOnMethods();
for (Iterator i = allDecams.iterator(); i.hasNext();){
DeclareAnnotation decaMC = (DeclareAnnotation) i.next();
if (decaMC.matches(explicitCo... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | Member preMethod =
AjcMemberMaker.preIntroducedConstructor(aspectType, onType, declaredParams);
body.append(Utility.createInvoke(fact, null, preMethod));
int arraySlot = mg.allocateLocal(1);
body.append(InstructionFactory.createStore(Type.OBJECT, arraySlot));
body.append(InstructionConstants.ALOA... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | body.append(InstructionConstants.ALOAD_0);
Member postMethod =
AjcMemberMaker.postIntroducedConstructor(aspectType, onType, declaredParams);
UnresolvedType[] postParamTypes = postMethod.getParameterTypes();
for (int i = 1, len = postParamTypes.length; i < len; i++) {
body.append(InstructionFactory.... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | BcelWorld world,
boolean isSuper)
{
Type[] paramTypes = BcelWorld.makeBcelTypes(superMethod.getParameterTypes());
Type returnType = BcelWorld.makeBcelType(superMethod.getReturnType());
int modifiers = Modifier.PUBLIC;
if (onGen.isInterface()) modifiers |= Modifier.ABSTRACT;
LazyMethodGen mg =
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | pos+=paramType.getSize();
}
if (isSuper) {
body.append(Utility.createSuperInvoke(fact, world, superMethod));
} else {
body.append(Utility.createInvoke(fact, world, superMethod));
}
body.append(InstructionFactory.createReturn(returnType));
return mg;
}
private boolean mungeNewField(BcelClassWeaver... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedMember interMethodBody = munger.getInitMethod(aspectType);
AnnotationX annotationsOnRealMember[] = null;
if (weaver.getWorld().isInJava5Mode()){
ResolvedType toLookOn = aspectType;
if (aspectType.isRawType()) toLookOn = aspectType.getGenericType();
ResolvedMember realMembe... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (annotationsOnRealMember!=null) {
for (int i = 0; i < annotationsOnRealMember.length; i++) {
AnnotationX annotationX = annotationsOnRealMember[i];
Annotation a = annotationX.getBcelAnnotation();
AnnotationGen ag = new AnnotationGen(a,weaver.getLazyClassGen().getConstantPoolGen(),true);
... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
}
gen.addField(fg.getField(),getSourceLocation());
ResolvedMember itdfieldGetter = AjcMemberMaker.interFieldInterfaceGetter(field, gen.getType(), aspectType);
LazyMethodGen mg = makeMethodGen(gen, itdfieldGetter);
InstructionList il = new InstructionList();
Instruct... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedMember toBridgeTo = munger.getDeclaredSignature().parameterizedWith(null,munger.getSignature().getDeclaringType().resolve(getWorld()),false,munger.getTypeVariableAliases());
boolean needsbridging = false;
if (!toBridgeTo.getReturnType().getErasureSignature().equals(munger.getSignature().getReturnType().... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (munger.getDeclaredSignature()!=null) {
ResolvedMember toBridgeTo = munger.getDeclaredSignature().parameterizedWith(null,munger.getSignature().getDeclaringType().resolve(getWorld()),false,munger.getTypeVariableAliases());
boolean needsbridging = false;
if (!toBridgeTo.getReturnType().getErasureSignatu... |
122,370 | Bug 122370 [@AspectJ] @DeclareParents/declare parents not equivalent | Adding a setter to the Moody example makes it clear that the annotation style (@DeclareParents) results in different behavior than the classic (declare parents) style. Calling the setter in a "declare parents"-advised object behaves as one would expect. However, calling the setter with a "@DeclareParents"-advised objec... | resolved fixed | e874581 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-16T16:50:34Z | 2005-12-30T05:20:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | for (int i = 0, len = paramTypes.length; i < len; i++) {
Type paramType = paramTypes[i];
body.append(InstructionFactory.createLoad(paramType, pos));
if (!bridgingSetter.getParameterTypes()[i].getErasureSignature().equals(itdfieldSetter.getParameterTypes()[i].getErasureSignature()) ) {
System.err.print... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* 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://ww... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testMemberTypesInGenericTypes_pr122458() { runTest("member types in generic types");}
public void testMemberTypesInGenericTypes_pr122458_2() { runTest("member types in generic types - 2");}
public void testNPEOnDeclareAnnotation_pr123695() { runTest("Internal nullptr exception with complex declare a... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testUnusedInterfaceMessage_pr120527() { runTest("incorrect unused interface message");}
public void testAtAspectInheritsAdviceWithTJPAndThis_pr125699 () { runTest("inherit advice with this() and thisJoinPoint"); }
public void testAtAspectInheritsAdviceWithTJPAndThis_pr125699_2 () {runTest("inherit advi... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertEquals("C.foo(int, Object)",pe.toLinkLabelString(false));
assertEquals("foo(int, Object)",pe.toSignatureString(false));
IProgramElement pe2 = top.findElementForType("pkg","printParameters");
assertNotNull("Couldn't find 'printParameters' element in the tree",pe2);
assertFalse("printParam... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement warningMethodIPE = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.METHOD,"warningMethod()");
assertNotNull("Couldn't find 'warningMethod()' element in the tree",warningMethodIPE);
IProg... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | IProgramElement errorMethodIPE = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.METHOD,"badMethod()");
assertNotNull("Couldn't find 'badMethod()' element in the tree",errorMethodIPE);
IProgramElement atDeclarErrorIPE = top.findElementForLabel(top.getRoot(),
IProgramElement.K... |
123,553 | Bug 123553 Can't use named pointcut in advice decl. in generic aspect | When defining a generic aspect with a paramterized PC, using that PC in an advice declaration causes an 'incompatible type' error. Example: public abstract aspect GenericAspect<Par1> { abstract pointcut checkpoint(Par1 par1); // advice declaration causes error after(Par1 par1): checkpoint(par1) {// do something} } Usin... | resolved fixed | 1f1ace1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-17T19:41:52Z | 2006-01-12T07:13:20Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | runTest("@AJ declare parents retains field state");
}
/*
* Load-time weaving bugs and enhancements
*/
public void testEmptyPointcutInAtAspectJ_pr125475 () {
runTest("define empty pointcut using an annotation");
}
public void testEmptyPointcutInAtAspectJ_pr125475_2() {
runTest("define empty poi... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* 2005 Contributors
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | private ITokenSource tokenSource;
private ISourceContext sourceContext; |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | private boolean allowHasTypePatterns = false;
private Set pointcutDesignatorHandlers = Collections.EMPTY_SET;
private ReflectionWorld world;
/**
* Constructor for PatternParser.
*/
public PatternParser(ITokenSource tokenSource) {
super();
this.tokenSource = tokenSource;
this.sourceContext = tokenSourc... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | } else if (name.equals("percflow")) {
return parsePerCflow(false);
} else if (name.equals("percflowbelow")) {
return parsePerCflow(true);
} else if (name.equals("pertypewithin")) {
return parsePerTypeWithin();
} else {
return null;
}
}
return null;
}
private PerClause parsePerCflow(bo... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | TypePattern withinTypePattern = parseTypePattern();
eat(")");
return new PerTypeWithin(withinTypePattern);
}
private PerClause parsePerSingleton() {
parseIdentifier();
eat("(");
eat(")");
return new PerSingleton();
}
public Declare parseDeclare() {
int startPos = tokenSource.peek().getStart();
ea... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | eat(":");
ret = parseSoft();
} else {
throw new ParserException("expected one of error, warning, parents, soft, dominates",
tokenSource.peek(-1));
}
int endPos = tokenSource.peek(-1).getEnd();
ret.setLocation(sourceContext, startPos, endPos);
return ret;
}
public Declare parseDeclareAnnotatio... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | eat(";");
int endPos = tokenSource.peek(-1).getEnd();
ret.setLocation(sourceContext, startPos, endPos);
return ret;
}
public DeclareAnnotation parseDeclareAtType() {
allowHasTypePatterns = true;
TypePattern p = parseTypePattern();
allowHasTypePatterns = false;
return new DeclareAnnotation(Declar... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | do {
l.add(parseTypePattern());
} while (maybeEat(","));
return new DeclarePrecedence(l);
}
private Declare parseParents() {
/*
* simplified design requires use of raw types for declare parents, no generic spec. allowed
* String[] typeParameters = maybeParseSimpleTypeVariableList();
*/
eat(":")... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | }
private Declare parseSoft() {
TypePattern p = parseTypePattern();
eat(":");
Pointcut pointcut = parsePointcut();
return new DeclareSoft(p, pointcut);
}
private Declare parseErrorOrWarning(boolean isError) {
Pointcut pointcut = parsePointcut();
eat(":");
String message = parsePossibleStringSequence(tr... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | return p;
}
private Pointcut parseAtomicPointcut() {
if (maybeEat("!")) {
int startPos = tokenSource.peek(-1).getStart();
Pointcut p = new NotPointcut(parseAtomicPointcut(), startPos);
return p;
}
if (maybeEat("(")) {
Pointcut p = parsePointcut();
eat(")");
return p;
}
if (maybeEat(... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | int start = tokenSource.getIndex();
IToken t = tokenSource.peek();
Pointcut p = t.maybeGetParsedPointcut();
if (p != null) {
tokenSource.next();
return p;
}
String kind = parseIdentifier();
if (kind.equals("execution") || kind.equals("call") ||
kind.equals("get") || kind.equals("set")) {
... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | new SignaturePattern(Member.ADVICE, ModifiersPattern.ANY,
TypePattern.ANY, TypePattern.ANY, NamePattern.ANY,
TypePatternList.ANY,
ThrowsPattern.ANY,
AnnotationTypePattern.ANY));
} else if (kind.equals("handler")) {
eat("(");
TypePattern typePat = parseTypePattern(false);
eat(")");
... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | eat("(");
if (maybeEatIdentifier("true")) {
eat(")");
p = new IfPointcut.IfTruePointcut();
} else if (maybeEatIdentifier("false")) {
eat(")");
p = new IfPointcut.IfFalsePointcut();
} else {
eat(")");
p = new IfPointcut("");
}
}
else {
boolean matchedByExtensionDesigna... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | return p;
}
private void assertNoTypeVariables(String[] tvs, String errorMessage,IToken token) {
if ( tvs != null ) throw new ParserException(errorMessage,token);
}
public Pointcut parseAnnotationPointcut() {
int start = tokenSource.getIndex();
IToken t = tokenSource.peek();
String kind = parseIdentifie... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | private Pointcut parseAtAnnotationPointcut() {
parseIdentifier();
eat("(");
if (maybeEat(")")) {
throw new ParserException("@AnnotationName or parameter", tokenSource.peek());
}
ExactAnnotationTypePattern type = parseAnnotationNameOrVarTypePattern();
eat(")");
return new AnnotationPointcut(type);
}
... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | eat(")");
return new CflowPointcut(entry, isBelow, null);
}
/**
* Method parseWithinPointcut.
* @return Pointcut
*/
private Pointcut parseWithinPointcut() {
eat("(");
TypePattern type = parseTypePattern();
eat(")");
return new WithinPointcut(type);
}
/**
* Method parseThisOrTargetPointcut.
*... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | ExactAnnotationTypePattern type = parseAnnotationNameOrVarTypePattern();
eat(")");
return new ThisOrTargetAnnotationPointcut(kind.equals("this"),type);
}
private Pointcut parseWithinAnnotationPointcut() {
String kind = parseIdentifier();
eat("(");
if (maybeEat(")")) {
throw new ParserException("expect... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | TypePatternList arguments = parseArgumentsPattern();
return new ArgsPointcut(arguments);
}
private Pointcut parseArgsAnnotationPointcut() {
parseIdentifier();
AnnotationPatternList arguments = parseArgumentsAnnotationPattern();
return new ArgsAnnotationPointcut(arguments);
}
private Pointcut parseReferenc... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | return new ReferencePointcut(onType, simpleName, arguments);
}
private Pointcut parseDesignatorPointcut(PointcutDesignatorHandler pcdHandler) {
eat("(");
int parenCount = 1;
StringBuffer pointcutBody = new StringBuffer();
while (parenCount > 0) {
if (maybeEat("(")) {
parenCount++;
pointcutBody.ap... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | }
private KindedPointcut parseKindedPointcut(String kind) {
eat("(");
SignaturePattern sig;
Shadow.Kind shadowKind = null;
if (kind.equals("execution")) {
sig = parseMethodOrConstructorSignaturePattern();
if (sig.getKind() == Member.METHOD) {
shadowKind = Shadow.MethodExecution;
} else if (sig.g... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | return new KindedPointcut(shadowKind, sig);
}
public TypePattern parseTypePattern() {
return parseTypePattern(false);
}
public TypePattern parseTypePattern(boolean insideTypeParameters) {
TypePattern p = parseAtomicTypePattern(insideTypeParameters);
if (maybeEat("&&")) {
p = new AndTypePattern(p, pars... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | TypePattern p = new NotTypePattern(parseAtomicTypePattern(insideTypeParameters));
p = setAnnotationPatternForTypePattern(p,ap);
return p;
}
if (maybeEat("(")) {
TypePattern p = parseTypePattern(insideTypeParameters);
p = setAnnotationPatternForTypePattern(p,ap);
eat(")");
boolean isVarArgs = ma... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | if (t.annotationPattern == AnnotationTypePattern.ANY) {
ret.setAnnotationTypePattern(ap);
} else {
ret.setAnnotationTypePattern(new AndAnnotationTypePattern(ap,t.annotationPattern));
}
}
return ret;
}
public AnnotationTypePattern maybeParseAnnotationPattern() {
AnnotationTypePattern ret = A... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | eat(")");
return ret;
} else {
TypePattern p = parseSingleTypePattern();
ret = new NotAnnotationTypePattern(new WildAnnotationTypePattern(p));
return ret;
}
} else {
tokenSource.setIndex(startIndex);
return ret;
}
}
if (maybeEat("@")) {
if (maybeEat("(")) {
TypePatt... |
128,699 | Bug 128699 Incorrect error on "declare" statements | The error associated with the declare construct is incorrect. The current message is: "expected one of error, warning, parents, soft, dominates" dominates should be changed to "precendence" and new annotation related declararions should be mentioned. Here is a suggestion: "expected one of error, warning, parents, soft,... | resolved fixed | f95d2c9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-20T19:32:59Z | 2006-02-20T18:26:40Z | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | return parseSingleTypePattern(false);
}
public TypePattern parseSingleTypePattern(boolean insideTypeParameters) {
if (insideTypeParameters && maybeEat("?")) return parseGenericsWildcardTypePattern();
if (allowHasTypePatterns) {
if (maybeEatIdentifier("hasmethod")) return parseHasMethodTypePattern();
if (m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.