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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | }
CompactStructureRepresentation existingStructure = (CompactStructureRepresentation) this.resolvedTypeStructuresFromLastBuild.get(thisTime.getClassName());
ReferenceType newResolvedType = (ReferenceType) world.resolve(thisTime.getClassName());
if (!newResolvedType.isMissing()) {
this.resolvedTypeStructuresFro... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | /**
* Compare the class structure of the new intermediate (unwoven) class with the
* existingResolvedType of the same class that we have in the world, looking for
* any structural differences (and ignoring aj members resulting from weaving....)
*
* Warning : long but boring method implementation...
* @par... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | }
char[][] existingIfs = existingType.interfaces;
char[][] newIfsAsChars = reader.getInterfaceNames();
if (newIfsAsChars == null) { newIfsAsChars = new char[0][]; }
char[][] newIfs = new char[newIfsAsChars.length][];
if (existingIfs.length != newIfs.length) {
return true;
}
new_interface_loop: fo... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | }
}
if (nonGenFields.size() != existingFields.length) {
return true;
}
new_field_loop: for (Iterator iter = nonGenFields.iterator(); iter.hasNext();) {
IBinaryField field = (IBinaryField) iter.next();
char[] fieldName = field.getName();
for (int j = 0; j < existingFields.length; j++) {
if (CharO... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | IBinaryMethod method = newMethods[i];
char[] methodName = method.getSelector();
if (!CharOperation.equals(methodName,NameMangler.METHOD_ASPECTOF) &&
!CharOperation.equals(methodName,NameMangler.METHOD_HASASPECT) &&
!CharOperation.equals(methodName,NameMangler.STATIC_INITIALIZER) &&
!CharOperation.pr... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | return true;
}
return false;
}
private boolean modifiersEqual(int eclipseModifiers, int resolvedTypeModifiers) {
resolvedTypeModifiers = resolvedTypeModifiers & CompilerModifiers.AccJustFlag;
eclipseModifiers = eclipseModifiers & CompilerModifiers.AccJustFlag;
if ((eclipseModifiers & CompilerModifiers.A... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | if (qualifiedNames.length < qualifiedStrings.size())
qualifiedNames = null;
char[][] simpleNames = ReferenceCollection.internSimpleNames(makeStringSet(simpleStrings));
if (simpleNames.length < simpleStrings.size())
simpleNames = null;
for (Iterator i = references.entrySet().iterator(); i.hasNext();... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | qualifiedStrings.add(packageName);
}
typeName = qualifiedTypeName.substring(lastDot+1);
} else {
qualifiedStrings.add("");
typeName = qualifiedTypeName;
}
int memberIndex = typeName.indexOf('$');
if (memberIndex > 0)
typeName = typeName.substring(0, memberIndex);
if (!simpleStrings.contains... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | return structureModel;
}
public void setWeaver(BcelWeaver bw) { weaver=bw;}
public BcelWeaver getWeaver() {return weaver;}
public void setWorld(BcelWorld bw) {world=bw;}
public BcelWorld getBcelWorld() {return world; }
public void setRelationshipMap(IRelationshipMap irm) { relmap = irm;}
public IRelationshipM... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | this.binarySourceFiles = new HashMap();
}
public void recordBinarySource(String fromPathName, List unwovenClassFiles) {
this.binarySourceFiles.put(fromPathName,unwovenClassFiles);
if (this.maybeIncremental()) {
List simpleClassFiles = new LinkedList();
for (Iterator iter = unwovenClassFiles.iterator(); it... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | public boolean hasResource(String resourceName) {
return this.resources.contains(resourceName);
}
public void recordResource(String resourceName) {
this.resources.add(resourceName);
}
/**
* @return Returns the addedFiles.
*/
public Set getAddedFiles() {
return this.addedFiles;
}
/**
* @return Retur... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | public String fullyQualifiedTypeName;
public File locationOnDisk;
public ClassFile(String fqn, File location) {
this.fullyQualifiedTypeName = fqn;
this.locationOnDisk = location;
}
public void deleteFromFileSystem() {
String namePrefix = locationOnDisk.getName();
namePrefix = namePrefix.subs... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | public CompactStructureRepresentation(ResolvedType forType) {
this.className = forType.getName().replace('.','/').toCharArray();
this.modifiers = forType.getModifiers();
this.genericSignature = forType.getGenericSignature().toCharArray();
if (this.genericSignature.length == 0) {
this.genericSignature = ... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | this.fields[i].signature = rFields[i].getReturnType().getSignature().toCharArray();
}
ResolvedMember[] rMethods = forType.getDeclaredMethods();
this.methods = new MemberStructure[rMethods.length];
for (int i = 0; i < rMethods.length; i++) {
this.methods[i] = new MemberStructure();
this.methods[i].na... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java | char[] name;
int modifiers;
char[] signature;
}
public void wipeAllKnowledge() {
buildManager.state = null;
buildManager.setStructureModel(null);
}
} |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | /* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
* htt... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.aspectj.ajdt.internal.core.builder.AjState;
import org.aspectj.ajdt.internal.core.builder.IncrementalStateManager;
import org.aspectj.asm.AsmManager;
import org.aspectj.asm.IProgramElement;
import org.aspectj.bridge.IMessage;
import org.... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | super.setUp();
AjdeInteractionTestbed.VERBOSE = VERBOSE;
AjState.FORCE_INCREMENTAL_DURING_TESTING = true;
}
protected void tearDown() throws Exception {
super.tearDown();
AjState.FORCE_INCREMENTAL_DURING_TESTING = false;
}
public void testTheBasics() {
initialiseProject("P1");
build("P1");
bu... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testSimpleChanges() {
initialiseProject("P1");
build("P1");
alter("P1","inc1");
build("P1");
checkCompileWeaveCount(1,-1);
build("P1");
checkCompileWeaveCount(0,-1);
}
public void testAddingAnAspect() {
initialiseProject("P1");
build("P1");
alter("P1","inc1");
alter(... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | assertTrue("Should not take longer for the trivial incremental build! first="+timeTakenForFullBuildAndWeave+
"ms second="+timeTakenForSimpleIncBuild+"ms",
timeTakenForSimpleIncBuild<timeTakenForFullBuildAndWeave);
}
public void testBuildingTwoProjectsInTurns() {
configureBuildStructureModel(true... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("P2");
build("P1");
build("P2");
build("P1");
checkWasntFullBuild();
build("P2");
checkWasntFullBuild();
alter("P1","inc1");
alter("P1","inc2");
build("P1");
checkWasFullBuild();
}
/**
* Setup up two simple projects and build them in turn - check the
* structur... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("P1");
checkForNode("pkg","C",true);
build("P2");
checkForNode("pkg","C",false);
}
public void testBuildingTwoProjectsAndVerifyingStuff() {
configureBuildStructureModel(true);
initialiseProject("P1");
initialiseProject("P2");
build("P1");
checkForNode("pkg","C",true);
build("P2");
... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testStateManagement1() {
File binDirectoryForP1 = new File(getFile("P1","bin"));
initialiseProject("P1");
build("P1");
AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirectoryForP1);
assertTrue("There should be a state object for project P1",ajs!=null);
assertTru... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | * check struc changes is still 0.
*/
public void testStateManagement2() {
File binDirectoryForP1 = new File(getFile("P1","bin"));
initialiseProject("P1");
alter("P1","inc3");
build("P1");
AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirectoryForP1);... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | * one may affect whether the other does an incremental or full build. The
* structural information recorded in the state object should be getting used
* to control whether a full build is necessary...
*/
public void testBuildingDependantProjects() {
initialiseProject("P1");
initialiseProject("P2");
config... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR85132");
}
public void testPr125405() {
initialiseProject("PR125405");
build("PR125405");
checkCompileWeaveCount(1,1);
alter("PR125405","inc1");
build("PR125405");
checkForError("only abstract aspects can have type parameters");
alter("PR125405","inc2");
build("PR125405");
checkCompile... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR128618_2");
checkWasntFullBuild();
IMessage msg2 = (IMessage)(MyTaskListManager.getWarningMessages().get(0));
assertEquals("warning should be against the FFDC.aj resource","FFDC.aj",msg2.getSourceLocation().getSourceFile().getName());
assertFalse("a new warning message should have been generated", msg.... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("pr117209");
configureNonStandardCompileOptions("-proceedOnError");
build("pr117209");
checkCompileWeaveCount(6,6);
} finally {
MyBuildOptionsAdapter.reset();
}
}
public void testPr114875() {
initialiseProject("pr114875");
build("pr114875");
alter("pr114875","inc1");
build(... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("PR117882_2");
build("PR117882_2");
checkWasFullBuild();
alter("PR117882_2","inc1");
build("PR117882_2");
checkWasFullBuild();
}
public void testPr115251() {
initialiseProject("PR115251");
build("PR115251");
checkWasFullBuild();
alter("PR115251","inc1");
build("PR... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | checkWasntFullBuild();
}
/* public void testPr111779() {
super.VERBOSE=true;
initialiseProject("PR111779");
build("PR111779");
alter("PR111779","inc1");
build("PR111779");
}
*/
public void testPr93310_1() {
initialiseProject("PR93310_1");
build("PR93310_1");
checkWasFullBuild();
String fileC2 = g... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR93310_2" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "C2.java";
(new File(fileC2)).delete();
alter("PR93310_2","inc1");
build("PR93310_2");
checkWasFullBuild();
int l = AjdeInteractionTestbed.MyS... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | "foo cannot be resolved",
((IMessage)MyTaskListManager.getErrorMessages().get(0))
.getMessage());
}
public void testPr119882() {
initialiseProject("PR119882");
build("PR119882");
assertFalse("build should have compiled ok",MyTaskListManager.hasErrorMessages());
alter("PR119882","inc1")... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
public void testPr112736() {
initialiseProject("PR112736");
build("PR112736");
checkWasFullBuild();
String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR112736" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "A.java";
(new File(fileC2)).delete()... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR123612");
checkWasFullBuild();
}
public void testPr128655() {
configureNonStandardCompileOptions("-showWeaveInfo");
initialiseProject("pr128655");
build("pr128655");
List firstBuildMessages = MyTaskListManager.getWeavingMessages();
assertTrue("Should be at least one message about the dec @type... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("pr128655_2");
List firstBuildMessages = MyTaskListManager.getWeavingMessages();
assertTrue("Should be at least one message about the dec @type, but there were none",firstBuildMessages.size()>0);
alter("pr128655_2","inc1");
build("pr128655_2");
checkWasntFullBuild();
List secondBuildMessages = MyTask... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | ((IMessage)MyTaskListManager.getWarningMessages().get(0))
.getMessage());
configureBuildStructureModel(false);
}
public void testPr129163_2() {
configureBuildStructureModel(true);
initialiseProject("pr129163_2");
build("pr129163_2");
checkWasFullBuild();
alter("pr129163_2","inc1... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr129163_3() {
configureBuildStructureModel(true);
initialiseProject("PR129163_4");
build("PR129163_4");
checkWasFullBuild();
initialiseProject("PR129163_3");
configureNewProjectDependency("PR129163_3","PR129163_4");
build("PR129163_3");
checkWasFullBuild();
alter("PR129163_4","inc1"... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | /**
* Check we compiled/wove the right number of files, passing '-1' indicates you don't care about
* that number.
*/
private void checkCompileWeaveCount(int expCompile,int expWoven) {
if (expCompile!=-1 && getCompiledFiles().size()!=expCompile)
fail("Expected compilation of "+expCompile+" files but compile... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
}
private void printModel() {
try {
AsmManager.dumptree(AsmManager.getDefault().getHierarchy().getRoot(),0);
} catch (IOException e) {
e.printStackTrace();
}
}
public void build(String projectName) {
constructUpToDateLstFile(projectName,"build.lst");
build(projectName,"build.lst");
if (AjdeInt... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | String file = (String) iter.next();
dos.writeBytes(file+"\n");
}
dos.close();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
public void checkForError(String anError) {
List messages = MyTaskListManager.getErrorMessages();
for (Iterator iter = messages.iterator(); iter.hasNext();) {
... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | if (!fileFound.startsWith(toRemove)) throw new RuntimeException("eh? "+fileFound+" "+toRemove);
collectionPoint.add(fileFound.substring(toRemove.length()+1));
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
/**
* Fill in the working directory with the project base files,
* from... |
131,505 | Bug 131505 Generated aop.xml files contain aspects for all the projects ever built | Using the -outxml option in AJDT the generated aop.xml files are not correct after the first build and contain all the aspects that have ever been built (including those in different projects and duplicates if an aspect has been built twice). It seems that there is a global list of aspects (aspectNames in AjBuildManage... | resolved fixed | b3cd01d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-15T12:34:48Z | 2006-03-13T11:40:00Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | /**
* Copy the contents of some directory to another location - the
* copy is recursive.
*/
private void copy(File from, File to) {
String contents[] = from.list();
if (contents==null) return;
for (int i = 0; i < contents.length; i++) {
String string = contents[i];
File f = new File(from,string);
... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40: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... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testGenericAdviceParameters_pr123553() { runTest("generic advice parameters");}
public void testMemberTypesInGenericTypes_pr122458() { runTest("member types in generic types");}
public void testMemberTypesInGenericTypes_pr122458_2() { runTest("member types in generic types - 2");}
public void t... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | 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... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | runTest("new IProgramElement methods");
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement pe = top.findElementForType("pkg","foo");
assertNotNull("Couldn't find 'foo' element in the tree",pe);
assertEquals("foo(int, java.lang.Object)",pe.toLabelString());
assertEq... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | runTest("@AJ VerifyError with @AfterReturning and thisJoinPoint argument");
}
public void testSwallowedExceptionIgnored() {
runTest("swallowed exceptions with xlint");
}
/*
* @AspectJ bugs and enhancements
*/
public void testAtAspectInheritsAbstractPointcut_pr125810 () {
runTest("warning w... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertNotNull("warningMethod should have some relationships but does not",matches);
assertTrue("warningMethod should have one relationships but has " + matches.size(),matches.size()==1);
List matchesTargets = ((Relationship)matches.get(0)).getTargets();
assertTrue("warningMethod should have one targets b... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertTrue("@DeclareError should have one relationship but has " + matchedByE.size(), matchedByE.size() == 1);
List matchedByTargetsE = ((Relationship)matchedByE.get(0)).getTargets();
assertTrue("@DeclareError 'matched by' relationship should have one target " +
"but has " + matchedByTargetsE.size(), m... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | }
public void testEmptyPointcutInAtAspectJ_pr125475_2() {
runTest("define empty pointcut using an annotation - 2");
}
public void testEmptyPointcutInAtAspectJWithLTW_pr125475 () {
runTest("define empty pointcut using aop.xml");
}
public void testLTWGeneratedAspectWithAbstractMethod_pr125480 () {... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | /* *******************************************************************
* 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 distrib... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | * Contributors:
* PARC initial implementation
* ******************************************************************/
package org.aspectj.weaver.patterns;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Modifier;
import java.util.Iterator;
import java.util.Map;
import org... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | public static class MatchKind {
private String name;
public MatchKind(String name) { this.name = name; }
public String toString() { return name; }
}
public static final MatchKind STATIC = new MatchKind("STATIC");
public static final MatchKind DYNAMIC = new MatchKind("DYNAMIC");
public static final TypePat... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | }
public boolean isVarArgs() {
return isVarArgs;
}
public boolean isStarAnnotation() {
return annotationPattern == AnnotationTypePattern.ANY;
}
public boolean isArray() {
return false;
}
protected TypePattern(boolean includeSubtypes) {
this(includeSubtypes,false);
}
public void setAnn... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | }
protected boolean couldEverMatchSameTypesAs(TypePattern other) {
if (this.includeSubtypes || other.includeSubtypes) return true;
if (this.annotationPattern != AnnotationTypePattern.ANY) return true;
if (other.annotationPattern != AnnotationTypePattern.ANY) return true;
return false;
}
public boolea... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | return matchesInstanceof(type);
} else {
throw new IllegalArgumentException("kind must be DYNAMIC or STATIC");
}
}
protected abstract boolean matchesExactly(ResolvedType type);
protected abstract boolean matchesExactly(ResolvedType type, ResolvedType annotatedType);
protected boolean matchesSubtypes(Res... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | return false;
}
protected boolean matchesSubtypes(ResolvedType superType, ResolvedType annotatedType) {
if (matchesExactly(superType,annotatedType)) {
return true;
}
for (Iterator i = superType.getDirectSupertypes(); i.hasNext(); ) {
ResolvedType superSuperType = (ResolvedType)i.next();
... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | protected TypePattern notExactType(IScope s) {
s.getMessageHandler().handleMessage(MessageUtil.error(
WeaverMessages.format(WeaverMessages.EXACT_TYPE_PATTERN_REQD), getSourceLocation()));
return NO;
}
}
/**
* This can modify in place, or return a new TypePattern if the type changes.
*/
public Ty... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | public boolean isStar() {
return false;
}
/**
* This is called during concretization of pointcuts, it is used by BindingTypePattern
* to return a new BindingTypePattern with a formal index appropiate for the advice,
* rather than for the lexical declaration, i.e. this handles transforamt... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | public static final byte ELLIPSIS_KEY = 4;
public static final byte ANY_KEY = 5;
public static final byte NOT = 6;
public static final byte OR = 7;
public static final byte AND = 8;
public static final byte NO_KEY = 9;
public static final byte ANY_WITH_ANNO = 10;
public static final byte HAS_MEMBER = 11;
publ... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | /**
* Constructor for EllipsisTypePattern.
* @param includeSubtypes
*/
public EllipsisTypePattern() {
super(false,false,new TypePatternList());
}
/* (non-Javadoc)
* @see org.aspectj.weaver.patterns.TypePattern#couldEverMatchSameTypesAs(org.aspectj.weaver.patterns.TypePattern)
*/
protected boolean couldE... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | * @see org.aspectj.weaver.patterns.TypePattern#matchesExactly(IType)
*/
protected boolean matchesExactly(ResolvedType type) {
return false;
}
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType) {
return false;
}
/**
* @see org.aspectj.weaver.patterns.TypePattern#matchesInstanc... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | /* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return 17 * 37;
}
public Object accept(PatternNodeVisitor visitor, Object data) {
return visitor.visit(this, data);
}
public TypePattern parameterizeWith(Map typeVariableMap) {
return this;
}
}
class... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | /**
* @see org.aspectj.weaver.patterns.TypePattern#matchesExactly(IType)
*/
protected boolean matchesExactly(ResolvedType type) {
return true;
}
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType) {
return true;
}
/**
* @see org.aspectj.weaver.patterns.TypePattern#matchesIns... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | return true;
}
public boolean isStar() {
return true;
}
public String toString() { return "*"; }
public boolean equals(Object obj) {
return (obj instanceof AnyTypePattern);
}
public int hashCode() {
return 37;
}
public Object accept(PatternNodeVisitor visitor, Object data) {
return v... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | public AnyWithAnnotationTypePattern(AnnotationTypePattern atp) {
super(false,false);
annotationPattern = atp;
}
public Object accept(PatternNodeVisitor visitor, Object data) {
return visitor.visit(this,data);
}
protected boolean couldEverMatchSameTypesAs(TypePattern other) {
return true;
}
protected boo... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | }
public FuzzyBoolean matchesInstanceof(ResolvedType type) {
if (Modifier.isFinal(type.getModifiers())) {
return FuzzyBoolean.fromBoolean(matchesExactly(type));
}
return FuzzyBoolean.MAYBE;
}
public TypePattern parameterizeWith(Map typeVariableMap) {
AnyWithAnnotationTypePattern ret = new AnyWithAnnotatio... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | public boolean isStar() {
return false;
}
public String toString() { return annotationPattern+" *"; }
public boolean equals(Object obj) {
if (!(obj instanceof AnyWithAnnotationTypePattern)) return false;
AnyWithAnnotationTypePattern awatp = (AnyWithAnnotationTypePattern) obj;
return (annotationPattern.e... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | */
protected boolean matchesExactly(ResolvedType type) {
return false;
}
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType) {
return false;
}
/**
* @see org.aspectj.weaver.patterns.TypePattern#matchesInstanceof(IType)
*/
public FuzzyBoolean matchesInstanceof(ResolvedType typ... |
131,933 | Bug 131933 grotty ClassCastException on referring to pointcut in generic type | import java.util.List; public aspect Slide71 { before(): GenericType<String>.foo() {} before(): GenericType<MyList>.foo() {} //before(): GenericType.foo() {} } class GenericType<T> { public pointcut foo(): execution(* T.*(..)); } that programs gives: (because MyList is not a known type) java.lang.ClassCastException at ... | resolved fixed | f2cd94f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T11:01:54Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/patterns/TypePattern.java | public boolean isStar() {
return false;
}
public String toString() { return "<nothing>"; }
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals(Object obj) {
return (obj instanceof NoTypePattern);
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
pub... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40: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... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testGenericAdviceParameters_pr123553() { runTest("generic advice parameters");}
public void testMemberTypesInGenericTypes_pr122458() { runTest("member types in generic types");}
public void testMemberTypesInGenericTypes_pr122458_2() { runTest("member types in generic types - 2");}
public void t... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testArrayindexoutofbounds_pr129566() {
runTest("arrayindexoutofbounds");
GenericsTests.verifyClassSignature(ajc,"common.SkipList","<T::Ljava/lang/Comparable;>Ljava/lang/Object;Ljava/util/Set<TT;>;Ljava/lang/Iterable<TT;>;");
GenericsTests.verifyClassSignature(ajc,"common.SkipList$SkipListE... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertEquals("foo(int, java.lang.Object)",pe.toLabelString());
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.... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | }
public void testGenericAspectWithUnknownType_pr131933() {
runTest("no ClassCastException with generic aspect and unknown type");
}
/*
* @AspectJ bugs and enhancements
*/
public void testAtAspectInheritsAbstractPointcut_pr125810 () {
runTest("warning when inherited pointcut not made conc... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertNotNull("warningMethod should have some relationships but does not",matches);
assertTrue("warningMethod should have one relationships but has " + matches.size(),matches.size()==1);
List matchesTargets = ((Relationship)matches.get(0)).getTargets();
assertTrue("warningMethod should have one targets b... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertTrue("@DeclareError should have one relationship but has " + matchedByE.size(), matchedByE.size() == 1);
List matchedByTargetsE = ((Relationship)matchedByE.get(0)).getTargets();
assertTrue("@DeclareError 'matched by' relationship should have one target " +
"but has " + matchedByTargetsE.size(), m... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | }
public void testEmptyPointcutInAtAspectJ_pr125475_2() {
runTest("define empty pointcut using an annotation - 2");
}
public void testEmptyPointcutInAtAspectJWithLTW_pr125475 () {
runTest("define empty pointcut using aop.xml");
}
public void testLTWGeneratedAspectWithAbstractMethod_pr125480 () {... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewConstructorTypeMunger.java | /* *******************************************************************
* 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 distrib... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewConstructorTypeMunger.java | private ResolvedMember syntheticConstructor;
private ResolvedMember explicitConstructor;
public NewConstructorTypeMunger(
ResolvedMember signature,
ResolvedMember syntheticConstructor,
ResolvedMember explicitConstructor,
Set superMethodsCalled,
List typeVariableAliases) {
super(Constructor, signature);
... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewConstructorTypeMunger.java | if (!(other instanceof NewConstructorTypeMunger)) return false;
NewConstructorTypeMunger o = (NewConstructorTypeMunger)other;
return ((o.syntheticConstructor == null) ? (syntheticConstructor == null )
: syntheticConstructor.equals(o.syntheticConstructor))
& ((o.explicitConstructor == null) ? ... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewConstructorTypeMunger.java | ISourceLocation sloc = null;
ResolvedMember sig = ResolvedMemberImpl.readResolvedMember(s, context);
ResolvedMember syntheticCtor = ResolvedMemberImpl.readResolvedMember(s, context);
ResolvedMember explicitCtor = ResolvedMemberImpl.readResolvedMember(s, context);
Set superMethodsCalled = readSu... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewConstructorTypeMunger.java | if (getSignature().getDeclaringType().resolve(world).isAspect()) {
world.showMessage(IMessage.ERROR,
WeaverMessages.format(WeaverMessages.ITD_CONS_ON_ASPECT),
getSignature().getSourceLocation(), null);
}
}
/**
* see ResolvedTypeMunger.parameterizedFor(ResolvedType)
*/
public ResolvedTypeMun... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewFieldTypeMunger.java | /* *******************************************************************
* 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 distrib... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewFieldTypeMunger.java | public NewFieldTypeMunger(ResolvedMember signature, Set superMethodsCalled, List typeVariableAliases) {
super(Field, signature);
this.typeVariableAliases = typeVariableAliases;
signature.setAnnotatedElsewhere(true);
this.setSuperMethodsCalled(superMethodsCalled);
}
public ResolvedMember getInitMethod(Unresolv... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewFieldTypeMunger.java | public ResolvedMember getMatchingSyntheticMember(Member member, ResolvedType aspectType) {
ResolvedType onType = aspectType.getWorld().resolve(getSignature().getDeclaringType());
if (onType.isRawType()) onType = onType.getGenericType();
ResolvedMember ret = AjcMemberMaker.interFieldGetDispatcher(getSignatu... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewFieldTypeMunger.java | }
parameterizedSignature = getSignature().parameterizedWith(varRefs,genericType,true,typeVariableAliases);
} else {
parameterizedSignature = getSignature().parameterizedWith(target.getTypeParameters(),genericType,target.isParameterizedType(),typeVariableAliases);
}
NewFieldTypeMunger nftm = new NewFie... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewMethodTypeMunger.java | /* *******************************************************************
* 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 distrib... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewMethodTypeMunger.java | public NewMethodTypeMunger(
ResolvedMember signature,
Set superMethodsCalled,
List typeVariableAliases) {
super(Method, signature);
this.typeVariableAliases = typeVariableAliases;
this.setSuperMethodsCalled(superMethodsCalled);
}
public ResolvedMember getInterMethodBody(UnresolvedType aspectType) {
re... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewMethodTypeMunger.java | if (declaredSignature!=null) {
ResolvedMember rm = declaredSignature.parameterizedWith(null,signature.getDeclaringType().resolve(w),false,getTypeVariableAliases());
return AjcMemberMaker.interMethodBody(rm, aspectType);
} else {
return AjcMemberMaker.interMethodBody(signature,aspectType);
}
}
public Re... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewMethodTypeMunger.java | ResolvedMemberImpl rmImpl = ResolvedMemberImpl.readResolvedMember(s, context);
Set superMethodsCalled = readSuperMethodsCalled(s);
sloc = readSourceLocation(s);
List typeVarAliases = readInTypeAliases(s);
ResolvedTypeMunger munger = new NewMethodTypeMunger(rmImpl,superMethodsCalled,typeVarAliases);
if (slo... |
131,932 | Bug 131932 structure model bug: generic method ITD | import java.util.List; public aspect Slide74 { public X Bar<X>.getFirst() { return lts.get(0); } static class Bar<T> { List<T> lts; } } in AJDT, this program incorrectly shows the relationship from the TYPE to the Bar class rather than from the ITD to the Bar class. | resolved fixed | e2703cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-16T15:34:26Z | 2006-03-15T13:40:00Z | weaver/src/org/aspectj/weaver/NewMethodTypeMunger.java | parameterizedSignature = getSignature().parameterizedWith(varRefs,genericType,true,typeVariableAliases);
} else {
parameterizedSignature = getSignature().parameterizedWith(target.getTypeParameters(),genericType,target.isParameterizedType(),typeVariableAliases);
}
NewMethodTypeMunger nmtm = new NewMethodT... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | /* *******************************************************************
* 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 distrib... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | assertEquals("aspect should not have public in it's signature","aspect AdviceNamingCoverage",packageAspect.getSourceSignature());
}
public void testStaticModifiers() {
IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, "ModifiersCoverage");
assertNotNull(aspect);
IProgram... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | assertNotNull(decErrNode);
assertEquals(decErrNode.toLabelString(), label);
String decWarnMessage = "declare warning: \"Illegal call.\"";
IProgramElement decWarnNode = model.findElementForSignature(aspect, IProgramElement.Kind.DECLARE_WARNING, "declare warning");
assertNotNull(decWarnNode);
assertEquals(de... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | assertNotNull(node);
IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, "InterTypeDecCoverage");
assertNotNull(aspect);
String fieldMsg = "Point.xxx";
IProgramElement fieldNode = model.findElementForLabel(aspect, IProgramElement.Kind.INTER_TYPE_FIELD, fieldMsg);
asse... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | assertNotNull(paramsNode);
assertEquals(paramsNode.toLabelString(), params);
}
public void testAbstract() {
IProgramElement node = (IProgramElement)model.getRoot();
assertNotNull(node);
IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, "AbstractAspect");
assertNot... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java | IProgramElement namedWithOneArgNode = model.findElementForLabel(aspect, IProgramElement.Kind.ADVICE, namedWithOneArg);
assertNotNull(namedWithOneArgNode);
assertEquals(namedWithOneArgNode.toLabelString(), namedWithOneArg);
String afterReturning = "afterReturning(int, int): namedWithArgs..";
IProgramElement ... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmRelationshipsTest.java | /* *******************************************************************
* 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 distrib... |
132,130 | Bug 132130 Missing relationship for declare @method when annotating a co-located method | For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccoun... | resolved fixed | 9dca72e | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-03-17T16:47:06Z | 2006-03-16T11:53:20Z | ajde/testsrc/org/aspectj/ajde/AsmRelationshipsTest.java | public AsmRelationshipsTest(String name) {
super(name);
}
public void testUsesPointcut() {
IProgramElement ptUsage = AsmManager.getDefault().getHierarchy().findElementForType(null, "PointcutUsage");
assertNotNull(ptUsage);
IProgramElement pts = AsmManager.getDefault().getHierarchy().findElementForTyp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.