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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | import org.aspectj.asm.IRelationship;
import org.aspectj.asm.IRelationshipMap;
import org.aspectj.asm.internal.Relationship;
import org.aspectj.bridge.IMessage;
import org.aspectj.testing.util.FileUtil;
import org.aspectj.weaver.World;
/**
* The superclass knows all about talking through Ajde to the compiler.
* The s... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
protected void tearDown() throws Exception {
super.tearDown();
AjState.FORCE_INCREMENTAL_DURING_TESTING = false;
}
/*
A.aj
package pack;
public aspect A {
pointcut p() : call(* C.method
before() : p() { // line 7
}
}
C.java
package pack;
public class C {
public vo... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("P4");
build("P4");
dumpAJDEStructureModel("after full build where advice is applying");
alter("P4","inc1");
build("P4");
checkWasntFullBuild();
dumpAJDEStructureModel("after inc build where first advised line is gone");
IProgramElement codeElement = findCode... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | advice.toString() + " but found " +
ipe.toString(),advice,ipe);
} else if (ipe.getKind().equals(IProgramElement.Kind.CODE)) {
assertEquals("expected source of relationship to be " +
codeElement.toString() + " but found " +
ipe.toString(),codeElement,ipe);
} else {
fail("found unex... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
}
}
}
} finally {
AsmHierarchyBuilder.shouldAddUsesPointcut=true;
configureBuildStructureModel(false);
}
}
public void testTheBasics() {
initialiseProject("P1");
build("P1");
build("P1");
checkWasntFullBuild();
checkCompileWeaveCount(0,0);
}
public void testInvalid... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | 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(... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | 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... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("P1");
initialiseProject("P2");
build("P1");
build("P2");
build("P1");
checkWasntFullBuild();
build("P2");
checkWasntFullBuild();
alter("P1","inc1");
alter("P1","inc2");
build("P1");
checkWasFullBuild();
}
public void testPr134371() {
initialiseProject("PR134371");
... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | configureBuildStructureModel(true);
initialiseProject("P1");
initialiseProject("P2");
build("P1");
checkForNode("pkg","C",true);
build("P2");
checkForNode("pkg","C",false);
build("P1");
checkForNode("pkg","C",true);
build("P2");
checkForNode("pkg","C",false);
}
public void testBuildingT... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
/**
* Complex. Here we are testing that a state object records structural changes since
* the last full build correctly. We build a simple project from scratch - this will
* be a full build and so the structural changes since last build count should be 0.
* We then alter a class, adding a new method and ... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
/**
* Complex. Here we are testing that a state object records structural changes since
* the last full build correctly. We build a simple project from scratch - this will
* be a full build and so the structural changes since last build count should be 0.
* We then alter a class, changing body of a met... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | assertTrue("Shouldn't be any structural changes but there were "+
ajs.getNumberOfStructuralChangesSinceLastFullBuild(),
ajs.getNumberOfStructuralChangesSinceLastFullBuild()==0);
}
/**
* The C.java file modified in this test has an inner class - this means the inner class
* has a this$0 field and <init>(... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | ajs.getNumberOfStructuralChangesSinceLastFullBuild()==0);
}
/**
* The C.java file modified in this test has an inner class - which has two ctors - this checks
* how they are mangled with an instance of C.
*
*/
public void testStateManagement4() {
File binDirForInterproject2 = new File(getFile("interpro... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | /**
* The C.java file modified in this test has an inner class - it has two ctors but
* also a reference to C.this in it - which will give rise to an accessor being
* created in C
*
*/
public void testStateManagement5() {
File binDirForInterproject3 = new File(getFile("interprojectdeps3","bin"));
in... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | /**
* Now the most complex test. Create a dependancy between two projects. Building
* 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 testBu... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR85132");
alter("PR85132","inc1");
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("PR12540... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | assertEquals("warning should be against the FFDC.aj resource","FFDC.aj",msg.getSourceLocation().getSourceFile().getName());
alter("PR128618_2","inc1");
build("PR128618_2");
checkWasntFullBuild();
IMessage msg2 = (IMessage)(MyTaskListManager.getWarningMessages().get(0));
assertEquals("warning should be against... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr117209() {
try {
initialiseProject("pr117209");
configureNonStandardCompileOptions("-proceedOnError");
build("pr117209");
checkCompileWeaveCount(6,6);
} finally {
MyBuildOptionsAdapter.reset();
}
}
public void testPr114875() {
initialiseProject("pr114875");
build("pr114875... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr117882_2() {
initialiseProject("PR117882_2");
build("PR117882_2");
checkWasFullBuild();
alter("PR117882_2","inc1");
build("PR117882_2");
checkWasFullBuild();
}
public void testPr115251() {
initialiseProject("PR115251");
build("PR115251");
checkWasFullBuild();
alte... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | alter("pr121384","inc1");
build("pr121384");
checkWasntFullBuild();
}
/* public void testPr111779() {
super.VERBOSE=true;
initialiseProject("PR111779");
build("PR111779");
alter("PR111779","inc1");
build("PR111779");
}
*/
public void testPr93310_1() {
initialiseProject("PR93310_1");
build("PR9331... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR93310_2");
checkWasFullBuild();
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");
checkWasFullB... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | MyErrorHandler.getErrorMessages().isEmpty());
assertEquals("error message should be 'foo cannot be resolved' ",
"foo cannot be resolved",
((IMessage)MyTaskListManager.getErrorMessages().get(0))
.getMessage());
}
public void testPr119882() {
initialiseProject("PR119882");
build("PR1... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | assertEquals("error message should be 'i cannot be resolved' ",
"i cannot be resolved",
((IMessage)errors.get(0))
.getMessage());
}
public void testPr112736() {
initialiseProject("PR112736");
build("PR112736");
checkWasFullBuild();
String fileC2 = getWorkingDir().getAbsolutePath() + File.separa... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("PR123612");
build("PR123612");
alter("PR123612","inc1");
build("PR123612");
checkWasFullBuild();
}
public void testPr128655() {
configureNonStandardCompileOptions("-showWeaveInfo");
initialiseProject("pr128655");
build("pr128655");
List firstBuildMessages = MyTaskListManager.getW... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr128655_2() {
configureNonStandardCompileOptions("-showWeaveInfo");
initialiseProject("pr128655_2");
build("pr128655_2");
List firstBuildMessages = MyTaskListManager.getWeavingMessages();
assertTrue("Should be at least one message about the dec @type, but there were none",firstBuildMessages.s... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | MyErrorHandler.getErrorMessages().isEmpty());
assertEquals("warning message should be 'no match for this type name: File [Xlint:invalidAbsoluteTypeName]' ",
"no match for this type name: File [Xlint:invalidAbsoluteTypeName]",
((IMessage)MyTaskListManager.getWarningMessages().get(0))
.getMessage());
con... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | 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"... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr131505() {
configureNonStandardCompileOptions("-outxml");
initialiseProject("PR131505");
build("PR131505");
checkWasFullBuild();
checkXMLAspectCount("PR131505","",0);
alter("PR131505","inc1");
build("PR131505");
checkWasFullBuild();
checkXMLAspectCount("PR131505","",1);
check... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | + File.separatorChar + "PR131505" + File.separatorChar + "A1.aj");
a1.delete();
build("PR131505");
checkWasFullBuild();
checkXMLAspectCount("PR131505","",1);
checkXMLAspectCount("PR131505","A1",0);
checkXMLAspectCount("PR131505","A",1);
alter("PR131505","inc4");
build("PR131505");
checkWasFullB... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | alter("PR133532","inc2");
build("PR133532");
assertTrue("There should be no errors reported:\n"+MyTaskListManager.getErrorMessages(),
MyTaskListManager.getErrorMessages().isEmpty());
}
public void testPr133532_2() {
initialiseProject("pr133532_2");
build("pr133532_2");
alter("pr133532_2","inc2");
b... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | assertEquals("[Xlint:adviceDidNotMatch] should now be associated with line 7",7,
((IMessage)MyTaskListManager.getWarningMessages().get(0)).getSourceLocation().getLine());
}
public void testPr134471_IncrementalCompilationAndModelUpdates() {
try {
AsmHierarchyBuilder.shouldAddUsesPointcut=false;
config... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | nodeForTypeA = checkForNode("pkg","A",true);
nodeForAdvice = findAdvice(nodeForTypeA);
relatedElements = getRelatedElements(nodeForAdvice,1);
programElement = getFirstRelatedElement(findCode(checkForNode("pkg","C",true)));
line = programElement.getSourceLocation().getLine();
assertTrue("advice should be at... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | programElement = getFirstRelatedElement(findCode(checkForNode("pkg","C",true)));
line = programElement.getSourceLocation().getLine();
assertTrue("advice should be at line 11 - but is at line "+line,line==11);
}
public void testAddingAndRemovingDecwWithStructureModel() {
configureBuildStructureModel(true);
i... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | initialiseProject("PR134471");
build("PR134471");
IProgramElement programElement = getFirstRelatedElement(findCode(checkForNode("pkg","C",true)));
int line = programElement.getSourceLocation().getLine();
assertTrue("advice should be at line 7 - but is at line "+line,line==7);
alter("PR134471","inc1")... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr134471_IncrementallyRecompilingAspectContainingDeclare() {
configureBuildStructureModel(true);
configureNonStandardCompileOptions("-showWeaveInfo -emacssym");
initialiseProject("PR134471_3");
build("PR134471_3");
checkWasFullBuild();
IProgramElement programElement = getFirstRel... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | checkWasntFullBuild();
programElement = getFirstRelatedElement(findCode(checkForNode("pkg","C",true),7));
line = programElement.getSourceLocation().getLine();
assertTrue("declare warning should be at line 12 - but is at line "+line,line==12);
}
public void testPr134471_IncrementallyRecompilingTheClassAff... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | programElement = getFirstRelatedElement(findCode(checkForNode("pkg","C",true),7));
line = programElement.getSourceLocation().getLine();
assertTrue("declare warning should be at line 12 - but is at line "+line,line==12);
alter("PR134471_3","inc2");
build("PR134471_3");
checkWasntFullBuild();
programEle... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | private List getRelatedElements(IProgramElement programElement,int expected) {
List relatedElements = getRelatedElements(programElement);
StringBuffer debugString = new StringBuffer();
if (relatedElements!=null) {
for (Iterator iter = relatedElements.iterator(); iter.hasNext();) {
String element = (String... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | }
return output;
}
private IProgramElement findAdvice(IProgramElement ipe) {
return findAdvice(ipe,1);
}
private IProgramElement findAdvice(IProgramElement ipe,int whichOne) {
if (ipe.getKind()==IProgramElement.Kind.ADVICE) {
whichOne=whichOne-1;
if (whichOne==0) return ipe;
}
List kids = ipe.ge... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | * Searches a hierarchy of program elements for a 'code' element at the specified line number, a line number
* of -1 means just return the first one you find
*/
private IProgramElement findCode(IProgramElement ipe,int linenumber) {
if (ipe.getKind()==IProgramElement.Kind.CODE) {
if (linenumber==-1 || ipe.getSo... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | fail("Expected weaving of "+expWoven+" files but wove "+getWovenClasses().size()+
"\n"+printCompiledAndWovenFiles());
}
private void checkWasntFullBuild() {
assertTrue("Shouldn't have been a full (batch) build",!wasFullBuild());
}
private void checkWasFullBuild() {
assertTrue("Should have been a full (... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void build(String projectName) {
constructUpToDateLstFile(projectName,"build.lst");
build(projectName,"build.lst");
if (AjdeInteractionTestbed.VERBOSE) printBuildReport();
}
public void fullBuild(String projectName) {
constructUpToDateLstFile(projectName,"build.lst");
fullBuild(projectName,"build.l... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void checkForError(String anError) {
List messages = MyTaskListManager.getErrorMessages();
for (Iterator iter = messages.iterator(); iter.hasNext();) {
IMessage element = (IMessage) iter.next();
if (element.getMessage().indexOf(anError)!=-1) return;
}
fail("Didn't find the error message:\n'"+anErro... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | /**
* Fill in the working directory with the project base files,
* from the 'base' folder.
*/
protected void initialiseProject(String p) {
File projectSrc=new File(testdataSrcDir+File.separatorChar+p+File.separatorChar+"base");
File destination=new File(getWorkingDir(),p);
if (!destination.exists()) {desti... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | String string = contents[i];
File f = new File(from,string);
File t = new File(to,string);
if (f.isDirectory() && !f.getName().startsWith("inc")) {
t.mkdir();
copy(f,t);
} else if (f.isFile()) {
StringBuffer sb = new StringBuffer();
FileUtil.copyFile(f,t,sb);
if (sb.length()!=0)... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | + File.separatorChar + projectName + File.separatorChar
+ "bin" + File.separatorChar + "META-INF" + File.separatorChar + "aop.xml");
if (!aopXML.exists()) {
fail("Expected file " + aopXML.getAbsolutePath() + " to exist but it doesn't");
}
try {
BufferedReader reader = new BufferedReader(new FileReader(... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | IRelationshipMap asmRelMap = AsmManager.getDefault().getRelationshipMap();
for (Iterator iter = asmRelMap.getEntries().iterator(); iter.hasNext();) {
String sourceOfRelationship = (String) iter.next();
IProgramElement ipe = AsmManager.getDefault().getHierarchy()
.findElementForHandle(sourceOfRelationsh... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.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... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | Map kinds = new HashMap();
World world;
public final Kind invalidAbsoluteTypeName =
new Kind("invalidAbsoluteTypeName", "no match for this type name: {0}");
public final Kind invalidWildcardTypeName =
new Kind("invalidWildcardTypeName", "no match for this type pattern: {0}");
public final Kind unresolvableM... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | public final Kind typeNotExposedToWeaver =
new Kind("typeNotExposedToWeaver", "this affected type is not exposed to the weaver: {0}");
public final Kind shadowNotInStructure =
new Kind("shadowNotInStructure", "the shadow for this join point is not exposed in the structure model: {0}");
public final Kind unma... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | public final Kind cantMatchArrayTypeOnVarargs =
new Kind("cantMatchArrayTypeOnVarargs","an array type as the last parameter in a signature does not match on the varargs declared method: {0}");
public final Kind adviceDidNotMatch =
new Kind("adviceDidNotMatch","advice defined in {0} has not been applied"... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | public final Kind unorderedAdviceAtShadow =
new Kind("unorderedAdviceAtShadow","at this shadow {0} no precedence is specified between advice applying from aspect {1} and aspect {2}");
public final Kind swallowedExceptionInCatchBlock =
new Kind("swallowedExceptionInCatchBlock","exception swallowed in catch block... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | }
public void setFromProperties(File file) {
try {
InputStream s = new FileInputStream(file);
setFromProperties(s);
} catch (IOException ioe) {
MessageUtil.error(world.getMessageHandler(),
WeaverMessages.format(WeaverMessages.XLINT_LOAD_ERROR,file.getPath(),ioe.getMessage()));
}
}
public void l... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | public void setFromProperties(Properties properties) {
for (Iterator i = properties.entrySet().iterator(); i.hasNext(); ) {
Map.Entry entry = (Map.Entry)i.next();
Kind kind = (Kind)kinds.get(entry.getKey());
if (kind == null) {
MessageUtil.error(world.getMessageHandler(),
WeaverMessages.format(Weav... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | }
public void clearAllSuppressions() {
for (Iterator iter = kinds.values().iterator(); iter.hasNext();) {
Kind k = (Kind) iter.next();
k.setSuppressed(false);
}
}
public void clearSuppressions(Collection lintKind) {
if (lintKind.isEmpty()) return;
for (Iterator iter = lintKind.iterator(); iter.... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | private String name;
private String message;
private IMessage.Kind kind = IMessage.WARNING;
private boolean isSupressed = false;
public Kind(String name, String message) {
this.name = name;
this.message = message;
kinds.put(this.name, this);
}
public void setSuppressed(boolean shouldBeSuppresse... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/Lint.java | public String getName() {
return name;
}
public IMessage.Kind getKind() {
return kind;
}
public void setKind(IMessage.Kind kind) {
this.kind = kind;
}
public void signal(String info, ISourceLocation location) {
if (kind == null) return;
String text = MessageFormat.format(message, ne... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.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 distributi... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | import org.aspectj.weaver.AjAttribute;
import org.aspectj.weaver.BCException;
import org.aspectj.weaver.ISourceContext;
import org.aspectj.weaver.Member;
import org.aspectj.weaver.ResolvedMember;
import org.aspectj.weaver.ResolvedType;
import org.aspectj.weaver.Shadow;
import org.aspectj.weaver.ShadowMunger;
import org... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | Pointcut pointcut,
Member signature,
ResolvedType concreteAspect)
{
super(attribute, pointcut, signature);
this.concreteAspect = concreteAspect;
}
public BcelAdvice(AdviceKind kind, Pointcut pointcut, Member signature,
int extraArgumentFlags,
int start, int end, ISourceContext sourceContext, Res... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | if (signature instanceof ResolvedMember && signature.getDeclaringType().isGenericType()) {
adviceSignature = ((ResolvedMember)signature).parameterizedWith(declaringType.getTypeParameters(),declaringType,declaringType.isParameterizedType());
}
ret = new BcelAdvice(this.attribute,pc,adviceSignature,this.concreteAs... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | exposedState = new ExposedState(getSignature());
} else {
exposedState = new ExposedState(0);
return;
}
World world = shadow.getIWorld();
suppressLintWarnings(world);
pointcutTest = getPointcut().findResidue(shadow, exposedState);
clearLintSuppressions(world,this.suppressedLi... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | if (!hasGuardTest && world.getLint().multipleAdviceStoppingLazyTjp.isEnabled()) {
((BcelShadow)shadow).addAdvicePreventingLazyTjp(this);
}
if (!isAround && !hasGuardTest && world.getLint().noGuardForLazyTjp.isEnabled()) {
world.getLint().noGuardForLazyTjp.signal(
new String[] {shadow.to... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | BcelShadow shadow = (BcelShadow) s;
if (getKind() == AdviceKind.Before) {
shadow.weaveBefore(this);
} else if (getKind() == AdviceKind.AfterReturning) {
shadow.weaveAfterReturning(this);
} else if (getKind() == AdviceKind.AfterThrowing) {
UnresolvedTy... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | shadow.weaveAfterReturning(this);
} else if (getKind().isCflow()) {
shadow.weaveCflowEntry(this, getSignature());
} else if (getKind() == AdviceKind.PerThisEntry) {
shadow.weavePerObjectEntry(this, (BcelVar)shadow.getThisVar());
} else if (getKind() == AdviceKind.PerTargetEnt... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | WeaverMessages.format(WeaverMessages.CANT_FIND_TYPE_EXCEPTION_TYPE,excs[i].getName()),
getSourceLocation()
);
}
if (!(runtimeException.isAssignableFrom(t) || error.isAssignableFrom(t))) {
ret.add(t);
}
}
return ret;
}
private Collection thrownExceptions = ... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | }
/**
* The munger must not check for the advice exceptions to be declared by the shadow in the case
* of @AJ aspects so that around can throws Throwable
*
* @return
*/
public boolean mustCheckExceptions() {
if (getConcreteAspect() == null) {
return true;
}
... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | * @param ifNoAdvice The instructionHandle to jump to if the dynamic
* tests for this munger fails.
*/
InstructionList getAdviceInstructions(
BcelShadow s,
BcelVar extraArgVar,
InstructionHandle ifNoAdvice)
{
BcelShadow shadow = (BcelShadow) s;
InstructionFactory fact = shadow.getFactory... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | il.append(getAdviceArgSetup(shadow, extraArgVar, null));
il.append(getNonTestAdviceInstructions(shadow));
InstructionHandle ifYesAdvice = il.getStart();
il.insert(getTestInstructions(shadow, ifYesAdvice, ifNoAdvice, ifYesAdvice));
return il;
}
public InstructionList getAdviceArgSet... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | ;
} else {
if ("Lorg/aspectj/lang/ProceedingJoinPoint;".equals(getSignature().getParameterTypes()[i].getSignature())) {
if (getKind() != AdviceKind.Around) {
... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | if ((getExtraParameterFlags() & ThisJoinPointStaticPart) != 0) {
shadow.getThisJoinPointStaticPartBcelVar().appendLoad(il, fact);
}
} else if ("Lorg/aspectj/lang/JoinPoint;".equals(getSignature().getParameterTypes()[i].getSignature())) {
... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | il.append(InstructionConstants.ACONST_NULL);
}
}
} else {
UnresolvedType desiredTy = getBindingParameterTypes()[i];
v.appendLoadAndConvert(il, fact, desiredTy.resolve(world));
}
}
if (!isAnnotationSty... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | }
}
return il;
}
public InstructionList getNonTestAdviceInstructions(BcelShadow shadow) {
return new InstructionList(
Utility.createInvoke(shadow.getFactory(), shadow.getWorld(), getOriginalSignature()));
}
public Member getOriginalSignature() {
Member ... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | fk,
next);
}
public int compareTo(Object other) {
if (!(other instanceof BcelAdvice)) return 0;
BcelAdvice o = (BcelAdvice)other;
if (kind.getPrecedence() != o.kind.getPrecedence()) {
if (kind.getPrecedence() > o.kind.getPrecedence()) return +1;
else return -1;
}
if (kind.isCflow()) {
b... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | concreteAspect,
o.concreteAspect);
if (ret != 0) return ret;
ResolvedType declaringAspect = getDeclaringAspect().resolve(world);
ResolvedType o_declaringAspect = o.getDeclaringAspect().resolve(world);
if (declaringAspect == o_declaringAspect) {
if (kind.isAfter() || o.kind.isAfter()) {
... |
133,117 | Bug 133117 Lots of warnings with noGuardForLazyTjp | When the noGuardForLazyTjp compiler option is set to warning or error and a piece of advice causes this warning to show up, you get one warning for every join point matched by the advice. I think just one would probably be enough... | resolved fixed | 3fa4d24 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-12T15:34:39Z | 2006-03-24T08:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java | }
if (exposedState == null) return BcelVar.NONE;
int len = exposedState.vars.length;
BcelVar[] ret = new BcelVar[len];
for (int i=0; i < len; i++) {
ret[i] = (BcelVar)exposedState.vars[i];
}
return ret;
}
public boolean hasMatchedSomething() {
return hasMatchedAtLeastOnce;
}
protected v... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | /* *******************************************************************
* Copyright (c) 2005 IBM Corporation Ltd
* 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
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | import org.aspectj.org.eclipse.jdt.core.compiler.CharOperation;
import org.aspectj.org.eclipse.jdt.internal.compiler.ASTVisitor;
import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation;
import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Argument;
import org.aspectj.org.eclipse.jdt.internal.compiler.as... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | private static final char[] beforeAdviceSig = "Lorg/aspectj/lang/annotation/Before;".toCharArray();
private static final char[] afterAdviceSig = "Lorg/aspectj/lang/annotation/After;".toCharArray();
private static final char[] afterReturningAdviceSig = "Lorg/aspectj/lang/annotation/AfterReturning;".toCharArray();
pri... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | return true;
}
public void endVisit(TypeDeclaration localTypeDeclaration,BlockScope scope) {
typeStack.pop();
}
public boolean visit(TypeDeclaration memberTypeDeclaration,ClassScope scope) {
typeStack.push(memberTypeDeclaration);
ajAnnotations = new AspectJAnnotations(memberTypeDeclaration.annotations);
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.VALIDATING_AT_ASPECTJ_ANNOTATIONS, typeDecl.name);
if (!(typeDecl instanceof AspectDeclaration)) {
if (ajAnnotations.hasAspectAnnotation) {
validateAspectDeclaration(typeDecl);
} else {
TypeReference parentRe... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | CompilationAndWeavingContext.leavingPhase(tok);
}
public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) {
if (methodDeclaration.hasErrors()) {
return false;
}
ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.VALIDATING_AT_ASPECTJ_ANNOTATIONS, ... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | } else {
if (ajAnnotations.hasAspectJAnnotations()) {
methodDeclaration.scope.problemReporter().signalError(
methodDeclaration.sourceStart,
methodDeclaration.sourceEnd,
"@AspectJ annotations cannot be declared on this aspect member");
}
}
CompilationAndWeavingContext.leaving... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | return isAspect(typeDecl);
}
private boolean isAspect(TypeDeclaration typeDecl) {
if (typeDecl instanceof AspectDeclaration) return true;
return new AspectJAnnotations(typeDecl.annotations).hasAspectAnnotation;
}
/**
* aspect must be public
* nested aspect must be static
* cannot extend a concrete ... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | TypeReference parentRef = typeDecl.superclass;
if (parentRef != null) {
TypeBinding parentBinding = parentRef.resolvedType;
if (parentBinding instanceof SourceTypeBinding) {
SourceTypeBinding parentSTB = (SourceTypeBinding) parentBinding;
if (parentSTB.scope!=null) {
TypeDeclaration parentDecl = p... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | perClause,
new String[] {pEx.getMessage()});
}
}
/**
* 1) Advice must be public
* 2) Advice must have a void return type if not around advice
* 3) Advice must not have any other @AspectJ annotations
* 4) After throwing advice must declare the thrown formal
* 5) After returning advice must declare ... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | }
if (ajAnnotations.hasAspectAnnotation) {
methodDeclaration.scope.problemReporter().disallowedTargetForAnnotation(ajAnnotations.aspectAnnotation);
}
if (ajAnnotations.hasAdviceNameAnnotation) {
methodDeclaration.scope.problemReporter().disallowedTargetForAnnotation(ajAnnotations.adviceNameAnnotation); ... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | }
}
}
resolveAndSetPointcut(methodDeclaration, ajAnnotations.adviceAnnotation);
}
/**
* Get the argument names as a string list
* @param arguments
* @return argument names (possibly empty)
*/
private List toArgumentNames(Argument[] arguments) {
List names = new ArrayList()... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | pc.resolve(new EclipseScope(bindings,methodDeclaration.scope));
EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(methodDeclaration.scope);
UnresolvedType[] paramTypes = new UnresolvedType[bindings.length];
for (int i = 0; i < paramTypes.length; i++) paramTypes[i] = bindings[i].getType();
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | returnsVoid = false;
}
} else {
returnsVoid = false;
}
if (!returnsVoid) {
methodDeclaration.scope.problemReporter().signalError(methodDeclaration.returnType.sourceStart,
methodDeclaration.returnType.sourceEnd,
"This advice must return void");
}
}
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | } else {
ret[i] = new FormalBinding(type, name, i, arg.sourceStart, arg.sourceEnd, "unknown");
}
}
return ret;
}
private String maybeGetExtraArgName() {
String argName = null;
if (ajAnnotations.adviceKind == AdviceKind.AfterReturning) {
argName = getStringLiteralFor("returning",ajAn... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | for (int i = 0; i < mvps.length; i++) {
if (CharOperation.equals(memberName.toCharArray(),mvps[i].name)) {
if (mvps[i].value instanceof StringLiteral) {
StringLiteral sv = (StringLiteral) mvps[i].value;
location[0] = sv.sourceStart;
location[1] = sv.sourceEnd;
return new String(sv.source());
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | methodDeclaration.scope.problemReporter().disallowedTargetForAnnotation(ajAnnotations.adviceAnnotation);
}
if (ajAnnotations.hasAspectAnnotation) {
methodDeclaration.scope.problemReporter().disallowedTargetForAnnotation(ajAnnotations.aspectAnnotation);
}
if (ajAnnotations.hasAdviceNameAnnotation) {
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | pc.resolve(new EclipseScope(bindings,methodDeclaration.scope));
HasIfPCDVisitor ifFinder = new HasIfPCDVisitor();
pc.traverse(ifFinder, null);
containsIfPcd = ifFinder.containsIfPcd;
}
} catch(ParserException pEx) {
methodDeclaration.scope.problemRe... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | "Methods annotated with @Pointcut must return boolean when the pointcut contains an if() expression");
}
if (methodDeclaration.statements != null && methodDeclaration.statements.length > 0 && !containsIfPcd) {
methodDeclaration.scope.problemReporter().signalError(methodDeclaration.returnType.sourceStart,
... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | to.arguments = from.arguments;
to.binding = from.binding;
to.bits = from.bits;
to.bodyEnd = from.bodyEnd;
to.bodyStart = from.bodyStart;
to.declarationSourceEnd = from.declarationSourceEnd;
to.declarationSourceStart = from.declarationSourceStart;
to.errorInSignature = from.errorInSignature;
to.explicitD... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | }
}
private static class AspectJAnnotations {
boolean hasAdviceAnnotation = false;
boolean hasPointcutAnnotation = false;
boolean hasAspectAnnotation = false;
boolean hasAdviceNameAnnotation = false;
boolean hasMultipleAdviceAnnotations = false;
boolean hasMultiplePointcutAnnotations = false;
boole... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | } else if (CharOperation.equals(afterReturningAdviceSig,sig)) {
adviceKind = AdviceKind.AfterReturning;
addAdviceAnnotation(annotations[i]);
} else if (CharOperation.equals(afterThrowingAdviceSig,sig)) {
adviceKind = AdviceKind.AfterThrowing;
addAdviceAnnotation(annotations[i]);
} else if (C... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java | }
}
}
}
public boolean hasAspectJAnnotations() {
return hasAdviceAnnotation || hasPointcutAnnotation || hasAdviceNameAnnotation || hasAspectAnnotation;
}
private void addAdviceAnnotation(Annotation annotation) {
if (!hasAdviceAnnotation) {
hasAdviceAnnotation = true;
adviceAnnotati... |
135,068 | Bug 135068 VerifyError with LTW and @AJ style aspects | I get "VerifyError: Incompatible object argument for function call" error when using LTW with @Aspect stype aspects. Interestingly enough, LTW works as expected with equivalent .aj style aspect. Compile time weaving works with both aspect styles. Tested on Linux with AspectJ 1.5.0, 1.5.1 and DEVELOPMENT-20060404163823 ... | resolved fixed | 9ffc63b | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-16T07:38:53Z | 2006-04-05T15:13:20Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.