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
unknown
report_datetime
unknown
updated_file
stringlengths
23
187
chunk_content
stringlengths
1
22k
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testIncrementalBuildsWithItds_pr259528() { String p = "pr259528"; AjdeInteractionTestbed.VERBOSE = true; initialiseProject(p); build(p); checkWasFullBuild(); alter(p, "inc1"); build(p); checkWasntFullBuild(); } public void testAdviceHandlesAreJDTCompatible() { String p = "AdviceHandles"; initialiseProject(p); addSourceFolderForSourceFile(p, getProjectRelativePath(p, "src/Handles.aj"), "src"); build(p); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); IProgramElement typeDecl = findElementAtLine(root, 4); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles", typeDecl.getHandleIdentifier()); IProgramElement advice1 = findElementAtLine(root, 7); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&before", advice1.getHandleIdentifier()); IProgramElement advice2 = findElementAtLine(root, 11); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&before!2", advice2.getHandleIdentifier()); IProgramElement advice3 = findElementAtLine(root, 15); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&before&I", advice3.getHandleIdentifier()); IProgramElement advice4 = findElementAtLine(root, 20); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&before&I!2", advice4.getHandleIdentifier()); IProgramElement advice5 = findElementAtLine(root, 25); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&after", advice5.getHandleIdentifier()); IProgramElement advice6 = findElementAtLine(root, 30); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&afterReturning", advice6.getHandleIdentifier());
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
IProgramElement advice7 = findElementAtLine(root, 35); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&afterThrowing", advice7.getHandleIdentifier()); IProgramElement advice8 = findElementAtLine(root, 40); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles&afterThrowing&I", advice8.getHandleIdentifier()); IProgramElement namedInnerClass = findElementAtLine(root, 46); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~x[NamedClass", namedInnerClass.getHandleIdentifier()); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~foo[", findElementAtLine(root, 55).getHandleIdentifier()); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~foo[!2", findElementAtLine(root, 56).getHandleIdentifier()); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~b~QString;[", findElementAtLine(root, 62) .getHandleIdentifier()); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~b~QString;[!2", findElementAtLine(root, 63) .getHandleIdentifier()); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~c~QString;[", findElementAtLine(root, 66) .getHandleIdentifier()); assertEquals("=AdviceHandles/src<spacewar*Handles.aj'Handles~c~QString;[!2", findElementAtLine(root, 67) .getHandleIdentifier()); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
private IProgramElement findFile(IProgramElement whereToLook, String filesubstring) { if (whereToLook.getSourceLocation() != null && whereToLook.getKind().isSourceFile() && whereToLook.getSourceLocation().getSourceFile().toString().indexOf(filesubstring) != -1) { return whereToLook; } for (IProgramElement element : whereToLook.getChildren()) { Kind k = element.getKind(); ISourceLocation sloc = element.getSourceLocation();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
if (sloc != null && k.isSourceFile() && sloc.getSourceFile().toString().indexOf(filesubstring) != -1) { return element; } if (k.isSourceFile()) { continue; } IProgramElement gotSomething = findFile(element, filesubstring); if (gotSomething != null) { return gotSomething; } } return null; } private IProgramElement findElementAtLine(IProgramElement whereToLook, int line) { if (whereToLook == null) { return null; } if (whereToLook.getSourceLocation() != null && whereToLook.getSourceLocation().getLine() == line) { return whereToLook; } for (IProgramElement object : whereToLook.getChildren()) { if (object.getSourceLocation() != null && object.getSourceLocation().getLine() == line) { return object; } IProgramElement gotSomething = findElementAtLine(object, line); if (gotSomething != null) { return gotSomething; } } return null;
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} public void testModelWithMultipleSourceFolders() { initialiseProject("MultiSource"); addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src1/CodeOne.java"), "src1/"); addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src2/CodeTwo.java"), "src2"); addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src3/pkg/CodeThree.java"), "src3"); build("MultiSource"); IProgramElement srcOne = getModelFor("MultiSource").getHierarchy().findElementForHandle("=MultiSource/src1"); IProgramElement CodeOneClass = getModelFor("MultiSource").getHierarchy().findElementForHandle( "=MultiSource/src1{CodeOne.java[CodeOne"); IProgramElement srcTwoPackage = getModelFor("MultiSource").getHierarchy().findElementForHandle("=MultiSource/src2<pkg"); IProgramElement srcThreePackage = getModelFor("MultiSource").getHierarchy().findElementForHandle("=MultiSource/src3<pkg"); assertNotNull(srcOne); assertNotNull(CodeOneClass); assertNotNull(srcTwoPackage); assertNotNull(srcThreePackage); if (srcTwoPackage.equals(srcThreePackage)) { throw new RuntimeException( "Should not have found these package nodes to be the same, they are in different source folders"); } } public void testModelWithMultipleSourceFolders2() {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
initialiseProject("MultiSource"); addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src1/CodeOne.java"), "src/java/main"); addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src2/CodeTwo.java"), "src/java/main"); addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src3/pkg/CodeThree.java"), "src/java/tests"); build("MultiSource"); IProgramElement srcOne = getModelFor("MultiSource").getHierarchy().findElementForHandleOrCreate( "=MultiSource/src\\/java\\/main", false); IProgramElement CodeOneClass = getModelFor("MultiSource").getHierarchy().findElementForHandle( "=MultiSource/src\\/java\\/main{CodeOne.java[CodeOne"); IProgramElement srcTwoPackage = getModelFor("MultiSource").getHierarchy().findElementForHandle( "=MultiSource/src\\/java\\/tests<pkg"); IProgramElement srcThreePackage = getModelFor("MultiSource").getHierarchy().findElementForHandle( "=MultiSource/src\\/java\\/testssrc3<pkg"); assertNotNull(srcOne); assertNotNull(CodeOneClass); assertNotNull(srcTwoPackage); assertNotNull(srcThreePackage); if (srcTwoPackage.equals(srcThreePackage)) { throw new RuntimeException( "Should not have found these package nodes to be the same, they are in different source folders"); } } public void testIncrementalItdsWithMultipleAspects_pr173729() {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
initialiseProject("PR173729"); build("PR173729"); checkWasFullBuild(); alter("PR173729", "inc1"); build("PR173729"); checkWasntFullBuild(); } public void testTheBasics() { initialiseProject("P1"); build("P1"); build("P1"); checkWasntFullBuild(); checkCompileWeaveCount("P1", 0, 0); } public void testInvalidAspectpath_pr121395() { initialiseProject("P1"); File f = new File("foo.jar"); Set<File> s = new HashSet<File>(); s.add(f); configureAspectPath("P1", s); build("P1"); checkForError("P1", "invalid aspectpath entry"); } public void testAspectPath_pr242797_c46() { String bug = "pr242797_1"; String bug2 = "pr242797_2"; initialiseProject(bug);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
initialiseProject(bug2); configureAspectPath(bug2, getProjectRelativePath(bug, "bin")); build(bug); build(bug2); } public void testAspectPath_pr247742_c16() throws IOException { String bug = "AspectPathOne"; String bug2 = "AspectPathTwo"; addSourceFolderForSourceFile(bug2, getProjectRelativePath(bug2, "src/C.java"), "src"); initialiseProject(bug); initialiseProject(bug2); configureAspectPath(bug2, getProjectRelativePath(bug, "bin")); build(bug); build(bug2); dumptree(getModelFor(bug2).getHierarchy().getRoot(), 0); PrintWriter pw = new PrintWriter(System.out); getModelFor(bug2).dumprels(pw); pw.flush(); IProgramElement root = getModelFor(bug2).getHierarchy().getRoot(); assertEquals("=AspectPathTwo/binaries<pkg(Asp.class'Asp&before", findElementAtLine(root, 5).getHandleIdentifier()); assertEquals("=AspectPathTwo/binaries<(Asp2.class'Asp2&before", findElementAtLine(root, 16).getHandleIdentifier()); } public void testAspectPath_pr274558() throws Exception { String base = "bug274558depending"; String depending = "bug274558base"; initialiseProject(base); initialiseProject(depending); configureAspectPath(depending, getProjectRelativePath(base, "bin")); build(base);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build(depending); printModel(depending); IProgramElement root = getModelFor(depending).getHierarchy().getRoot(); assertEquals("=bug274558base/binaries<r(DeclaresITD.class'DeclaresITD,InterfaceForITD.x", findElementAtLine(root, 5) .getHandleIdentifier()); } public void testAspectPath_pr265693() throws IOException { String bug = "AspectPath3"; String bug2 = "AspectPath4"; addSourceFolderForSourceFile(bug2, getProjectRelativePath(bug2, "src/C.java"), "src"); initialiseProject(bug); initialiseProject(bug2); configureAspectPath(bug2, getProjectRelativePath(bug, "bin")); build(bug); build(bug2); IProgramElement root = getModelFor(bug2).getHierarchy().getRoot(); IProgramElement binariesNode = getChild(root, "binaries"); assertNotNull(binariesNode); IProgramElement packageNode = binariesNode.getChildren().get(0); assertEquals("a.b.c", packageNode.getName()); IProgramElement fileNode = packageNode.getChildren().get(0); assertEquals(IProgramElement.Kind.FILE, fileNode.getKind()); } private IProgramElement getChild(IProgramElement start, String name) { if (start.getName().equals(name)) {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
return start; } List<IProgramElement> kids = start.getChildren(); if (kids != null) { for (int i = 0; i < kids.size(); i++) { IProgramElement found = getChild((IProgramElement) kids.get(i), name); if (found != null) { return found; } } } return null; } public void testHandleQualification_pr265993() throws IOException { String p = "pr265993"; initialiseProject(p); configureNonStandardCompileOptions(p, "-Xset:minimalModel=false"); build(p); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); assertEquals("=pr265993<{A.java[A~m~QString;~Qjava.lang.String;", findElementAtLine(root, 3).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m2~QList;", findElementAtLine(root, 5).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m3~Qjava.util.ArrayList;", findElementAtLine(root, 6).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m4~QMap\\<Qjava.lang.String;QList;>;", findElementAtLine(root, 8).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m5~Qjava.util.Map\\<Qjava.lang.String;QList;>;", findElementAtLine(root, 9) .getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m6~QMap\\<\\[IQList;>;", findElementAtLine(root, 10).getHandleIdentifier());
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertEquals("=pr265993<{A.java[A~m7~\\[I", findElementAtLine(root, 11).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m8~\\[Qjava.lang.String;", findElementAtLine(root, 12).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m9~\\[QString;", findElementAtLine(root, 13).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m10~\\[\\[QList\\<QString;>;", findElementAtLine(root, 14).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m11~Qjava.util.List\\<QT;>;", findElementAtLine(root, 15).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m12~\\[QT;", findElementAtLine(root, 16).getHandleIdentifier()); assertEquals("=pr265993<{A.java[A~m13~QClass\\<QT;>;~QObject;~QString;", findElementAtLine(root, 17).getHandleIdentifier()); } public void testHandlesForAnnotationStyle_pr269286() throws IOException { String p = "pr269286"; initialiseProject(p); build(p); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); dumptree(getModelFor(p).getHierarchy().getRoot(), 0); PrintWriter pw = new PrintWriter(System.out); getModelFor(p).dumprels(pw); pw.flush(); assertEquals("=pr269286<{Logger.java[Logger", findElementAtLine(root, 4).getHandleIdentifier()); assertEquals("=pr269286<{Logger.java[Logger~boo", findElementAtLine(root, 7).getHandleIdentifier()); assertEquals("=pr269286<{Logger.java[Logger~aoo", findElementAtLine(root, 11).getHandleIdentifier()); assertEquals("=pr269286<{Logger.java[Logger~aroo", findElementAtLine(root, 15).getHandleIdentifier()); assertEquals("=pr269286<{Logger.java[Logger\"ooo", findElementAtLine(root, 20).getHandleIdentifier()); assertEquals("=pr269286<{Logger.java[Logger^message", findElementAtLine(root, 24).getHandleIdentifier()); assertEquals("=pr269286<{Logger.java[Logger^message2", findElementAtLine(root, 27).getHandleIdentifier()); } public void testHandleCountersForAdvice() throws IOException { String p = "prx";
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
initialiseProject(p); build(p); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); IProgramElement ff = findFile(root, "ProcessAspect.aj"); assertEquals("=prx<com.kronos.aspects*ProcessAspect.aj'ProcessAspect&after&QMyProcessor;", findElementAtLine(root, 22) .getHandleIdentifier()); assertEquals("=prx<com.kronos.aspects*ProcessAspect.aj'ProcessAspect&after&QMyProcessor;!2", findElementAtLine(root, 68) .getHandleIdentifier()); } /** * A change is made to an aspect on the aspectpath (staticinitialization() advice is added) for another project. * <p> * Managing the aspectpath is hard. We want to do a minimal build of this project which means recognizing what kind of changes * have occurred on the aspectpath. Was it a regular class or an aspect? Was it a structural change to that aspect? * <p> * The filenames for .class files created that contain aspects is stored in the AjState.aspectClassFiles field. When a change is * detected we can see who was managing the location where the change occurred and ask them if the .class file contained an * aspect. Right now a change detected like this will cause a full build. We might improve the detection logic here but it isn't * trivial: * <ul> * <li>Around advice is inlined. Changing the body of an around advice would not normally be thought of as a structural change * (as it does not change the signature of the class) but due to inlining it is a change we would need to pay attention to as it * will affect types previously woven with that advice. * <li>Annotation style aspects include pointcuts in strings. Changes to these are considered non-structural but clearly they do * affect what might be woven.
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
* </ul> */ public void testAspectPath_pr249212_c1() throws IOException { String p1 = "AspectPathOne"; String p2 = "AspectPathTwo"; addSourceFolderForSourceFile(p2, getProjectRelativePath(p2, "src/C.java"), "src"); initialiseProject(p1); initialiseProject(p2); configureAspectPath(p2, getProjectRelativePath(p1, "bin")); build(p1); build(p2); alter(p1, "inc1"); build(p1); checkWasFullBuild(); Set s = getModelFor(p1).getModelChangesOnLastBuild(); assertTrue("Should be empty as was full build:" + s, s.isEmpty()); addClasspathEntryChanged(p2, getProjectRelativePath(p1, "bin").toString()); configureAspectPath(p2, getProjectRelativePath(p1, "bin")); build(p2); checkWasFullBuild(); assertTrue("Should be empty as was full build:" + s, s.isEmpty());
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} /** * Build a project containing a resource - then mark the resource readOnly(), then do an inc-compile, it will report an error * about write access to the resource in the output folder being denied */ /* * public void testProblemCopyingResources_pr138171() { initialiseProject("PR138171"); * * File f=getProjectRelativePath("PR138171","res.txt"); Map m = new HashMap(); m.put("res.txt",f); * AjdeInteractionTestbed.MyProjectPropertiesAdapter .getInstance().setSourcePathResources(m); build("PR138171"); File f2 = * getProjectOutputRelativePath("PR138171","res.txt"); boolean successful = f2.setReadOnly(); * * alter("PR138171","inc1"); AjdeInteractionTestbed.MyProjectPropertiesAdapter .getInstance().setSourcePathResources(m); * build("PR138171"); List msgs = MyTaskListManager.getErrorMessages(); assertTrue("there should be one message but there are " * +(msgs==null?0:msgs.size())+":\n"+msgs,msgs!=null && msgs.size()==1); IMessage msg = (IMessage)msgs.get(0); String exp = * "unable to copy resource to output folder: 'res.txt'"; assertTrue("Expected message to include this text [" * +exp+"] but it does not: "+msg,msg.toString().indexOf(exp)!=-1); } */
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testSimpleChanges() { initialiseProject("P1"); build("P1"); alter("P1", "inc1"); build("P1"); checkCompileWeaveCount("P1", 1, -1); build("P1"); checkCompileWeaveCount("P1", 0, -1); } public void testAddingAnAspect() { initialiseProject("P1"); build("P1"); alter("P1", "inc1"); alter("P1", "inc2"); build("P1"); long timeTakenForFullBuildAndWeave = getTimeTakenForBuild("P1"); checkWasFullBuild(); checkCompileWeaveCount("P1", 5, 3); build("P1"); long timeTakenForSimpleIncBuild = getTimeTakenForBuild("P1"); assertTrue("Should not take longer for the trivial incremental build! first=" + timeTakenForFullBuildAndWeave + "ms second=" + timeTakenForSimpleIncBuild + "ms", timeTakenForSimpleIncBuild < timeTakenForFullBuildAndWeave);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} public void testBuildingTwoProjectsInTurns() { initialiseProject("P1"); initialiseProject("P2"); build("P1"); build("P2"); build("P1"); checkWasntFullBuild(); build("P2"); checkWasntFullBuild(); } public void testBuildingBrokenCode_pr240360() { initialiseProject("pr240360"); build("pr240360"); checkWasFullBuild(); checkCompileWeaveCount("pr240360", 5, 4); assertTrue("There should be an error:\n" + getErrorMessages("pr240360"), !getErrorMessages("pr240360").isEmpty()); Set s = getModelFor("pr240360").getRelationshipMap().getEntries(); int relmapLength = s.size(); String f = getWorkingDir().getAbsolutePath() + File.separatorChar + "pr240360" + File.separatorChar + "src" + File.separatorChar + "test" + File.separatorChar + "Error.java"; (new File(f)).delete(); build("pr240360"); checkWasntFullBuild(); checkCompileWeaveCount("pr240360", 0, 0); assertEquals(relmapLength, getModelFor("pr240360").getRelationshipMap().getEntries().size()); alter("pr240360", "inc1");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("pr240360"); checkWasntFullBuild(); checkCompileWeaveCount("pr240360", 1, 0); assertEquals(relmapLength, getModelFor("pr240360").getRelationshipMap().getEntries().size()); alter("pr240360", "inc2"); build("pr240360"); checkWasFullBuild(); checkCompileWeaveCount("pr240360", 6, 4); assertEquals(relmapLength, getModelFor("pr240360").getRelationshipMap().getEntries().size()); } public void testBrokenCodeCompilation() { initialiseProject("pr102733_1"); build("pr102733_1"); checkWasFullBuild(); checkCompileWeaveCount("pr102733_1", 1, 0); assertTrue("There should be an error:\n" + getErrorMessages("pr102733_1"), !getErrorMessages("pr102733_1").isEmpty()); build("pr102733_1"); checkCompileWeaveCount("pr102733_1", 0, 0); checkWasntFullBuild(); alter("pr102733_1", "inc1"); build("pr102733_1"); checkWasntFullBuild(); checkCompileWeaveCount("pr102733_1", 1, 1); assertTrue("There should be no errors:\n" + getErrorMessages("pr102733_1"), getErrorMessages("pr102733_1").isEmpty()); alter("pr102733_1", "inc2"); build("pr102733_1"); checkWasntFullBuild(); checkCompileWeaveCount("pr102733_1", 1, 0);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertTrue("There should be an error:\n" + getErrorMessages("pr102733_1"), !getErrorMessages("pr102733_1").isEmpty()); } public void testRefactoring_pr148285() { initialiseProject("PR148285"); build("PR148285"); alter("PR148285", "inc1"); build("PR148285"); } /** * In order for this next test to run, I had to move the weaver/world pair we keep in the AjBuildManager instance down into the * state object - this makes perfect sense - otherwise when reusing the state for another project we'd not be switching to the * right weaver/world for that project. */ public void testBuildingTwoProjectsMakingSmallChanges() { initialiseProject("P1"); initialiseProject("P2"); build("P1"); build("P2"); build("P1");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkWasntFullBuild(); build("P2"); checkWasntFullBuild(); alter("P1", "inc1"); alter("P1", "inc2"); build("P1"); checkWasFullBuild(); } public void testPr134371() { initialiseProject("PR134371"); build("PR134371"); alter("PR134371", "inc1"); build("PR134371"); assertTrue("There should be no exceptions handled:\n" + getErrorMessages("PR134371"), getErrorMessages("PR134371") .isEmpty()); } /** * This test is verifying the behaviour of the code that iterates through the type hierarchy for some type. There are two ways * to do it - an approach that grabs all the information up front or an approach that works through iterators and only processes * as much data as necessary to satisfy the caller. The latter approach could be much faster - especially if the matching * process typically looks for a method in the declaring type. */ public void xtestOptimizedMemberLookup() { String p = "oml"; initialiseProject(p); build(p); AjdeCoreBuildManager buildManager = getCompilerForProjectWithName(p).getBuildManager(); AjBuildManager ajBuildManager = buildManager.getAjBuildManager(); World w = ajBuildManager.getWorld();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkType(w, "com.foo.A"); checkType(w, "com.foo.B"); checkType(w, "com.foo.C"); checkType(w, "com.foo.CC"); checkType(w, "com.foo.CCC"); checkType(w, "com.foo.CCC"); checkType(w, "GenericMethodInterface"); checkType(w, "GenericInterfaceChain"); checkType(w, "java.lang.StringBuffer"); checkType(w, "com.sun.corba.se.impl.encoding.CDRInputObject"); checkTypeHierarchy(w, "com.sun.corba.se.impl.interceptors.PIHandlerImpl$RequestInfoStack", true); checkType(w, "com.sun.corba.se.impl.interceptors.PIHandlerImpl$RequestInfoStack"); checkType(w, "DeclareWarningAndInterfaceMethodCW"); checkType(w, "ICanGetSomething"); checkType(w, "B"); checkType(w, "C"); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
/** * Compare time taken to grab them all and look at them and iterator through them all. */ private void speedCheck(World w) { long stime = System.currentTimeMillis(); try {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
ZipFile zf = new ZipFile("c:/jvms/jdk1.6.0_06/jre/lib/rt.jar"); Enumeration e = zf.entries(); while (e.hasMoreElements()) { ZipEntry ze = (ZipEntry) e.nextElement(); String n = ze.getName(); if (n.endsWith(".class")) { n = n.replace('/', '.'); n = n.substring(0, n.length() - 6); ResolvedType typeA = w.resolve(n); assertFalse(typeA.isMissing()); List<ResolvedMember> viaIteratorList = getThemAll(typeA.getMethods(true, true)); viaIteratorList = getThemAll(typeA.getMethods(false, true)); } } zf.close(); } catch (IOException t) { t.printStackTrace(); fail(t.toString()); } long etime = System.currentTimeMillis(); System.out.println("Time taken for 'iterator' approach: " + (etime - stime) + "ms"); stime = System.currentTimeMillis(); try { ZipFile zf = new ZipFile("c:/jvms/jdk1.6.0_06/jre/lib/rt.jar"); Enumeration e = zf.entries(); while (e.hasMoreElements()) { ZipEntry ze = (ZipEntry) e.nextElement(); String n = ze.getName(); if (n.endsWith(".class")) { n = n.replace('/', '.');
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
n = n.substring(0, n.length() - 6); ResolvedType typeA = w.resolve(n); assertFalse(typeA.isMissing()); List<ResolvedMember> viaIteratorList = typeA.getMethodsWithoutIterator(false, true, true); viaIteratorList = typeA.getMethodsWithoutIterator(false, true, false); } } zf.close(); } catch (IOException t) { t.printStackTrace(); fail(t.toString()); } etime = System.currentTimeMillis(); System.out.println("Time taken for 'grab all up front' approach: " + (etime - stime) + "ms"); } private void checkType(World w, String name) { checkTypeHierarchy(w, name, true); checkTypeHierarchy(w, name, false); checkMethods(w, name, true); checkMethods(w, name, false); } private void checkMethods(World w, String name, boolean wantGenerics) { ResolvedType typeA = w.resolve(name); assertFalse(typeA.isMissing()); List<ResolvedMember> viaIteratorList = getThemAll(typeA.getMethods(wantGenerics, true)); List<ResolvedMember> directlyList = typeA.getMethodsWithoutIterator(true, true, wantGenerics); Collections.sort(viaIteratorList, new ResolvedMemberComparator()); Collections.sort(directlyList, new ResolvedMemberComparator()); compare(viaIteratorList, directlyList, name);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} private static class ResolvedMemberComparator implements Comparator<ResolvedMember> { public int compare(ResolvedMember o1, ResolvedMember o2) { return o1.toString().compareTo(o2.toString()); } } private void checkTypeHierarchy(World w, String name, boolean wantGenerics) { ResolvedType typeA = w.resolve(name); assertFalse(typeA.isMissing()); List<String> viaIteratorList = exhaustTypeIterator(typeA.getHierarchy(wantGenerics, false)); List<ResolvedType> typeDirectlyList = typeA.getHierarchyWithoutIterator(true, true, wantGenerics); assertFalse(viaIteratorList.isEmpty()); List<String> directlyList = new ArrayList<String>(); for (ResolvedType type : typeDirectlyList) { String n = type.getName(); if (!directlyList.contains(n)) { directlyList.add(n); } } Collections.sort(viaIteratorList); Collections.sort(directlyList); compareTypeLists(viaIteratorList, directlyList); } private void compare(List<ResolvedMember> viaIteratorList, List<ResolvedMember> directlyList, String typename) { assertEquals(typename + "\n" + toString(directlyList), typename + "\n" + toString(viaIteratorList)); } private void compareTypeLists(List<String> viaIteratorList, List<String> directlyList) { assertEquals(typeListToString(directlyList), typeListToString(viaIteratorList)); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
private String toString(List<ResolvedMember> list) { StringBuffer sb = new StringBuffer(); for (ResolvedMember m : list) { sb.append(m).append("\n"); } return sb.toString(); } private String typeListToString(List<String> list) { StringBuffer sb = new StringBuffer(); for (String m : list) { sb.append(m).append("\n"); } return sb.toString(); } private String toString(List<ResolvedMember> one, List<ResolvedMember> two, boolean shouldIncludeGenerics) { StringBuffer sb = new StringBuffer(); sb.append("Through iterator\n"); for (ResolvedMember m : one) { sb.append(m).append("\n"); } sb.append("Directly retrieved\n"); for (ResolvedMember m : one) { sb.append(m).append("\n"); } return sb.toString(); } private String typeListsToString(List<String> one, List<String> two) { StringBuffer sb = new StringBuffer(); sb.append("Through iterator\n"); for (String m : one) {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
sb.append(">" + m).append("\n"); } sb.append("Directly retrieved\n"); for (String m : one) { sb.append(">" + m).append("\n"); } return sb.toString(); } private List<ResolvedMember> getThemAll(Iterator<ResolvedMember> methods) { List<ResolvedMember> allOfThem = new ArrayList<ResolvedMember>(); while (methods.hasNext()) { allOfThem.add(methods.next()); } return allOfThem; } private List<String> exhaustTypeIterator(Iterator<ResolvedType> types) { List<String> allOfThem = new ArrayList<String>(); while (types.hasNext()) { allOfThem.add(types.next().getName()); } return allOfThem; } /** * Setup up two simple projects and build them in turn - check the structure model is right after each build */ public void testBuildingTwoProjectsAndVerifyingModel() { initialiseProject("P1"); initialiseProject("P2"); configureNonStandardCompileOptions("P1", "-Xset:minimalModel=false"); configureNonStandardCompileOptions("P2", "-Xset:minimalModel=false");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("P1"); checkForNode(getModelFor("P1"), "pkg", "C", true); build("P2"); checkForNode(getModelFor("P2"), "pkg", "C", false); build("P1"); checkForNode(getModelFor("P1"), "pkg", "C", true); build("P2"); checkForNode(getModelFor("P2"), "pkg", "C", false); } public void testBuildingTwoProjectsAndVerifyingStuff() { initialiseProject("P1"); initialiseProject("P2"); configureNonStandardCompileOptions("P1", "-Xset:minimalModel=false"); configureNonStandardCompileOptions("P2", "-Xset:minimalModel=false"); build("P1"); checkForNode(getModelFor("P1"), "pkg", "C", true); build("P2"); checkForNode(getModelFor("P2"), "pkg", "C", false); build("P1"); checkForNode(getModelFor("P1"), "pkg", "C", true); build("P2"); checkForNode(getModelFor("P2"), "pkg", "C", false); } /** * Complex. Here we are testing that a state object records structural changes since the last full build correctly. We build a * simple project from scratch - this will be a full build and so the structural changes since last build count should be 0. We * then alter a class, adding a new method and check structural changes is 1. */
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testStateManagement1() { File binDirectoryForP1 = new File(getFile("P1", "bin")); initialiseProject("P1"); build("P1"); AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirectoryForP1); assertTrue("There should be a state object for project P1", ajs != null); assertTrue( "Should be no structural changes as it was a full build but found: " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); alter("P1", "inc3"); build("P1"); checkWasntFullBuild(); ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("P1", "bin"))); assertTrue("There should be state for project P1", ajs != null); checkWasntFullBuild(); assertTrue( "Should be one structural changes as it was a full build but found: " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 1); } /** * Complex. Here we are testing that a state object records structural changes since the last full build correctly. We build a * simple project from scratch - this will be a full build and so the structural changes since last build count should be 0. We * then alter a class, changing body of a method, not the structure and check struc changes is still 0. */ public void testStateManagement2() { File binDirectoryForP1 = new File(getFile("P1", "bin")); initialiseProject("P1"); alter("P1", "inc3");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("P1"); AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirectoryForP1); assertTrue("There should be state for project P1", ajs != null); assertTrue("Should be no struc changes as its a full build: " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); alter("P1", "inc4"); build("P1"); checkWasntFullBuild(); ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("P1", "bin"))); assertTrue("There should be state for project P1", ajs != null); checkWasntFullBuild(); assertTrue("Shouldn't be any structural changes but there were " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); } /** * The C.java file modified in this test has an inner class - this means the inner class has a this$0 field and <init>(C) ctor * to watch out for when checking for structural changes * */ public void testStateManagement3() { File binDirForInterproject1 = new File(getFile("interprojectdeps1", "bin")); initialiseProject("interprojectdeps1"); build("interprojectdeps1"); AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirForInterproject1); assertTrue("There should be state for project P1", ajs != null); assertTrue("Should be no struc changes as its a full build: " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
alter("interprojectdeps1", "inc1"); build("interprojectdeps1"); checkWasntFullBuild(); ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("interprojectdeps1", "bin"))); assertTrue("There should be state for project interprojectdeps1", ajs != null); checkWasntFullBuild(); assertTrue("Shouldn't be any structural changes but there were " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); } /** * The C.java file modified in this test has an inner class - which has two ctors - this checks how they are mangled with an * instance of C. * */ public void testStateManagement4() { File binDirForInterproject2 = new File(getFile("interprojectdeps2", "bin")); initialiseProject("interprojectdeps2"); build("interprojectdeps2"); AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirForInterproject2); assertTrue("There should be state for project interprojectdeps2", ajs != null); assertTrue("Should be no struc changes as its a full build: " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); alter("interprojectdeps2", "inc1"); build("interprojectdeps2"); checkWasntFullBuild(); ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("interprojectdeps2", "bin"))); assertTrue("There should be state for project interprojectdeps1", ajs != null); checkWasntFullBuild(); assertTrue("Shouldn't be any structural changes but there were " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} /** * The C.java file modified in this test has an inner class - it has two ctors but also a reference to C.this in it - which will * give rise to an accessor being created in C * */ public void testStateManagement5() { File binDirForInterproject3 = new File(getFile("interprojectdeps3", "bin")); initialiseProject("interprojectdeps3"); build("interprojectdeps3"); AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(binDirForInterproject3); assertTrue("There should be state for project interprojectdeps3", ajs != null); assertTrue("Should be no struc changes as its a full build: " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); alter("interprojectdeps3", "inc1"); build("interprojectdeps3"); checkWasntFullBuild(); ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("interprojectdeps3", "bin"))); assertTrue("There should be state for project interprojectdeps1", ajs != null); checkWasntFullBuild(); assertTrue("Shouldn't be any structural changes but there were " + ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild() == 0); } /** * Now the most complex test. Create a dependancy between two projects. Building one may affect whether the other does an * incremental or full build. The structural information recorded in the state object should be getting used to control whether * a full build is necessary... */ public void testBuildingDependantProjects() { initialiseProject("P1");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
initialiseProject("P2"); configureNewProjectDependency("P2", "P1"); build("P1"); build("P2"); alter("P1", "inc1"); build("P1"); build("P2"); checkWasntFullBuild(); alter("P1", "inc3"); build("P1"); build("P2"); checkWasntFullBuild(); alter("P1", "inc4"); build("P1"); build("P2"); checkWasntFullBuild(); } public void testPr85132() { initialiseProject("PR85132"); build("PR85132"); alter("PR85132", "inc1"); build("PR85132"); } public void testPr125405() { initialiseProject("PR125405"); build("PR125405"); checkCompileWeaveCount("PR125405", 1, 1);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
alter("PR125405", "inc1"); build("PR125405"); checkForError("PR125405", "only abstract aspects can have type parameters"); alter("PR125405", "inc2"); build("PR125405"); checkCompileWeaveCount("PR125405", 1, 1); assertTrue("Should be no errors, but got " + getErrorMessages("PR125405"), getErrorMessages("PR125405").size() == 0); } public void testPr128618() { initialiseProject("PR128618_1"); initialiseProject("PR128618_2"); configureNewProjectDependency("PR128618_2", "PR128618_1"); assertTrue("there should be no warning messages before we start", getWarningMessages("PR128618_1").isEmpty()); assertTrue("there should be no warning messages before we start", getWarningMessages("PR128618_2").isEmpty()); build("PR128618_1"); build("PR128618_2"); List<IMessage> l = getWarningMessages("PR128618_2"); List<IMessage> warnings = getWarningMessages("PR128618_2"); assertTrue("Should be one warning, but there are #" + warnings.size(), warnings.size() == 1); IMessage msg = (getWarningMessages("PR128618_2").get(0)); assertEquals("warning should be against the FFDC.aj resource", "FFDC.aj", msg.getSourceLocation().getSourceFile().getName()); alter("PR128618_2", "inc1"); build("PR128618_2"); checkWasntFullBuild(); IMessage msg2 = (getWarningMessages("PR128618_2").get(0)); assertEquals("warning should be against the FFDC.aj resource", "FFDC.aj", msg2.getSourceLocation().getSourceFile() .getName()); assertFalse("a new warning message should have been generated", msg.equals(msg2));
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} public void testPr92837() { initialiseProject("PR92837"); build("PR92837"); alter("PR92837", "inc1"); build("PR92837"); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testPr117209() { try { initialiseProject("pr117209"); configureNonStandardCompileOptions("pr117209", "-proceedOnError"); build("pr117209"); checkCompileWeaveCount("pr117209", 6, 5); } finally { } } public void testPr114875() { if (System.getProperty("os.name", "").toLowerCase().equals("linux")) { return; } initialiseProject("pr114875"); build("pr114875"); alter("pr114875", "inc1"); build("pr114875"); checkWasFullBuild(); alter("pr114875", "inc2"); build("pr114875"); checkWasFullBuild(); } public void testPr117882() { initialiseProject("PR117882"); build("PR117882");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkWasFullBuild(); alter("PR117882", "inc1"); build("PR117882"); checkWasntFullBuild(); } public void testPr117882_2() { initialiseProject("PR117882_2"); build("PR117882_2"); checkWasFullBuild(); alter("PR117882_2", "inc1"); build("PR117882_2"); checkWasFullBuild(); } public void testPr115251() { initialiseProject("PR115251"); build("PR115251"); checkWasFullBuild(); alter("PR115251", "inc1");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("PR115251"); checkWasFullBuild(); } public void testPr220255_InfiniteBuildHasMember() { initialiseProject("pr220255"); configureNonStandardCompileOptions("pr220255", "-XhasMember"); build("pr220255"); checkWasFullBuild(); alter("pr220255", "inc1"); build("pr220255"); checkWasntFullBuild(); } public void testPr157054() { initialiseProject("PR157054"); configureNonStandardCompileOptions("PR157054", "-showWeaveInfo"); configureShowWeaveInfoMessages("PR157054", true); build("PR157054"); checkWasFullBuild(); List weaveMessages = getWeavingMessages("PR157054"); assertTrue("Should be two weaving messages but there are " + weaveMessages.size(), weaveMessages.size() == 2); alter("PR157054", "inc1"); build("PR157054"); weaveMessages = getWeavingMessages("PR157054"); assertTrue("Should be three weaving messages but there are " + weaveMessages.size(), weaveMessages.size() == 3); checkWasntFullBuild(); fullBuild("PR157054"); weaveMessages = getWeavingMessages("PR157054"); assertTrue("Should be three weaving messages but there are " + weaveMessages.size(), weaveMessages.size() == 3); } /**
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
* Checks we aren't leaking mungers across compiles (accumulating multiple instances of the same one that all do the same * thing). On the first compile the munger is added late on - so at the time we set the count it is still zero. On the * subsequent compiles we know about this extra one. */ public void testPr141956_IncrementallyCompilingAtAj() { initialiseProject("PR141956"); build("PR141956"); assertTrue("Should be zero but reports " + EclipseFactory.debug_mungerCount, EclipseFactory.debug_mungerCount == 0); alter("PR141956", "inc1"); build("PR141956"); assertTrue("Should be two but reports " + EclipseFactory.debug_mungerCount, EclipseFactory.debug_mungerCount == 2); alter("PR141956", "inc1"); build("PR141956"); assertTrue("Should be two but reports " + EclipseFactory.debug_mungerCount, EclipseFactory.debug_mungerCount == 2); alter("PR141956", "inc1"); build("PR141956"); assertTrue("Should be two but reports " + EclipseFactory.debug_mungerCount, EclipseFactory.debug_mungerCount == 2); alter("PR141956", "inc1"); build("PR141956"); assertTrue("Should be two but reports " + EclipseFactory.debug_mungerCount, EclipseFactory.debug_mungerCount == 2); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testPr121384() { initialiseProject("pr121384"); configureNonStandardCompileOptions("pr121384", "-showWeaveInfo"); build("pr121384"); checkWasFullBuild(); alter("pr121384", "inc1"); build("pr121384"); checkWasntFullBuild(); } /* * public void testPr111779() { super.VERBOSE=true; initialiseProject("PR111779"); build("PR111779"); alter("PR111779","inc1"); * build("PR111779"); } */ public void testPr93310_1() { initialiseProject("PR93310_1"); build("PR93310_1"); checkWasFullBuild(); String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR93310_1" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "C2.java"; (new File(fileC2)).delete(); alter("PR93310_1", "inc1"); build("PR93310_1"); checkWasFullBuild(); int l = AjdeInteractionTestbed.MyStateListener.detectedDeletions.size(); assertTrue("Expected one deleted file to be noticed, but detected: " + l, l == 1); String name = (String) AjdeInteractionTestbed.MyStateListener.detectedDeletions.get(0); assertTrue("Should end with C2.java but is " + name, name.endsWith("C2.java"));
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} public void testPr93310_2() { initialiseProject("PR93310_2"); build("PR93310_2"); checkWasFullBuild(); String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR93310_2" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "C2.java"; (new File(fileC2)).delete(); alter("PR93310_2", "inc1"); build("PR93310_2"); checkWasFullBuild(); int l = AjdeInteractionTestbed.MyStateListener.detectedDeletions.size(); assertTrue("Expected one deleted file to be noticed, but detected: " + l, l == 1); String name = (String) AjdeInteractionTestbed.MyStateListener.detectedDeletions.get(0); assertTrue("Should end with C2.java but is " + name, name.endsWith("C2.java")); } public void testPr113531() { initialiseProject("PR113531"); build("PR113531"); assertTrue("build should have compiled ok", getErrorMessages("PR113531").isEmpty()); alter("PR113531", "inc1"); build("PR113531"); assertEquals("error message should be 'foo cannot be resolved to a variable' ", "foo cannot be resolved to a variable", (getErrorMessages("PR113531").get(0)).getMessage()); alter("PR113531", "inc2"); build("PR113531");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertTrue("There should be no exceptions handled:\n" + getCompilerErrorMessages("PR113531"), getCompilerErrorMessages("PR113531").isEmpty()); assertEquals("error message should be 'foo cannot be resolved to a variable' ", "foo cannot be resolved to a variable", (getErrorMessages("PR113531").get(0)).getMessage()); } public void testPr119882() { initialiseProject("PR119882"); build("PR119882"); assertTrue("build should have compiled ok", getErrorMessages("PR119882").isEmpty()); alter("PR119882", "inc1"); build("PR119882"); List<IMessage> errors = getErrorMessages("PR119882"); assertTrue("Should be at least one error, but got none", errors.size() == 1); assertEquals("error message should be 'i cannot be resolved to a variable' ", "i cannot be resolved to a variable", ((IMessage) errors.get(0)).getMessage()); alter("PR119882", "inc2"); build("PR119882"); assertTrue("There should be no exceptions handled:\n" + getCompilerErrorMessages("PR119882"), getCompilerErrorMessages("PR119882").isEmpty()); assertEquals("error message should be 'i cannot be resolved to a variable' ", "i cannot be resolved to a variable", ((IMessage) errors.get(0)).getMessage()); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testPr112736() { initialiseProject("PR112736"); build("PR112736"); checkWasFullBuild(); String fileC2 = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR112736" + File.separatorChar + "src" + File.separatorChar + "pack" + File.separatorChar + "A.java"; (new File(fileC2)).delete(); alter("PR112736", "inc1"); build("PR112736"); checkWasFullBuild(); } /** * We have problems with multiple rewrites of a pointcut across incremental builds. */ public void testPr113257() { initialiseProject("PR113257"); build("PR113257"); alter("PR113257", "inc1"); build("PR113257"); checkWasFullBuild(); alter("PR113257", "inc1"); build("PR113257"); } public void testPr123612() { initialiseProject("PR123612"); build("PR123612"); alter("PR123612", "inc1"); build("PR123612"); checkWasFullBuild(); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testPr152257() { initialiseProject("PR152257"); configureNonStandardCompileOptions("PR152257", "-XnoInline"); build("PR152257"); List errors = getErrorMessages("PR152257"); assertTrue("Should be no warnings, but there are #" + errors.size(), errors.size() == 0); checkWasFullBuild(); alter("PR152257", "inc1"); build("PR152257"); errors = getErrorMessages("PR152257"); assertTrue("Should be no warnings, but there are #" + errors.size(), errors.size() == 0); checkWasntFullBuild(); } public void testPr128655() { initialiseProject("pr128655"); configureNonStandardCompileOptions("pr128655", "-showWeaveInfo"); configureShowWeaveInfoMessages("pr128655", true); build("pr128655"); List<IMessage> firstBuildMessages = getWeavingMessages("pr128655"); assertTrue("Should be at least one message about the dec @type, but there were none", firstBuildMessages.size() > 0); alter("pr128655", "inc1"); build("pr128655"); checkWasntFullBuild(); List<IMessage> secondBuildMessages = getWeavingMessages("pr128655"); for (int i = 0; i < firstBuildMessages.size(); i++) { IMessage m1 = (IMessage) firstBuildMessages.get(i); IMessage m2 = (IMessage) secondBuildMessages.get(i);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
if (!m1.toString().equals(m2.toString())) { System.err.println("Message during first build was: " + m1); System.err.println("Message during second build was: " + m1); fail("The two messages should be the same, but are not: \n" + m1 + "!=" + m2); } } } public void testPr128655_2() { initialiseProject("pr128655_2"); configureNonStandardCompileOptions("pr128655_2", "-showWeaveInfo"); configureShowWeaveInfoMessages("pr128655_2", true); build("pr128655_2"); List<IMessage> firstBuildMessages = getWeavingMessages("pr128655_2"); assertTrue("Should be at least one message about the dec @type, but there were none", firstBuildMessages.size() > 0); alter("pr128655_2", "inc1"); build("pr128655_2"); checkWasntFullBuild(); List<IMessage> secondBuildMessages = getWeavingMessages("pr128655_2"); for (int i = 0; i < firstBuildMessages.size(); i++) { IMessage m1 = (IMessage) firstBuildMessages.get(i); IMessage m2 = (IMessage) secondBuildMessages.get(i); if (!m1.toString().equals(m2.toString())) { System.err.println("Message during first build was: " + m1); System.err.println("Message during second build was: " + m1); fail("The two messages should be the same, but are not: \n" + m1 + "!=" + m2); } } }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testPr129163() { initialiseProject("PR129613"); build("PR129613"); alter("PR129613", "inc1"); build("PR129613"); assertTrue("There should be no exceptions handled:\n" + getCompilerErrorMessages("PR129613"), getCompilerErrorMessages("PR129613").isEmpty()); assertEquals("warning message should be 'no match for this type name: File [Xlint:invalidAbsoluteTypeName]' ", "no match for this type name: File [Xlint:invalidAbsoluteTypeName]", (getWarningMessages("PR129613").get(0)).getMessage()); } public void testPr129163_2() { initialiseProject("pr129163_2"); build("pr129163_2"); checkWasFullBuild(); alter("pr129163_2", "inc1"); build("pr129163_2"); checkWasntFullBuild(); }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testIncrementalIntelligence_Scenario01() { AjdeInteractionTestbed.VERBOSE = true; initialiseProject("Project1"); initialiseProject("Project2"); configureNewProjectDependency("Project2", "Project1"); build("Project1"); build("Project2"); alter("Project1", "inc1"); build("Project1"); build("Project2"); checkWasntFullBuild(); alter("Project1", "inc2"); build("Project1"); build("Project2"); checkWasntFullBuild(); alter("Project1", "inc3"); build("Project1"); setNextChangeResponse("Project2", ICompilerConfiguration.EVERYTHING); build("Project2"); checkWasntFullBuild(); checkCompileWeaveCount("Project2", 1, 1); checkCompiled("Project2", "ClassAExtender"); alter("Project2", "inc1"); build("Project1"); build("Project2"); checkWasntFullBuild(); alter("Project1", "inc4");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("Project1"); setNextChangeResponse("Project2", ICompilerConfiguration.EVERYTHING); build("Project2"); checkWasntFullBuild(); checkCompileWeaveCount("Project2", 2, 2); checkCompiled("Project2", "ClassAExtenderExtender"); } private void checkCompiled(String projectName, String typeNameSubstring) { List files = getCompiledFiles(projectName); boolean found = false; for (Iterator iterator = files.iterator(); iterator.hasNext();) { String object = (String) iterator.next(); if (object.indexOf(typeNameSubstring) != -1) { found = true; } } assertTrue("Did not find '" + typeNameSubstring + "' in list of compiled files", found); } /* * public void testPrReducingDependentBuilds_001_221427() { AjdeInteractionTestbed.VERBOSE=true; * IncrementalStateManager.debugIncrementalStates=true; initialiseProject("P221427_1"); initialiseProject("P221427_2"); * configureNewProjectDependency("P221427_2","P221427_1"); * * build("P221427_1"); build("P221427_2"); alter("P221427_1","inc1"); rename private class in super project * MyStateListener.reset(); build("P221427_1"); build("P221427_2");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
* * AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("P221427_1","bin"))); * assertTrue("There should be state for project P221427_1",ajs!=null); * System.out.println(MyStateListener.getInstance().getDecisions()); checkWasntFullBuild(); * assertTrue("Should be one structural change but there were "+ ajs.getNumberOfStructuralChangesSinceLastFullBuild(), * ajs.getNumberOfStructuralChangesSinceLastFullBuild()==1); * * } * * Case002: changing a class to final that is extended in a dependent project public void * testPrReducingDependentBuilds_002_221427() { AjdeInteractionTestbed.VERBOSE=true; * IncrementalStateManager.debugIncrementalStates=true; initialiseProject("P221427_3"); initialiseProject("P221427_4"); * configureNewProjectDependency("P221427_4","P221427_3"); * * build("P221427_3"); build("P221427_4"); build OK, type in super project is non-final alter("P221427_3","inc1"); change * class declaration in super-project to final MyStateListener.reset(); build("P221427_3"); build("P221427_4"); build FAIL, * type in super project is now final * * AjState ajs = IncrementalStateManager.findStateManagingOutputLocation(new File(getFile("P221427_3","bin"))); * assertTrue("There should be state for project P221427_3",ajs!=null); * System.out.println(MyStateListener.getInstance().getDecisions()); * * List errors = getErrorMessages("P221427_4"); if (errors.size()!=1) { if (errors.size()==0) * fail("Expected error about not being able to extend final class"); for (Iterator iterator = errors.iterator(); * iterator.hasNext();) { Object object = (Object) iterator.next(); System.out.println(object); } * fail("Expected 1 error but got "+errors.size()); } assertTrue("Shouldn't be one structural change but there were "+ * ajs.getNumberOfStructuralChangesSinceLastFullBuild(), ajs.getNumberOfStructuralChangesSinceLastFullBuild()==1); * * } */
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
public void testPr129163_3() { initialiseProject("PR129163_4"); build("PR129163_4"); checkWasFullBuild(); initialiseProject("PR129163_3"); configureNewProjectDependency("PR129163_3", "PR129163_4"); build("PR129163_3"); checkWasFullBuild(); alter("PR129163_4", "inc1"); build("PR129163_4"); checkWasntFullBuild(); alter("PR129163_3", "inc1"); build("PR129163_3"); checkWasntFullBuild();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} public void testPr133117() { initialiseProject("PR133117"); configureNonStandardCompileOptions("PR133117", "-Xlint:warning"); build("PR133117"); assertTrue("There should only be one xlint warning message reported:\n" + getWarningMessages("PR133117"), getWarningMessages("PR133117").size() == 1); alter("PR133117", "inc1"); build("PR133117"); List warnings = getWarningMessages("PR133117"); List noGuardWarnings = new ArrayList(); for (Iterator iter = warnings.iterator(); iter.hasNext();) { IMessage element = (IMessage) iter.next(); if (element.getMessage().indexOf("Xlint:noGuardForLazyTjp") != -1) { noGuardWarnings.add(element); } } assertTrue("There should only be two Xlint:noGuardForLazyTjp warning message reported:\n" + noGuardWarnings, noGuardWarnings.size() == 2); } public void testPr131505() { initialiseProject("PR131505"); configureNonStandardCompileOptions("PR131505", "-outxml"); build("PR131505"); checkWasFullBuild(); String outputDir = getWorkingDir().getAbsolutePath() + File.separatorChar + "PR131505" + File.separatorChar + "bin";
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkXMLAspectCount("PR131505", "", 0, outputDir); alter("PR131505", "inc1"); build("PR131505"); checkWasFullBuild(); checkXMLAspectCount("PR131505", "", 1, outputDir); checkXMLAspectCount("PR131505", "A", 1, outputDir); alter("PR131505", "inc2"); build("PR131505"); checkWasntFullBuild(); checkXMLAspectCount("PR131505", "", 1, outputDir); checkXMLAspectCount("PR131505", "A", 1, outputDir); alter("PR131505", "inc3"); build("PR131505"); checkWasFullBuild(); checkXMLAspectCount("PR131505", "", 2, outputDir); checkXMLAspectCount("PR131505", "A1", 1, outputDir); checkXMLAspectCount("PR131505", "A", 1, outputDir); File a1 = new File(getWorkingDir().getAbsolutePath() + File.separatorChar + "PR131505" + File.separatorChar + "A1.aj"); a1.delete(); build("PR131505"); checkWasFullBuild(); checkXMLAspectCount("PR131505", "", 1, outputDir);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkXMLAspectCount("PR131505", "A1", 0, outputDir); checkXMLAspectCount("PR131505", "A", 1, outputDir); alter("PR131505", "inc4"); build("PR131505"); checkWasFullBuild(); checkXMLAspectCount("PR131505", "", 2, outputDir); checkXMLAspectCount("PR131505", "A", 1, outputDir); checkXMLAspectCount("PR131505", "pkg.A", 1, outputDir); } public void testPr136585() { initialiseProject("PR136585"); build("PR136585"); alter("PR136585", "inc1"); build("PR136585"); assertTrue("There should be no errors reported:\n" + getErrorMessages("PR136585"), getErrorMessages("PR136585").isEmpty()); } public void testPr133532() { initialiseProject("PR133532"); build("PR133532"); alter("PR133532", "inc1"); build("PR133532"); alter("PR133532", "inc2"); build("PR133532"); assertTrue("There should be no errors reported:\n" + getErrorMessages("PR133532"), getErrorMessages("PR133532").isEmpty()); } public void testPr133532_2() { initialiseProject("pr133532_2"); build("pr133532_2");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
alter("pr133532_2", "inc2"); build("pr133532_2"); assertTrue("There should be no errors reported:\n" + getErrorMessages("pr133532_2"), getErrorMessages("pr133532_2") .isEmpty()); String decisions = AjdeInteractionTestbed.MyStateListener.getDecisions(); String expect = "Need to recompile 'A.aj'"; assertTrue("Couldn't find build decision: '" + expect + "' in the list of decisions made:\n" + decisions, decisions.indexOf(expect) != -1); } public void testPr133532_3() { initialiseProject("PR133532_3"); build("PR133532_3"); alter("PR133532_3", "inc1"); build("PR133532_3"); assertTrue("There should be no errors reported:\n" + getErrorMessages("PR133532_3"), getErrorMessages("PR133532_3") .isEmpty()); } public void testPr134541() { initialiseProject("PR134541"); build("PR134541"); assertEquals("[Xlint:adviceDidNotMatch] should be associated with line 5", 5, (getWarningMessages("PR134541").get(0)) .getSourceLocation().getLine()); alter("PR134541", "inc1"); build("PR134541"); checkWasntFullBuild();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertEquals("[Xlint:adviceDidNotMatch] should now be associated with line 7", 7, (getWarningMessages("PR134541").get(0)) .getSourceLocation().getLine()); } public void testJDTLikeHandleProviderWithLstFile_pr141730() { initialiseProject("JDTLikeHandleProvider"); build("JDTLikeHandleProvider"); IHierarchy top = getModelFor("JDTLikeHandleProvider").getHierarchy(); IProgramElement pe = top.findElementForType("pkg", "A"); String expectedHandle = "=JDTLikeHandleProvider<pkg*A.aj'A"; assertEquals("expected handle to be " + expectedHandle + ", but found " + pe.getHandleIdentifier(), expectedHandle, pe.getHandleIdentifier()); } public void testMovingAdviceDoesntChangeHandles_pr141730() { initialiseProject("JDTLikeHandleProvider"); build("JDTLikeHandleProvider");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkWasFullBuild(); IHierarchy top = getModelFor("JDTLikeHandleProvider").getHierarchy(); IProgramElement pe = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.ADVICE, "before(): <anonymous pointcut>"); alter("JDTLikeHandleProvider", "inc1"); build("JDTLikeHandleProvider"); checkWasntFullBuild(); IHierarchy top2 = getModelFor("JDTLikeHandleProvider").getHierarchy(); IProgramElement pe2 = top .findElementForLabel(top2.getRoot(), IProgramElement.Kind.ADVICE, "before(): <anonymous pointcut>"); assertEquals("expected advice to be on line " + pe.getSourceLocation().getLine() + 1 + " but was on " + pe2.getSourceLocation().getLine(), pe.getSourceLocation().getLine() + 1, pe2.getSourceLocation().getLine()); assertEquals( "expected advice to have handle " + pe.getHandleIdentifier() + " but found handle " + pe2.getHandleIdentifier(), pe.getHandleIdentifier(), pe2.getHandleIdentifier()); } public void testSwappingAdviceAndHandles_pr141730() { initialiseProject("JDTLikeHandleProvider"); build("JDTLikeHandleProvider"); IHierarchy top = getModelFor("JDTLikeHandleProvider").getHierarchy(); IProgramElement call = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.ADVICE, "after(): callPCD.."); IProgramElement exec = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.ADVICE, "after(): execPCD..");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
alter("JDTLikeHandleProvider", "inc2"); build("JDTLikeHandleProvider"); checkWasFullBuild(); IHierarchy top2 = getModelFor("JDTLikeHandleProvider").getHierarchy(); IProgramElement newCall = top2.findElementForLabel(top2.getRoot(), IProgramElement.Kind.ADVICE, "after(): callPCD.."); IProgramElement newExec = top2.findElementForLabel(top2.getRoot(), IProgramElement.Kind.ADVICE, "after(): execPCD.."); assertEquals("after swapping places, expected 'after(): callPCD..' " + "to be on line " + newExec.getSourceLocation().getLine() + " but was on line " + call.getSourceLocation().getLine(), newExec .getSourceLocation().getLine(), call.getSourceLocation().getLine()); assertEquals("after swapping places, expected 'after(): callPCD..' " + "to have handle " + exec.getHandleIdentifier() + " (because was full build) but had " + newCall.getHandleIdentifier(), exec.getHandleIdentifier(), newCall.getHandleIdentifier()); } public void testInitializerCountForJDTLikeHandleProvider_pr141730() { initialiseProject("JDTLikeHandleProvider"); build("JDTLikeHandleProvider"); String expected = "=JDTLikeHandleProvider<pkg*A.aj[C|1"; IHierarchy top = getModelFor("JDTLikeHandleProvider").getHierarchy();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
IProgramElement init = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.INITIALIZER, "..."); assertEquals("expected initializers handle to be " + expected + "," + " but found " + init.getHandleIdentifier(true), expected, init.getHandleIdentifier(true)); alter("JDTLikeHandleProvider", "inc2"); build("JDTLikeHandleProvider"); checkWasFullBuild(); IHierarchy top2 = getModelFor("JDTLikeHandleProvider").getHierarchy(); IProgramElement init2 = top2.findElementForLabel(top2.getRoot(), IProgramElement.Kind.INITIALIZER, "..."); assertEquals( "expected initializers handle to still be " + expected + "," + " but found " + init2.getHandleIdentifier(true), expected, init2.getHandleIdentifier(true)); } public void testPr134471_IncrementalCompilationAndModelUpdates() { try { initialiseProject("PR134471"); configureNonStandardCompileOptions("PR134471", "-showWeaveInfo -emacssym"); configureShowWeaveInfoMessages("PR134471", true); build("PR134471"); AsmManager model = getModelFor("PR134471"); IProgramElement nodeForTypeA = checkForNode(model, "pkg", "A", true); IProgramElement nodeForAdvice = findAdvice(nodeForTypeA); List relatedElements = getRelatedElements(model, nodeForAdvice, 1);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
IProgramElement programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true))); int line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7); alter("PR134471", "inc1"); build("PR134471"); model = getModelFor("PR134471"); nodeForTypeA = checkForNode(model, "pkg", "A", true); nodeForAdvice = findAdvice(nodeForTypeA); relatedElements = getRelatedElements(model, nodeForAdvice, 1); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true))); line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7); } finally { } } public void testPr134471_MovingAdvice() { initialiseProject("PR134471_2"); configureNonStandardCompileOptions("PR134471_2", "-showWeaveInfo -emacssym"); configureShowWeaveInfoMessages("PR134471_2", true);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("PR134471_2"); AsmManager model = getModelFor("PR134471_2"); IProgramElement programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true))); int line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7); alter("PR134471_2", "inc1"); build("PR134471_2"); model = getModelFor("PR134471_2"); checkWasntFullBuild(); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true))); line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 11 - but is at line " + line, line == 11); } public void testAddingAndRemovingDecwWithStructureModel() { initialiseProject("P3"); build("P3"); alter("P3", "inc1"); build("P3"); assertTrue("There should be no exceptions handled:\n" + getCompilerErrorMessages("P3"), getCompilerErrorMessages("P3") .isEmpty()); alter("P3", "inc2"); build("P3");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertTrue("There should be no exceptions handled:\n" + getCompilerErrorMessages("P3"), getCompilerErrorMessages("P3") .isEmpty()); } public void testPr134471_IncrementallyRecompilingTheAffectedClass() { try { initialiseProject("PR134471"); configureNonStandardCompileOptions("PR134471", "-showWeaveInfo -emacssym"); configureShowWeaveInfoMessages("PR134471", true); build("PR134471"); AsmManager model = getModelFor("PR134471"); IProgramElement programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true))); int line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7); alter("PR134471", "inc1"); build("PR134471"); model = getModelFor("PR134471"); IProgramElement nodeForTypeA = checkForNode(model, "pkg", "A", true); IProgramElement nodeForAdvice = findAdvice(nodeForTypeA); List<String> relatedElements = getRelatedElements(model, nodeForAdvice, 1); alter("PR134471", "inc2"); build("PR134471");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkWasntFullBuild(); model = getModelFor("PR134471"); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true))); line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7); } finally { } } public void testPr134471_IncrementallyRecompilingAspectContainingDeclare() { initialiseProject("PR134471_3"); configureNonStandardCompileOptions("PR134471_3", "-showWeaveInfo -emacssym"); configureShowWeaveInfoMessages("PR134471_3", true); build("PR134471_3"); checkWasFullBuild(); AsmManager model = getModelFor("PR134471_3"); IProgramElement programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); int line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 10 - but is at line " + line, line == 10); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 6)); line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
alter("PR134471_3", "inc1"); build("PR134471_3"); model = getModelFor("PR134471_3"); checkWasntFullBuild(); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 12 - but is at line " + line, line == 12); alter("PR134471_3", "inc2"); build("PR134471_3"); checkWasntFullBuild(); model = getModelFor("PR134471_3"); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 12 - but is at line " + line, line == 12); } public void testPr134471_IncrementallyRecompilingTheClassAffectedByDeclare() { initialiseProject("PR134471_3"); configureNonStandardCompileOptions("PR134471_3", "-showWeaveInfo -emacssym"); configureShowWeaveInfoMessages("PR134471_3", true); build("PR134471_3"); checkWasFullBuild();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
AsmManager model = getModelFor("PR134471_3"); IProgramElement programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); int line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 10 - but is at line " + line, line == 10); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 6)); line = programElement.getSourceLocation().getLine(); assertTrue("advice should be at line 7 - but is at line " + line, line == 7); alter("PR134471_3", "inc1"); build("PR134471_3"); model = getModelFor("PR134471_3"); checkWasntFullBuild(); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 12 - but is at line " + line, line == 12); alter("PR134471_3", "inc2"); build("PR134471_3"); checkWasntFullBuild(); model = getModelFor("PR134471_3");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 12 - but is at line " + line, line == 12); alter("PR134471_3", "inc3"); build("PR134471_3"); checkWasntFullBuild(); programElement = getFirstRelatedElement(model, findCode(checkForNode(model, "pkg", "C", true), 7)); line = programElement.getSourceLocation().getLine(); assertTrue("declare warning should be at line 12 - but is at line " + line, line == 12); } public void testDontLoseXlintWarnings_pr141556() { initialiseProject("PR141556"); configureNonStandardCompileOptions("PR141556", "-Xlint:warning"); build("PR141556"); checkWasFullBuild(); String warningMessage = "can not build thisJoinPoint " + "lazily for this advice since it has no suitable guard " + "[Xlint:noGuardForLazyTjp]"; assertEquals("warning message should be '" + warningMessage + "'", warningMessage, (getWarningMessages("PR141556").get(0)).getMessage()); alter("PR141556", "inc1"); alter("PR141556", "inc2"); build("PR141556"); checkWasntFullBuild();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertTrue("there should still be a warning message ", !getWarningMessages("PR141556").isEmpty()); assertEquals("warning message should be '" + warningMessage + "'", warningMessage, (getWarningMessages("PR141556").get(0)).getMessage()); } public void testAdviceDidNotMatch_pr152589() { initialiseProject("PR152589"); build("PR152589"); List warnings = getWarningMessages("PR152589"); assertTrue("There should be no warnings:\n" + warnings, warnings.isEmpty()); alter("PR152589", "inc1"); build("PR152589"); checkWasntFullBuild(); warnings = getWarningMessages("PR152589"); assertTrue("There should be no warnings after adding a whitespace:\n" + warnings, warnings.isEmpty()); } public void testNoFullBuildOnChangeInSysOutInAdviceBody_pr154054() { initialiseProject("PR154054"); build("PR154054"); alter("PR154054", "inc1"); build("PR154054"); checkWasntFullBuild(); } public void testShouldFullBuildOnExceptionChange_pr154054() { initialiseProject("PR154054_2"); build("PR154054_2"); alter("PR154054_2", "inc1");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("PR154054_2"); checkWasFullBuild(); } public void testPR158573() { initialiseProject("PR158573"); build("PR158573"); List warnings = getWarningMessages("PR158573"); assertTrue("There should be no warnings:\n" + warnings, warnings.isEmpty()); alter("PR158573", "inc1"); build("PR158573"); checkWasntFullBuild(); warnings = getWarningMessages("PR158573"); assertTrue("There should be no warnings after changing the value of a " + "variable:\n" + warnings, warnings.isEmpty()); } /** * If the user has specified that they want Java 6 compliance and kept the default classfile and source file level settings * (also 6.0) then expect an error saying that we don't support java 6. */ public void testPR164384_1() { initialiseProject("PR164384"); Hashtable<String, String> javaOptions = new Hashtable<String, String>(); javaOptions.put("org.eclipse.jdt.core.compiler.compliance", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.source", "1.6"); configureJavaOptionsMap("PR164384", javaOptions);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build("PR164384"); List<IMessage> errors = getErrorMessages("PR164384"); if (getCompilerForProjectWithName("PR164384").isJava6Compatible()) { assertTrue("There should be no errors:\n" + errors, errors.isEmpty()); } else { String expectedError = "Java 6.0 compliance level is unsupported"; String found = ((IMessage) errors.get(0)).getMessage(); assertEquals("Expected 'Java 6.0 compliance level is unsupported'" + " error message but found " + found, expectedError, found); assertTrue("expected there to be more than the one compliance level" + " error but only found that one", errors.size() > 1); } } /** * If the user has specified that they want Java 6 compliance and selected classfile and source file level settings to be 5.0 * then expect an error saying that we don't support java 6. */ public void testPR164384_2() { initialiseProject("PR164384"); Hashtable<String, String> javaOptions = new Hashtable<String, String>(); javaOptions.put("org.eclipse.jdt.core.compiler.compliance", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", "1.5"); javaOptions.put("org.eclipse.jdt.core.compiler.source", "1.5"); configureJavaOptionsMap("PR164384", javaOptions); build("PR164384"); List<IMessage> errors = getErrorMessages("PR164384"); if (getCompilerForProjectWithName("PR164384").isJava6Compatible()) {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
assertTrue("There should be no errors:\n" + errors, errors.isEmpty()); } else { String expectedError = "Java 6.0 compliance level is unsupported"; String found = ((IMessage) errors.get(0)).getMessage(); assertEquals("Expected 'Java 6.0 compliance level is unsupported'" + " error message but found " + found, expectedError, found); assertTrue("expected there to be more than the one compliance level" + " error but only found that one", errors.size() > 1); } } /** * If the user has specified that they want Java 6 compliance and set the classfile level to be 6.0 and source file level to be * 5.0 then expect an error saying that we don't support java 6. */ public void testPR164384_3() { initialiseProject("PR164384"); Hashtable<String, String> javaOptions = new Hashtable<String, String>(); javaOptions.put("org.eclipse.jdt.core.compiler.compliance", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.source", "1.5"); configureJavaOptionsMap("PR164384", javaOptions); build("PR164384"); List errors = getErrorMessages("PR164384"); if (getCompilerForProjectWithName("PR164384").isJava6Compatible()) { assertTrue("There should be no errros:\n" + errors, errors.isEmpty()); } else { String expectedError = "Java 6.0 compliance level is unsupported";
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
String found = ((IMessage) errors.get(0)).getMessage(); assertEquals("Expected 'Java 6.0 compliance level is unsupported'" + " error message but found " + found, expectedError, found); assertTrue("expected there to be more than the one compliance level" + " error but only found that one", errors.size() > 1); } } public void testPr168840() throws Exception { initialiseProject("inpathTesting"); String inpathTestingDir = getWorkingDir() + File.separator + "inpathTesting"; String inpathDir = inpathTestingDir + File.separator + "injarBin" + File.separator + "pkg"; String expectedOutputDir = inpathTestingDir + File.separator + "bin"; File f = new File(inpathDir); Set<File> s = new HashSet<File>(); s.add(f); configureInPath("inpathTesting", s); build("inpathTesting"); List<IMessage> warnings = getWarningMessages("inpathTesting"); assertTrue("Expected there to be one warning message but found " + warnings.size() + ": " + warnings, warnings.size() == 1); File from = new File(testdataSrcDir + File.separatorChar + "inpathTesting" + File.separatorChar + "newInpathClass" + File.separatorChar + "InpathClass.class"); File destination = new File(inpathDir + File.separatorChar + "InpathClass.class"); FileUtil.copyFile(from, destination); build("inpathTesting");
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
checkWasntFullBuild(); warnings = getWarningMessages("inpathTesting"); assertTrue("Expected there to be two warning message but found " + warnings.size() + ": " + warnings, warnings.size() == 2); } public void testInpathHandles_271201() throws Exception { AjdeInteractionTestbed.VERBOSE = true; String p = "inpathHandles"; initialiseProject(p); String inpathTestingDir = getWorkingDir() + File.separator + "inpathHandles"; String inpathDir = inpathTestingDir + File.separator + "binpath"; System.out.println(inpathDir); File f = new File(inpathDir); Set<File> s = new HashSet<File>(); s.add(f); configureInPath(p, s); build(p); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); dumptree(root, 0); PrintWriter pw = new PrintWriter(System.out); try { getModelFor(p).dumprels(pw); pw.flush(); } catch (Exception e) {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} List<IRelationship> l = getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code"); assertNotNull(l); } public void testInpathHandles_IncrementalCompilation_271201() throws Exception { AjdeInteractionTestbed.VERBOSE = true; String p = "inpathHandles"; initialiseProject(p); String inpathTestingDir = getWorkingDir() + File.separator + "inpathHandles"; String inpathDir = inpathTestingDir + File.separator + "binpath"; File f = new File(inpathDir); Set<File> s = new HashSet<File>(); s.add(f); configureInPath(p, s); build(p); assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code")); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); alter(p, "inc1"); build(p); assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code")); assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles<p{B.java[B")); String fileB = getWorkingDir().getAbsolutePath() + File.separatorChar + "inpathHandles" + File.separatorChar + "src" + File.separatorChar + "p" + File.separatorChar + "B.java"; (new File(fileB)).delete();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
build(p); assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code")); assertNull(getModelFor(p).getRelationshipMap().get("=inpathHandles<p{B.java[B")); } public void testInpathHandles_WithInpathMap_271201() throws Exception { AjdeInteractionTestbed.VERBOSE = true; String p = "inpathHandles"; initialiseProject(p); String inpathTestingDir = getWorkingDir() + File.separator + "inpathHandles"; String inpathDir = inpathTestingDir + File.separator + "binpath"; System.out.println(inpathDir); File f = new File(inpathDir); Set<File> s = new HashSet<File>(); s.add(f); Map<File, String> m = new HashMap<File, String>(); m.put(f, "wibble"); configureOutputLocationManager(p, new TestOutputLocationManager(getProjectRelativePath(p, ".").toString(), m)); configureInPath(p, s); build(p); IProgramElement root = getModelFor(p).getHierarchy().getRoot(); dumptree(root, 0); PrintWriter pw = new PrintWriter(System.out); try { getModelFor(p).dumprels(pw); pw.flush(); } catch (Exception e) {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} List<IRelationship> l = getModelFor(p).getRelationshipMap().get("=inpathHandles/;wibble<codep(Code.class[Code"); assertNotNull(l); } private void printModelAndRelationships(String p) { IProgramElement root = getModelFor(p).getHierarchy().getRoot(); dumptree(root, 0); PrintWriter pw = new PrintWriter(System.out); try { getModelFor(p).dumprels(pw); pw.flush(); } catch (Exception e) { } } public void testInpathHandles_IncrementalCompilation_RemovingInpathEntries_271201() throws Exception { AjdeInteractionTestbed.VERBOSE = true; String p = "inpathHandles2"; initialiseProject(p); String inpathDir = getWorkingDir() + File.separator + "inpathHandles2" + File.separator + "binpath"; File f = new File(inpathDir); configureInPath(p, f); build(p); assertNotNull(getModelFor(p).getRelationshipMap().get("=inpathHandles2/;<codep(A.class[A")); assertTrue(new File(inpathDir, "codep" + File.separator + "A.class").delete()); setNextChangeResponse(p, ICompilerConfiguration.EVERYTHING); build(p);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
} /** * Retrieve program elements related to this one regardless of the relationship. A JUnit assertion is made that the number that * the 'expected' number are found.
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
* * @param programElement Program element whose related elements are to be found * @param expected the number of expected related elements */ private List<String> getRelatedElements(AsmManager model, IProgramElement programElement, int expected) { List<String> relatedElements = getRelatedElements(model, programElement); StringBuffer debugString = new StringBuffer(); if (relatedElements != null) { for (String element : relatedElements) { debugString.append(model.getHierarchy().findElementForHandle(element).toLabelString()).append("\n"); } } assertTrue("Should be " + expected + " element" + (expected > 1 ? "s" : "") + " related to this one '" + programElement + "' but found :\n " + debugString, relatedElements != null && relatedElements.size() == 1); return relatedElements; } private IProgramElement getFirstRelatedElement(AsmManager model, IProgramElement programElement) { List<String> rels = getRelatedElements(model, programElement, 1); return model.getHierarchy().findElementForHandle((String) rels.get(0)); } private List<String> getRelatedElements(AsmManager model, IProgramElement advice) { List<String> output = null; IRelationshipMap map = model.getRelationshipMap(); List<IRelationship> rels = map.get(advice); if (rels == null) { fail("Did not find any related elements!"); } for (Iterator<IRelationship> iter = rels.iterator(); iter.hasNext();) { IRelationship element = iter.next(); List<String> targets = element.getTargets();
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
if (output == null) { output = new ArrayList<String>(); } output.addAll(targets); } return output; } private IProgramElement findAdvice(IProgramElement ipe) { return findAdvice(ipe, 1); } private IProgramElement findAdvice(IProgramElement ipe, int whichOne) { if (ipe.getKind() == IProgramElement.Kind.ADVICE) { whichOne = whichOne - 1; if (whichOne == 0) { return ipe; } } List kids = ipe.getChildren(); for (Iterator iter = kids.iterator(); iter.hasNext();) { IProgramElement kid = (IProgramElement) iter.next(); IProgramElement found = findAdvice(kid, whichOne); if (found != null) { return found; } } return null; } /** * Finds the first 'code' program element below the element supplied - will return null if there aren't any */
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
private IProgramElement findCode(IProgramElement ipe) { return findCode(ipe, -1); } /** * Searches a hierarchy of program elements for a 'code' element at the specified line number, a line number of -1 means just * return the first one you find */ private IProgramElement findCode(IProgramElement ipe, int linenumber) { if (ipe.getKind() == IProgramElement.Kind.CODE) { if (linenumber == -1 || ipe.getSourceLocation().getLine() == linenumber) { return ipe; } } List<IProgramElement> kids = ipe.getChildren(); for (Iterator iter = kids.iterator(); iter.hasNext();) { IProgramElement kid = (IProgramElement) iter.next(); IProgramElement found = findCode(kid, linenumber); if (found != null) { return found; } } return null; } private IProgramElement checkForNode(AsmManager model, String packageName, String typeName, boolean shouldBeFound) { IProgramElement ipe = model.getHierarchy().findElementForType(packageName, typeName);
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
if (shouldBeFound) { if (ipe == null) { printModel(model); } assertTrue("Should have been able to find '" + packageName + "." + typeName + "' in the asm", ipe != null); } else { if (ipe != null) { printModel(model); } assertTrue("Should have NOT been able to find '" + packageName + "." + typeName + "' in the asm", ipe == null); } return ipe; } private void printModel(AsmManager model) { try { AsmManager.dumptree(model.getHierarchy().getRoot(), 0); } catch (IOException e) { e.printStackTrace(); } } private static void log(String msg) { if (VERBOSE) { System.out.println(msg); } } protected File getProjectOutputRelativePath(String p, String filename) { File projDir = new File(getWorkingDir(), p); return new File(projDir, "bin" + File.separator + filename); } }
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
/* ******************************************************************* * Copyright (c) 2008 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 * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Andy Clement * ******************************************************************/ package org.aspectj.weaver.bcel.asm; import org.aspectj.weaver.ResolvedType; import org.aspectj.weaver.UnresolvedType; import org.aspectj.weaver.World; import aj.org.objectweb.asm.*;
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
/** * Uses asm to add the stack map attribute to methods in a class. The class is passed in as pure byte data and then a reader/writer * process it. The writer is wired into the world so that types can be resolved and getCommonSuperClass() can be implemented without * class loading using the context class loader. * * It is important that the constant pool is preserved here and asm does not try to remove unused entries. That is because some * entries are refered to from classfile attributes. Asm cannot see into these attributes so does not realise the constant pool * entries are in use. In order to ensure the copying of cp occurs, we use the variant super constructor call in AspectJConnectClassWriter * that passes in the classreader. However, ordinarily that change causes a further optimization: that if a classreader sees * a methodvisitor that has been created by a ClassWriter then it just copies the data across without changing it (and so it * fails to attach the stackmapattribute). In order to avoid this further optimization we use our own minimal MethodVisitor. * * @author Andy Clement */ public class StackMapAdder { public static byte[] addStackMaps(World world, byte[] data) { try { ClassReader cr = new ClassReader(data); ClassWriter cw = new AspectJConnectClassWriter(cr, world); ClassVisitor cv = new AspectJClassVisitor(cw); cr.accept(cv, 0); return cw.toByteArray(); } catch (Throwable t) { System.err.println("AspectJ Internal Error: unable to add stackmap attributes. " + t.getMessage()); AsmDetector.isAsmAround = false; return data; } } private static class AspectJClassVisitor extends ClassVisitor {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
public AspectJClassVisitor(ClassVisitor classwriter) { super(Opcodes.ASM4, classwriter); } @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); return new AJMethodVisitor(mv); } static class AJMethodVisitor extends MethodVisitor { public AJMethodVisitor(MethodVisitor mv) { super(Opcodes.ASM4,mv); } } } private static class AspectJConnectClassWriter extends ClassWriter {
423,257
Bug 423257 LTW - java.lang.VerifyError: Bad return type with generics and local variables
null
resolved fixed
dd88d21
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
"2013-12-06T18:33:48Z"
"2013-12-04T23:33:20Z"
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
private final World world; public AspectJConnectClassWriter(ClassReader cr, World w) { super(cr, ClassWriter.COMPUTE_FRAMES); this.world = w; } protected String getCommonSuperClass(final String type1, final String type2) { ResolvedType resolvedType1 = world.resolve(UnresolvedType.forName(type1.replace('/', '.'))); ResolvedType resolvedType2 = world.resolve(UnresolvedType.forName(type2.replace('/', '.'))); if (resolvedType1.isAssignableFrom(resolvedType2)) { return type1; } if (resolvedType2.isAssignableFrom(resolvedType1)) { return type2; } if (resolvedType1.isInterface() || resolvedType2.isInterface()) { return "java/lang/Object"; } else { do { resolvedType1 = resolvedType1.getSuperclass(); } while (!resolvedType1.isAssignableFrom(resolvedType2)); return resolvedType1.getRawName().replace('.', '/'); } } } }