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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/WeaverMessageHandler.java | for (int i = 0; i < sourceLocations.size(); i++) {
ISourceLocation loc = (ISourceLocation) sourceLocations.get(i);
if (loc != null ) {
DefaultProblem dp =
new DefaultProblem( loc.getSourceFile().getPath().toCharArray(),
"see also",
0,
new String[] {},
ProblemS... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
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;
impor... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public static boolean VERBOSE = false;
protected void setUp() throws Exception {
super.setUp();
AjdeInteractionTestbed.VERBOSE = VERBOSE;
}
public void testTheBasics() {
initialiseProject("P1");
build("P1");
build("P1");
checkWasntFullBuild();
checkCompileWeaveCount(0,0);
}
public void tes... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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(... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | timeTakenForSimpleIncBuild<timeTakenForFullBuildAndWeave);
}
public void testBuildingTwoProjectsInTurns() {
configureBuildStructureModel(true);
initialiseProject("P1");
initialiseProject("P2");
build("P1");
build("P2");
build("P1");
checkWasntFullBuild();
build("P2");
checkWasntFullBuild();
}
... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | 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
* structure model is right after each build
*/
p... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("P2");
checkForNode("pkg","C",false);
}
public void testBuildingTwoProjectsAndVerifyingStuff() {
configureBuildStructureModel(true);
initialiseProject("P1");
initialiseProject("P2");
build("P1");
checkForNode("pkg","C",true);
build("P2");
checkForNode("pkg","C",false);
build("P1");
c... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | 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);
assertTrue("Should be no structural changes as it w... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testStateManagement2() {
File binDirectoryForP1 = new File(getFile("P1","bin"));
initialiseProject("P1");
alter("P1","inc3");
build("P1");
AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirectoryForP1);
assertTrue("There should be state for... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | * to control whether a full build is necessary...
*/
public void testBuildingDependantProjects() {
initialiseProject("P1");
initialiseProject("P2");
configureNewProjectDependency("P2","P1");
build("P1");
build("P2");
alter("P1","inc1");
build("P1");
build("P2");
checkWasntFullBuild();
alter... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | 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");
checkCompileWeaveCount(2,1);
asser... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR119570_2");
List l = MyTaskListManager.getWarningMessages();
assertTrue("Should be no warnings, but got "+l,l.size()==0);
}
public void testPr117209() {
try {
initialiseProject("pr117209");
configureNonStandardCompileOptions("-proceedOnError");
build("pr117209");
checkCompileWeaveCount(... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | build("PR117882");
checkWasFullBuild();
alter("PR117882","inc1");
build("PR117882");
checkWasFullBuild();
}
public void testPr117882_2() {
initialiseProject("PR117882_2");
build("PR117882_2");
checkWasFullBuild();
alter("PR117882_2","inc1");
build("PR117882_2");
checkWasFullBuild();
... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | public void testPr121384() {
MyBuildOptionsAdapter.setNonStandardOptions("-showWeaveInfo");
configureBuildStructureModel(true);
initialiseProject("pr121384");
build("pr121384");
checkWasFullBuild();
alter("pr121384","inc1");
build("pr121384");
checkWasntFullBuild();
}
/* public void testPr111779() {... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | String name = (String)AjdeInteractionTestbed.MyStateListener.detectedDeletions.get(0);
assertTrue("Should end with C2.java but is "+name,name.endsWith("C2.java"));
}
public void testPr93310_2() {
initialiseProject("PR93310_2");
build("PR93310_2");
checkWasFullBuild();
String fileC2 = getWorkingDir().getAb... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | "foo cannot be resolved",
((IMessage)MyTaskListManager.getErrorMessages().get(0))
.getMessage());
alter("PR113531","inc2");
build("PR113531");
assertTrue("There should be no exceptions handled:\n"+MyErrorHandler.getErrorMessages(),
MyErrorHandler.getErrorMessages().isEmpty());
assertEquals("error... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | alter("PR119882","inc2");
build("PR119882");
assertTrue("There should be no exceptions handled:\n"+MyErrorHandler.getErrorMessages(),
MyErrorHandler.getErrorMessages().isEmpty());
assertEquals("error message should be 'i cannot be resolved' ",
"i cannot be resolved",
((IMessage)MyTaskListManager.getE... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | checkWasFullBuild();
alter("PR113257","inc1");
build("PR113257");
}
public void testPr123612() {
initialiseProject("PR123612");
build("PR123612");
alter("PR123612","inc1");
build("PR123612");
checkWasFullBuild();
}
public void testPr128655() {
configureNonStandardCompileOptions("-showWeaveInfo"... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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",firstB... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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();) {
... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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... |
128,618 | Bug 128618 [incremental] XLint warnings in the wrong place with incremental compilation | The zip file I am about to attach contains two AspectJ project, one depending on the other. If you make a small change to MainClass.java in 'Test Project' and save you will see a strange warning in that class - "advice defined in ras.FFDC has not been applied [Xlint:adviceDidNotMatch]". If you do a full build the warni... | resolved fixed | 89d66dc | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:07:04Z | 2006-02-20T12:53:20Z | 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);
... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://ww... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20: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... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | public void testMixingNumbersOfTypeParameters_pr125080() {
runTest("mixing numbers of type parameters");
GenericsTests.verifyClassSignature(ajc,"AspectInterface","<T:Ljava/lang/Object;S:Ljava/lang/Object;>Ljava/lang/Object;");
GenericsTests.verifyClassSignature(ajc,"AbstractAspect","<T:Ljava/lang/Object... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | assertFalse("printParameters method should have arguments",pe2.getParameterTypes().isEmpty());
}
public void testParameterizedEnum_pr126316() {
runTest("E extends Enum(E) again");
}
public void testSwallowedException() {
runTest("swallowed exceptions");
}
public void testSwallowedExceptionIgn... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | IProgramElement warningMethodIPE = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.METHOD,"warningMethod()");
assertNotNull("Couldn't find 'warningMethod()' element in the tree",warningMethodIPE);
IProgramElement atDeclareWarningIPE = top.findElementForLabel(top.getRoot(),
IP... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | IProgramElement.Kind.METHOD,"badMethod()");
assertNotNull("Couldn't find 'badMethod()' element in the tree",errorMethodIPE);
IProgramElement atDeclarErrorIPE = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.FIELD,"error");
assertNotNull("Couldn't find @DeclareError element in ... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | runTest("@AJ no npe with pointcut containing or, this and a wildcard");
}
/*
* Load-time weaving bugs and enhancements
*/
public void testEmptyPointcutInAtAspectJ_pr125475 () {
runTest("define empty pointcut using an annotation");
}
public void testEmptyPointcutInAtAspectJ_pr125475_2() {
runTe... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.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... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | protected ResolvedType concreteAspect;
protected List innerCflowEntries = Collections.EMPTY_LIST;
protected int nFreeVars;
protected TypePattern exceptionType;
protected UnresolvedType[] bindingParameterTypes;
protected List suppressedLintKinds = null;
public stati... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | ResolvedType inAspect)
{
Advice ret = world.createAdviceMunger(isThis ? AdviceKind.PerThisEntry : AdviceKind.PerTargetEntry,
entry, null, 0, entry);
ret.concreteAspect = inAspect;
return ret;
}
public static Advice makePerTypeWithinEntry(World world, Pointcut p, Resolv... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | this.signature = signature;
if (signature != null) {
this.bindingParameterTypes = signature.getParameterTypes();
} else {
this.bindingParameterTypes = new UnresolvedType[0];
}
}
public boolean match(Shadow shadow, World world) {
if (super.match(shadow, world)) {
if (shadow.getKind() == Shado... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | ResolvedType exceptionType = getExtraParameterType().resolve(world);
if (!exceptionType.isCheckedException()) return true;
UnresolvedType[] shadowThrows = shadow.getSignature().getExceptions(world);
boolean matches = false;
for (int i = 0; i < shadowThrows.length && !matches; i++) {
... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | return false;
} else {
if (getSignature().getReturnType() == ResolvedType.VOID) {
if (shadow.getReturnType() != ResolvedType.VOID) {
world.showMessage(IMessage.ERROR,
WeaverMessages.format(WeaverMessages.NON_VOID_RETURN,shadow),
getSourceLocation(), sha... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | getSourceLocation(), shadow.getSourceLocation());
return false;
}
}
}
}
return true;
} else {
return false;
}
}
/**
* In after returning advice if we are binding the extra parameter to a parameterized
* type we may not be able to do a type-safe conver... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | afterReturningType.getSimpleBaseName(),
shadow.toResolvedString(world)},
getSourceLocation(),
new ISourceLocation[] {shadow.getSourceLocation()});
}
}
}
public AdviceKind getKind() {
return kind;
}
public Member getSignature() {
return signature;
}
public void setSignature(... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | public UnresolvedType[] getBindingParameterTypes() { return this.bindingParameterTypes; }
public void setBindingParameterTypes(UnresolvedType[] types) { this.bindingParameterTypes = types; }
public static int countOnes(int bits) {
int ret = 0;
while (bits != 0) {
if ((bits & 1) != 0) ret += 1;
bits = bi... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | return ((ResolvedMember)signature).getGenericParameterTypes()[getBaseParameterCount()];
} else {
return signature.getParameterTypes()[getBaseParameterCount()];
}
}
public UnresolvedType getDeclaringAspect() {
return getOriginalSignature().getDeclaringType();
}
protected Member getOriginalSignature() {
... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | Pointcut p = pointcut.concretize(fromType, getDeclaringType(), signature.getArity(), this);
if (clause != null) {
Pointcut oldP = p;
p = new AndPointcut(clause, p);
p.copyLocationFrom(oldP);
p.state = Pointcut.CONCRETE;
p.m_ignoreUnboundBindingForName... |
122,742 | Bug 122742 [@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument | If an @AspectJ aspect advises itself using after throwing advice that itself throws an exception running the resulting program causes a VerifyError: java.lang.VerifyError: (class: A, method: stop signature: ()V) catch_type not a subclass of Throwable at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Cl... | resolved fixed | 3fa1bdd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-21T16:13:44Z | 2006-01-05T11:20:00Z | weaver/src/org/aspectj/weaver/Advice.java | }
private volatile int hashCode = 0;
public int hashCode() {
if (hashCode == 0) {
int result = 17;
result = 37*result + kind.hashCode();
result = 37*result + pointcut.hashCode();
if (signature != null) result = 37*result + signature.hashCode();
... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/ltw/LTWWorld.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... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/ltw/LTWWorld.java | package org.aspectj.weaver.ltw;
import org.aspectj.weaver.Advice;
import org.aspectj.weaver.ConcreteTypeMunger;
import org.aspectj.weaver.Member;
import org.aspectj.weaver.ReferenceType;
import org.aspectj.weaver.ReferenceTypeDelegate;
import org.aspectj.weaver.ResolvedMember;
import org.aspectj.weaver.ResolvedType;
im... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/ltw/LTWWorld.java | protected ReferenceTypeDelegate resolveDelegate(ReferenceType ty) {
return null;
}
public Advice createAdviceMunger(AdviceAttribute attribute, Pointcut pointcut, Member signature) {
return null;
}
public ConcreteTypeMunger makeCflowStackFieldAdder(ResolvedMember cflowField) {
return null;
}
publ... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.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... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java | */
public class ReflectionBasedReferenceTypeDelegateFactory {
public static ReflectionBasedReferenceTypeDelegate
createDelegate(ReferenceType forReferenceType, World inWorld, ClassLoader usingClassLoader) {
try {
Class c = Class.forName(forReferenceType.getName(),false,usingClassLoader);
if (LangUtil.is15VMO... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java | private static GenericSignatureInformationProvider createGenericSignatureProvider(World inWorld) {
if (LangUtil.is15VMOrGreater()) {
try {
Class providerClass = Class.forName("org.aspectj.weaver.reflect.Java15GenericSignatureInformationProvider");
Constructor cons = providerClass.getConstructor(new Class[]... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java | public static ResolvedMember createResolvedMember(Member reflectMember, World inWorld) {
if (reflectMember instanceof Method) {
return createResolvedMethod((Method)reflectMember,inWorld);
} else if (reflectMember instanceof Constructor) {
return createResolvedConstructor((Constructor)reflectMember,inWorld);
... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java | toResolvedType(aMethod.getDeclaringClass(),(ReflectionWorld)inWorld),
aMethod.getModifiers(),
toResolvedType(aMethod.getReturnType(),(ReflectionWorld)inWorld),
aMethod.getName(),
toResolvedTypeArray(aMethod.getParameterTypes(),inWorld),
toResolvedTypeArray(aMethod.getExceptionTypes(),inWorld),
a... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java | ResolvedType.VOID,
"<init>",
toResolvedTypeArray(aConstructor.getParameterTypes(),inWorld),
toResolvedTypeArray(aConstructor.getExceptionTypes(),inWorld),
aConstructor
);
if (inWorld instanceof ReflectionWorld) {
ret.setAnnotationFinder(((ReflectionWorld)inWorld).getAnnotationFinder());
}
r... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java | return new ResolvedMemberImpl(
org.aspectj.weaver.Member.HANDLER,
toResolvedType(inType,(ReflectionWorld)inWorld),
Modifier.STATIC,
"<catch>",
"(" + inWorld.resolve(exceptionType.getName()).getSignature() + ")V");
}
public static ResolvedType resolveTypeInWorld(Class aClass, World aWorld) {
St... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.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... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | import org.aspectj.weaver.Shadow;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.World;
import org.aspectj.weaver.ast.Var;
import org.aspectj.weaver.tools.MatchingContext;
/**
* @author colyer
*
*/
public class ReflectionShadow extends Shadow {
private final World world;
private final Resolved... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | }
public static Shadow makeAdviceExecutionShadow(World inWorld, java.lang.reflect.Method forMethod, MatchingContext withContext) {
Kind kind = Shadow.AdviceExecution;
Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedAdviceMember(forMethod, inWorld);
ResolvedType enclosingType = sign... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | }
public static Shadow makePreInitializationShadow(World inWorld, Constructor forConstructor, MatchingContext withContext) {
Kind kind = Shadow.PreInitialization;
Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(forConstructor, inWorld);
ResolvedType enclosingType = signatur... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
return new ReflectionShadow(inWorld,kind,signature,enclosingShadow,enclosingType,enclosingMember,withContext);
}
public static Shadow makeFieldGetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) ... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | Shadow enclosingShadow = makeExecutionShadow(inWorld,inMember,withContext);
Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedField(forField, inWorld);
ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(inMember, inWorld);
ResolvedType encl... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | }
return thisVar;
}
/* (non-Javadoc)
* @see org.aspectj.weaver.Shadow#getTargetVar()
*/
public Var getTargetVar() {
if (targetVar == null && hasTarget()) {
targetVar = ReflectionVar.createTargetVar(getThisType().resolve(world),this.annotationFinder);
}
return targetVar;
}
/* (non-Javadoc)
* @see o... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | } else {
return null;
}
}
/* (non-Javadoc)
* @see org.aspectj.weaver.Shadow#getThisJoinPointVar()
*/
public Var getThisJoinPointVar() {
return null;
}
/* (non-Javadoc)
* @see org.aspectj.weaver.Shadow#getThisJoinPointStaticPartVar()
*/
public Var getThisJoinPointStaticPartVar() {
return nul... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | if (annotationVar.get(annType) == null) {
Var v = ReflectionVar.createAtAnnotationVar(annType,this.annotationFinder);
annotationVar.put(annType,v);
}
return (Var) annotationVar.get(annType);
}
/* (non-Javadoc)
* @see org.aspectj.weaver.Shadow#getWithinAnnotationVar(org.aspectj.weaver.UnresolvedType)
*/
... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | */
public Var getThisAnnotationVar(UnresolvedType forAnnotationType) {
if (atThisVar == null) {
atThisVar = ReflectionVar.createThisAnnotationVar(forAnnotationType.resolve(world),this.annotationFinder);
}
return atThisVar;
}
/* (non-Javadoc)
* @see org.aspectj.weaver.Shadow#getTargetAnnotationVar(org.aspe... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java | return vars[i];
}
/* (non-Javadoc)
* @see org.aspectj.weaver.Shadow#getEnclosingCodeSignature()
*/
public Member getEnclosingCodeSignature() {
if (getKind().isEnclosingKind()) {
return getSignature();
} else if (getKind() == Shadow.PreInitialization) {
return getSi... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.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... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java | import org.aspectj.util.LangUtil;
import org.aspectj.weaver.Advice;
import org.aspectj.weaver.BCException;
import org.aspectj.weaver.ConcreteTypeMunger;
import org.aspectj.weaver.Member;
import org.aspectj.weaver.ReferenceType;
import org.aspectj.weaver.ReferenceTypeDelegate;
import org.aspectj.weaver.ResolvedMember;
i... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java | if (LangUtil.is15VMOrGreater()) {
initializeAnnotationFinder(this.classLoader);
}
}
public ReflectionWorld(ClassLoader aClassLoader) {
super();
this.setMessageHandler(new ExceptionBasedMessageHandler());
setBehaveInJava5Way(LangUtil.is15VMOrGreater());
this.classLoader = aClassLoader;
if (LangUtil.is... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java | public ClassLoader getClassLoader() {
return this.classLoader;
}
public AnnotationFinder getAnnotationFinder() {
return this.annotationFinder;
}
public ResolvedType resolve(Class aClass) {
String className = aClass.getName();
if (aClass.isArray()) {
return resolve(UnresolvedType.forSignature(class... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java | throw new UnsupportedOperationException("Cannot create advice munger in ReflectionWorld");
}
/* (non-Javadoc)
* @see org.aspectj.weaver.World#makeCflowStackFieldAdder(org.aspectj.weaver.ResolvedMember)
*/
public ConcreteTypeMunger makeCflowStackFieldAdder(ResolvedMember cflowField) {
throw new UnsupportedOpera... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java | private static final long serialVersionUID = -3432261918302793005L;
public ReflectionWorldException(String message) {
super(message);
}
}
private static class ExceptionBasedMessageHandler implements IMessageHandler {
public boolean handleMessage(IMessage message) throws AbortException {
throw new Reflec... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.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... |
121,312 | Bug 121312 [performance]Contribution: Refactoring to Support LTW World with Reflection Delegates for Bootstrap Types | This patch adds an IReflectionWorld interface, changes the various places in code where casts are made to ReflectionWorld to use that interface, creates some common methods and creates an LTWWorld that implements this interface, and sets up the ClassLoaderWeavingAdaptor to use it. It's important that the LTWWorld have ... | resolved fixed | cafdecb | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-23T11:34:16Z | 2005-12-17T09:00:00Z | weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java | public void testDelegateCreation() {
World world = new ReflectionWorld(getClass().getClassLoader());
ResolvedType rt = world.resolve("java.lang.Object");
assertNotNull(rt);
assertEquals("Ljava/lang/Object;",rt.getSignature());
}
public void testArrayTypes() {
ReflectionWorld world = new ReflectionWorld(ge... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.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... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | package org.aspectj.weaver;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.aspectj.bridge.ISourceLocation;
import org.aspectj.weaver.AjAttribute.EffectiveSignatureAttribute;
/**
* @author colyer
* Instances of this... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | private ResolvedMember realMember;
private ResolvedType substituteDeclaringType;
public JoinPointSignature(ResolvedMember backing, ResolvedType aType) {
this.realMember = backing;
this.substituteDeclaringType = aType;
}
public UnresolvedType getDeclaringType() {
return substituteDeclaringType;
}
public ... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | public ShadowMunger getAssociatedShadowMunger() {
return realMember.getAssociatedShadowMunger();
}
public boolean isAjSynthetic() {
return realMember.isAjSynthetic();
}
public boolean hasAnnotations() {
return realMember.hasAnnotations();
}
public boolean hasAnnotation(UnresolvedType ofType) {
return real... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | public void write(DataOutputStream s) throws IOException {
realMember.write(s);
}
public ISourceContext getSourceContext(World world) {
return realMember.getSourceContext(world);
}
public String[] getParameterNames() {
return realMember.getParameterNames();
}
public void setParameterNames(String[] names) ... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | }
public void setPosition(int sourceStart, int sourceEnd) {
realMember.setPosition(sourceStart,sourceEnd);
}
public void setSourceContext(ISourceContext sourceContext) {
realMember.setSourceContext(sourceContext);
}
public boolean isAbstract() {
return realMember.isAbstract();
}
public boolean isPublic() {... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | }
public boolean isAnnotatedElsewhere() {
return realMember.isAnnotatedElsewhere();
}
public UnresolvedType getGenericReturnType() {
return realMember.getGenericReturnType();
}
public UnresolvedType[] getGenericParameterTypes() {
return realMember.getGenericParameterTypes();
}
public ResolvedMemberImpl par... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | public boolean matches(ResolvedMember aCandidateMatch) {
return realMember.matches(aCandidateMatch);
}
public ResolvedMember resolve(World world) {
return realMember.resolve(world);
}
public int compareTo(Object other) {
return realMember.compareTo(other);
}
public String toLongString() {
return realMembe... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | public String getDeclaredSignature() {
return realMember.getDeclaredSignature();
}
public int getArity() {
return realMember.getArity();
}
public String getParameterSignature() {
return realMember.getParameterSignature();
}
public boolean isCompatibleWith(Member am) {
return realMember.isCompatibleWith(am... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | public boolean canBeParameterized() {
return realMember.canBeParameterized();
}
public int getCallsiteModifiers() {
return realMember.getCallsiteModifiers();
}
public String getExtractableName() {
return realMember.getExtractableName();
}
public AnnotationX[] getAnnotations() {
return realMember.getAnnota... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | buf.append(getReturnType().getName());
buf.append(' ');
buf.append(getDeclaringType().getName());
buf.append('.');
buf.append(getName());
if (getKind() != FIELD) {
buf.append("(");
UnresolvedType[] parameterTypes = getParameterTypes();
if (parameterTypes.length != 0) ... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/JoinPointSignature.java | public void resetKind(Kind newKind) {
realMember.resetKind(newKind);
}
public void resetModifiers(int newModifiers) {
realMember.resetModifiers(newModifiers);
}
public void resetReturnTypeToObjectArray() {
realMember.resetReturnTypeToObjectArray();
}
public boolean equals(Object obj) {
if (! (obj inst... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/Member.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* 2005 Contributors
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/Member.java | public static class Kind extends TypeSafeEnum {
public Kind(String name, int key) { super(name, key); }
public static Kind read(DataInputStream s) throws IOException {
int key = s.readByte();
switch(key) {
case 1: return METHOD;
case 2: re... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/Member.java | public UnresolvedType getDeclaringType();
public UnresolvedType getReturnType();
public UnresolvedType getGenericReturnType();
public UnresolvedType getType();
public String getName();
public UnresolvedType[] getParameterTypes();
/**
* Return full signature, including return type, e.g. "()LFastCar;" for a sig... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/Member.java | public boolean isProtected(World world);
public boolean isStatic(World world);
public boolean isStrict(World world);
public boolean isStatic();
public boolean isInterface();
public boolean isPrivate();
/**
* Returns true iff the member is generic (NOT parameterized)
* For example, a method declared in a gener... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.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... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | protected Kind kind;
protected UnresolvedType declaringType;
protected int modifiers;
protected UnresolvedType returnType;
protected String name;
protected UnresolvedType[] parameterTypes;
private final String signature;
private final String declaredSignature;
private String paramSignatur... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | private JoinPointSignatureIterator joinPointSignatures = null;
public MemberImpl(
Kind kind,
UnresolvedType declaringType,
int modifiers,
String name,
String signature)
{
this.kind = kind;
this.declaringType = declaringType;
this.modifiers = modi... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | UnresolvedType[] parameterTypes)
{
super();
this.kind = kind;
this.declaringType = declaringType;
this.modifiers = modifiers;
this.returnType = returnType;
this.name = name;
this.parameterTypes = parameterTypes;
if (kind == FIELD) {
this.s... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | *
* <blockquote><pre>
* UnresolvedType.signatureToTypes("()[Z")[0].equals(Type.forSignature("[Z"))
* UnresolvedType.signatureToTypes("(JJ)I")[1]
* .equals(UnresolvedType.forSignatures(new String[] {"J", "J"}))
* </pre></blockquote>
*
* @param signature the JVM bytecode m... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | StringBuffer buf = new StringBuffer();
buf.append("(");
for(int i=0;i<paramTypes.length;i++) {
buf.append(paramTypes[i].getSignature());
}
buf.append(")");
return buf.toString();
}
/**
* returns an Object[] pair of UnresolvedType, UnresolvedType[] r... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | if (c == ')') break;
int start = i;
while (c == '[') c = sig.charAt(++i);
if (c == 'L' || c == 'P') {
int nextSemicolon = sig.indexOf(';',start);
int firstAngly = (hasAnyAnglies?sig.indexOf('<',start):-1);
if (!hasAnyAnglies || firstAngly == -1 || firstAngly>nextSemicolo... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | String nextbit = sig.substring(start,nextSemicolon);
l.add(UnresolvedType.forSignature(nextbit));
i=nextSemicolon+1;
} else {
i++;
l.add(UnresolvedType.forSignature(sig.substring(start, i)));
}
}
UnresolvedType[] paramTypes = (UnresolvedType[]... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | UnresolvedType.forName(declaring),
mods,
ty,
name,
UnresolvedType.NONE);
}
public static MemberImpl method(UnresolvedType declTy, int mods, UnresolvedType rTy, String name, UnresolvedType[] paramTys) {
return new MemberImpl(
name... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | inType,
Modifier.STATIC,
"<catch>",
"(" + catchType.getSignature() + ")V");
}
/** Takes a string in this form:
*
* <blockquote><pre>
* static? TypeName TypeName.Id
* </pre></blockquote>
* Pretty much just for testing, and as such should perhaps be moved.
*/
... |
129,298 | Bug 129298 Contribution: Remove Memory Consuming Declared Signature | The code for weaver.Member#getDeclaredSignature() is never used in the weaver. My memory analysis showed this can pin several megabytes of memory in a large system. This patch removes it. YAGNI :-) | resolved fixed | a116142 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-02-24T12:11:15Z | 2006-02-24T08:33:20Z | weaver/src/org/aspectj/weaver/MemberImpl.java | i = str.lastIndexOf('.');
UnresolvedType declaringTy = UnresolvedType.forName(str.substring(start, i).trim());
start = ++i;
String name = str.substring(start, len).trim();
return new MemberImpl(
FIELD,
declaringTy,
mods,
retTy,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.