issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | isGeneric = false;
}
if (upperBound != null) upperBound = upperBound.resolveBindings(scope, bindings, allowBinding, requireExactType);
if (lowerBound != null) lowerBound = lowerBound.resolveBindings(scope, bindings, allowBinding, requireExactType);
String fullyQualifiedName = maybeGetCleanName();
... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | if (annotationPattern == AnnotationTypePattern.ANY) {
if (dim == 0 && !isVarArgs && upperBound == null && lowerBound == null && (additionalInterfaceBounds == null || additionalInterfaceBounds.length==0)) {
return TypePattern.ANY;
}
} else {
annotationPattern = annotationPattern.resolveBindings(sc... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | binding.copyLocationFrom(this);
bindings.register(binding, scope);
return binding;
}
}
return null;
}
private TypePattern resolveBindingsFromFullyQualifiedTypeName(String fullyQualifiedName, IScope scope, Bindings bindings,
boolean allowBinding, boolean requireExactType) {
String original... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | private UnresolvedType lookupTypeInScope(IScope scope, String typeName, IHasPosition location) {
UnresolvedType type = null;
while (ResolvedType.isMissing(type = scope.lookupType(typeName, location))) {
int lastDot = typeName.lastIndexOf('.');
if (lastDot == -1) break;
typeName = typeName.substring(0, last... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | } else if (upperBound != null || lowerBound != null) {
ret = resolveGenericWildcard(scope, aType);
} else {
if (dim != 0) aType = UnresolvedType.makeArray(aType, dim);
ret = new ExactTypePattern(aType,includeSubtypes,isVarArgs);
}
ret.setAnnotationTypePattern(annotationPattern);
ret.copyLoc... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | type = new BoundedReferenceType(lower,false,scope.getWorld());
}
}
if (canBeExact) {
return new ExactTypePattern(type,includeSubtypes,isVarArgs);
}
}
importedPrefixes = scope.getImportedPrefixes();
knownMatches = preMatch(scope.getImportedNames());
return this;
}
private TypePa... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | } else {
importedPrefixes = scope.getImportedPrefixes();
knownMatches = preMatch(scope.getImportedNames());
return this;
}
}
private TypePattern resolveBindingsForMissingType(ResolvedType typeFoundInWholeWorldSearch, String nameWeLookedFor, IScope scope, Bindings bindings,
boolean allowBinding, b... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | /**
* We resolved the type to a type variable declared in the pointcut designator.
* Now we have to create either an exact type pattern or a wild type pattern for it,
* with upper and lower bounds set accordingly.
* XXX none of this stuff gets serialized yet
* @param scope
* @param tvrType
* @return
*/
... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | boolean canCreateExactTypePattern = true;
if (upperBound != null && ResolvedType.isMissing(upperBound.getExactType())) canCreateExactTypePattern = false;
if (lowerBound != null && ResolvedType.isMissing(lowerBound.getExactType())) canCreateExactTypePattern = false;
if (additionalInterfaceBounds != null) {
... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | * We also have a set of type patterns for the parameters.
* Time to perform some basic checks:
* - can the base type be parameterized? (is it generic)
* - can the type parameter pattern list match the number of parameters on the base type
* - do all parameter patterns meet the bounds of the respective type v... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | if ((tvs.length < minRequiredTypeParameters) ||
(!foundEllipsis && minRequiredTypeParameters != tvs.length))
{
String msg = WeaverMessages.format(WeaverMessages.INCORRECT_NUMBER_OF_TYPE_ARGUMENTS,
genericType.getName(),new Integer(tvs.length));
if (requireExactType) scop... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | * create and store a verification object, we can verify this later when the type system is
* considered 'complete'
*/
static class VerifyBoundsForTypePattern implements IVerificationRequired {
private IScope scope;
private ResolvedType genericType;
private boolean requireExactType;
private TypePatternLi... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | if (ut.isTypeVariableReference()) {
continueCheck = false;
}
if (continueCheck &&
!tvs[i].canBeBoundTo(ut.resolve(scope.getWorld()))) {
String parameterName = ut.getName();
if (ut.isTypeVariableReference()) parameterName = ((TypeVariableReference)ut).getTypeVariabl... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | }
}
}
public boolean isStar() {
boolean annPatternStar = annotationPattern == AnnotationTypePattern.ANY;
return (isNamePatternStar() && annPatternStar);
}
private boolean isNamePatternStar() {
return namePatterns.length == 1 && namePatterns[0].isAny();
}
/**
* returns those possible matches which I ... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | }
}
}
return (String[])ret.toArray(new String[ret.size()]);
}
}
public String toString() {
StringBuffer buf = new StringBuffer();
if (annotationPattern != AnnotationTypePattern.ANY) {
buf.append('(');
buf.append(annotationPattern.toString());
buf.append(' ');
}
... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | buf.append(lowerBound.toString());
}
if (typeParameters!=null && typeParameters.size()!=0) {
buf.append("<");
buf.append(typeParameters.toString());
buf.append(">");
}
if (includeSubtypes) buf.append('+');
if (isVarArgs) buf.append("...");
if (annotationPattern != AnnotationTypePattern.ANY... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | if (o.lowerBound == null) return false;
if (!this.lowerBound.equals(o.lowerBound)) return false;
} else {
if (o.lowerBound != null) return false;
}
if (!typeParameters.equals(o.typeParameters)) return false;
for (int i=0; i < len; i++) {
if (!o.namePatterns[i].equals(this.namePa... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | for (int i = 0; i < namePatterns.length; i++) {
namePatterns[i].write(s);
}
s.writeBoolean(includeSubtypes);
s.writeInt(dim);
s.writeBoolean(isVarArgs);
typeParameters.write(s);
FileUtil.writeStringArray(knownMatches, s);
FileUtil.writeStringArray(importedPrefixes, s);
writeLocation(s);
ann... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | } else {
return readTypePatternOldStyle(s,context);
}
}
public static TypePattern readTypePattern150(VersionedDataInputStream s, ISourceContext context) throws IOException {
byte version = s.readByte();
if (version > VERSION) {
throw new BCException("WildTypePattern was written by a more recent ... |
156,904 | Bug 156904 Incorrect warning when advising a private method of a private inner class | The Eclipse AJDT give an incorrect warning when you want to advise a private method of a private inner class. When I want to advise a private method in a private inner class, like this public class Outer { private class Inner { private void myMethod() } } Using the following poincut: poincut innerpointcut():execution( ... | resolved fixed | 782ade2 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-03T15:00:34Z | 2006-09-11T18:40:00Z | weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java | }
int numIfBounds = s.readInt();
if (numIfBounds > 0) {
ret.additionalInterfaceBounds = new TypePattern[numIfBounds];
for (int i = 0; i < numIfBounds; i++) {
ret.additionalInterfaceBounds[i] = TypePattern.read(s,context);
}
}
return ret;
}
public static TypePattern readTypePatternOldStyl... |
159,143 | Bug 159143 subtype pattern not working for declare annotation on method | Using AspectJ 1.5.3.200609271036, when declaring an annotation on a method, get unexpected error when using subtype wildcard for the declaring type. E.g., declare @method : void Foo+.foo() : @MethodAnnotation; Error text: "The method 'void Foo+.foo()' does not exist" | resolved fixed | 513564a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-04T07:27:44Z | 2006-09-28T16:13:20Z | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* 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://w... |
159,143 | Bug 159143 subtype pattern not working for declare annotation on method | Using AspectJ 1.5.3.200609271036, when declaring an annotation on a method, get unexpected error when using subtype wildcard for the declaring type. E.g., declare @method : void Foo+.foo() : @MethodAnnotation; Error text: "The method 'void Foo+.foo()' does not exist" | resolved fixed | 513564a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-04T07:27:44Z | 2006-09-28T16:13:20Z | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | public void testVisibilityProblem_pr149071() { runTest("visibility problem");}
public void testMissingLineNumbersInStacktraceAfter_pr145442() { runTest("missing line numbers in stacktrace after");}
public void testMissingLineNumbersInStacktraceAround_pr145442() { runTest("missing line numbers in sta... |
159,143 | Bug 159143 subtype pattern not working for declare annotation on method | Using AspectJ 1.5.3.200609271036, when declaring an annotation on a method, get unexpected error when using subtype wildcard for the declaring type. E.g., declare @method : void Foo+.foo() : @MethodAnnotation; Error text: "The method 'void Foo+.foo()' does not exist" | resolved fixed | 513564a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-04T07:27:44Z | 2006-09-28T16:13:20Z | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | public void testAtajInheritance_pr149305_2() { runTest("ataj inheritance - 2");}
public void testAtajInheritance_pr149305_3() { runTest("ataj inheritance - 3");}
public void testVerificationFailureForAspectOf_pr148693() {
runTest("verification problem");
Utils.verifyClass(ajc,"mypackage.MyAspect");
... |
159,143 | Bug 159143 subtype pattern not working for declare annotation on method | Using AspectJ 1.5.3.200609271036, when declaring an annotation on a method, get unexpected error when using subtype wildcard for the declaring type. E.g., declare @method : void Foo+.foo() : @MethodAnnotation; Error text: "The method 'void Foo+.foo()' does not exist" | resolved fixed | 513564a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-04T07:27:44Z | 2006-09-28T16:13:20Z | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | }
public void testNPEinConstructorSignatureImpl_pr155972 () {
runTest("NPE in ConstructorSignatureImpl");
}
public void testNPEinFieldSignatureImpl_pr155972 () {
runTest("NPE in FieldSignatureImpl");
}
public void testNPEinInitializerSignatureImpl_pr155972 () {
runTest("NPE in InitializerSig... |
159,143 | Bug 159143 subtype pattern not working for declare annotation on method | Using AspectJ 1.5.3.200609271036, when declaring an annotation on a method, get unexpected error when using subtype wildcard for the declaring type. E.g., declare @method : void Foo+.foo() : @MethodAnnotation; Error text: "The method 'void Foo+.foo()' does not exist" | resolved fixed | 513564a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-04T07:27:44Z | 2006-09-28T16:13:20Z | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement ipe = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.FIELD,"MY_COMPARATOR");
String expected = "static final Comparator MY_COMPARATOR = new Comparator() {\n" +
" public int compare(Object o1, Object o2) {\n" +
" retur... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | /********************************************************************
* Copyright (c) 2006 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:ec... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | IElementHandleProvider handleProvider;
protected void setUp() throws Exception {
super.setUp();
handleProvider = AsmManager.getDefault().getHandleProvider();
AsmManager.getDefault().setHandleProvider(new JDTLikeHandleProvider());
}
protected void tearDown() throws Exception {
super.tearDown();
AsmManager... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | assertEquals("handleIdentifier - expected " + expected + ", but found "
+ found, expected, found);
}
public void testAdviceHandle() {
runTest("advice handle");
compareHandles(IProgramElement.Kind.ADVICE,
"before(): <anonymous pointcut>",
"<pkg*A2.aj}A2&before");
}
public void testPointcutHandle() {
... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | "<pkg*A3.aj}A3&before");
}
public void testPointcutHandleWithArgs() {
runTest("pointcut handle with args");
compareHandles(IProgramElement.Kind.POINTCUT,
"p(java.lang.Integer)",
"*A6.aj}A6+p+QInteger;");
}
public void testAdviceHandleWithArgs() {
runTest("advice handle with args");
compareHandles(... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | runTest("method itd with args handle");
compareHandles(IProgramElement.Kind.INTER_TYPE_METHOD,
"C.methodWithArgs(int)",
"<pkg*A9.aj}A9)C.methodWithArgs)I");
}
public void testConstructorITDWithArgs() {
runTest("constructor itd with args");
compareHandles(IProgramElement.Kind.INTER_TYPE_CONSTRUCTOR,
... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | "method-call(void pkg.C.m2())",
"<pkg*A10.aj[C~m1?method-call(void pkg.C.m2())");
}
public void testDeclareAtType() {
runTest("declare @type");
compareHandles(IProgramElement.Kind.DECLARE_ANNOTATION_AT_TYPE,
"declare @type: pkg.C : @MyAnnotation",
"<pkg*A12.aj}A`declare @type");
}
public void... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | runTest("declare @constructor");
compareHandles(IProgramElement.Kind.DECLARE_ANNOTATION_AT_CONSTRUCTOR,
"declare @constructor: pkg.C.new() : @MyAnnotation",
"<pkg*A12.aj}A`declare @constructor!4");
}
public void testTwoPiecesOfAdviceWithSameSignatureAndPointcut() {
runTest("two pieces of advice ... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | if (b) {
assertEquals("handleIdentifier - expected " + expected2 + ", but found "
+ handle2, expected2, handle2);
} else {
assertEquals("handleIdentifier - expected " + expected1 + ", but found "
+ handle2, expected1, handle2);
assertEquals("handleIdentifier - expected " + expected2 + ", but found ... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | compareHandles(IProgramElement.Kind.DECLARE_WARNING,
"declare warning: \"warning 1\"",
"*DeclareWarnings.aj}DeclareWarnings`declare warning");
compareHandles(IProgramElement.Kind.DECLARE_WARNING,
"declare warning: \"warning 10\"",
"*DeclareWarnings.aj}DeclareWarnings`declare warning!10");
}
publ... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | runTest("ipes with different names do not have counter - method-call");
IHierarchy top = AsmManager.getDefault().getHierarchy();
String handle1 = "*TwoDiffMethodCalls.aj[Main~main~\\[QString;?method-call(" +
"void java.io.PrintStream.println(java.lang.String))";
assertNotNull("expected to find node with handl... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | + ", but did not",top.getElement(handle1));
String handle2 = "*Get.aj[C1~method1?field-get(int C1.x)!2";
assertNotNull("expected to find node with handle " + handle2
+ ", but did not",top.getElement(handle2));
}
public void testIPEsWithSameNameHaveUniqueHandles_set() {
runTest("ipes with same name have u... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | public void testClassSameAsJDT() {
runTest("class same as jdt");
compareHandles(IProgramElement.Kind.CLASS,
"C","<pkg{C.java[C");
}
public void testInterfaceSameAsJDT() {
runTest("interface same as jdt");
compareHandles(IProgramElement.Kind.INTERFACE,
"MyInterface","<pkg{C.java[MyInterface");
}... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | runTest("import declaration same as jdt");
compareHandles(IProgramElement.Kind.IMPORT_REFERENCE,
"java.io.*",
"<tjp{Demo.java#java.io.*");
}
public void testTypeSameAsJDT() {
runTest("type same as jdt");
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement pe = top.findElemen... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | IProgramElement parent = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.CLASS, "Demo");
List children = parent.getChildren();
String handle1 = null;
String handle2 = null;
for (Iterator iter = children.iterator(); iter.hasNext();) {
IProgramElement element = (IProgramElement) iter.next();
... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | public void testMethodWithStringArrayArgsSameAsJDT() {
runTest("method with string array as argument same as jdt");
compareHandles(IProgramElement.Kind.METHOD,
"main(java.lang.String[])",
"<tjp{Demo.java[Demo~main~\\[QString;");
}
public void testMethodWithIntArrayArgsSameAsJDT() {
runTest("met... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | }
public void testMethodWithTwoStringArgsSameAsJDT() {
runTest("method with two string args same as jdt");
compareHandles(IProgramElement.Kind.METHOD,
"m2(java.lang.String,java.lang.String)",
"<tjp{Demo.java[Demo~m2~QString;~QString;");
}
public void testEnumSameAsJDT() {
runTest("enum sam... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | runTest("annotation same as jdt");
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement pe = top.findElementForType("pkg", "MyAnnotation");
String expected = "<pkg{MyAnnotation.java[MyAnnotation";
String found = pe.getHandleIdentifier();
assertEquals("handleIdentifier - expected " + expect... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | compareHandles(IProgramElement.Kind.METHOD,
"genericMethod2(java.util.List<java.lang.String>,"
+"pkg.MyGenericClass<java.lang.Integer>)",
"<pkg{Java5Class.java[Java5Class~genericMethod2~QList"
+"\\<QString;>;~QMyGenericClass\\<QInteger;>;");
}
public void testMethodWithTwoTypeParametersSameAsJDT()... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | tests/src/org/aspectj/systemtest/ajc153/JDTLikeHandleProviderTests.java | FILE,
FILE_ASPECTJ,
FILE_LST,
DECLARE_ERROR,
DECLARE_SOFT,
DECLARE_PRECEDENCE,
*/
private void compareHandles(IProgramElement.Kind kind, String ipeName, String expectedHandle) {
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement pe = top.findElementForLabel(top.get... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distri... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | import org.aspectj.asm.internal.ProgramElement;
import org.aspectj.bridge.ISourceLocation;
import org.aspectj.bridge.SourceLocation;
import org.aspectj.util.PartialOrder;
import org.aspectj.weaver.bcel.BcelAdvice;
import org.aspectj.weaver.patterns.DeclareErrorOrWarning;
import org.aspectj.weaver.patterns.PerClause;
im... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | public ShadowMunger(Pointcut pointcut, int start, int end, ISourceContext sourceContext) {
this.pointcut = pointcut;
this.start = start;
this.end = end;
this.sourceContext = sourceContext;
}
public abstract ShadowMunger concretize(ResolvedType fromType, World world, PerClause clause);
public abstract v... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | }
public ISourceLocation getSourceLocation() {
if (sourceLocation == null) {
if (sourceContext != null) {
sourceLocation = sourceContext.makeSourceLocation(this);
}
}
if (isBinary()) {
if (binarySourceLocation == null) {
binarySourceLocation = getBinarySourceLocation(sourceLo... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | return pointcut;
}
public void setPointcut(Pointcut pointcut) {
this.pointcut = pointcut;
}
/**
* Invoked when the shadow munger of a resolved type are processed.
* @param aType
*/
public void setDeclaringType(ResolvedType aType) {
this.declaringType = aType;
}
public ResolvedType getDeclaringTyp... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | public abstract boolean mustCheckExceptions();
/**
* Returns the ResolvedType corresponding to the aspect in which this
* shadowMunger is declared. This is different for deow's and advice.
*/
public abstract ResolvedType getResolvedDeclaringAspect();
/**
* Creates the hierarchy... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | 0,null,null);
IProgramElement root = AsmManager.getDefault().getHierarchy().getRoot();
if (aspect.getPackageName() != null) {
IProgramElement pkgNode = AsmManager.getDefault().getHierarchy().findElementForLabel(
root,IProgramElement.Kind.PACKAGE,aspect.getPackageName());
... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | }
}
}
} else {
root.addChild(classFileNode);
for (Iterator iter = root.getChildren().iterator(); iter.hasNext();) {
IProgramElement element = (IProgramElement) iter.next();
if (!element.equals(classFileNode) &&
element.getHandleIdentifier().equals(
classFileNode.getHandle... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | getBinarySourceLocation(aspect.getSourceLocation()),
aspect.getModifiers(),
null,null);
classFileNode.addChild(aspectNode);
addChildNodes(aspectNode,aspect.getDeclaredPointcuts());
addChildNodes(aspectNode,aspect.getDeclaredAdvice());
addChildNodes(aspectNode,aspect.getDeclares(... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | DeclareErrorOrWarning decl = (DeclareErrorOrWarning)element;
IProgramElement deowNode = new ProgramElement(
decl.isError() ? "declare error" : "declare warning",
decl.isError() ? IProgramElement.Kind.DECLARE_ERROR : IProgramElement.Kind.DECLARE_WARNING,
getBinarySourceLocation(decl.get... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | String sourceFileName = null;
if (getResolvedDeclaringAspect() instanceof ReferenceType) {
String s = ((ReferenceType)getResolvedDeclaringAspect()).getDelegate().getSourcefilename();
int i = s.lastIndexOf('/');
if (i != -1) {
sourceFileName = s.substring(i+1);
} else {
sourceFileName = s;
}
... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/ShadowMunger.java | File f = getResolvedDeclaringAspect().getSourceLocation().getSourceFile();
int i = f.getPath().lastIndexOf('.');
String path = f.getPath().substring(0,i) + ".class";
binaryFile = new File(s + "!" + path);
}
return binaryFile;
}
/**
* Returns whether or not this shadow munger ... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/patterns/DeclareErrorOrWarning.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distri... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/patterns/DeclareErrorOrWarning.java | private boolean isError;
private Pointcut pointcut;
private String message;
public DeclareErrorOrWarning(boolean isError, Pointcut pointcut, String message) {
this.isError = isError;
this.pointcut = pointcut;
this.message = message;
}
public String toString() {
StringBuffer buf = new StringBuffer();
bu... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/patterns/DeclareErrorOrWarning.java | DeclareErrorOrWarning o = (DeclareErrorOrWarning)other;
return (o.isError == isError) &&
o.pointcut.equals(pointcut) &&
o.message.equals(message);
}
public int hashCode() {
int result = isError ? 19 : 23;
result = 37*result + pointcut.hashCode();
result = 37*result + message.ha... |
159,896 | Bug 159896 advice from injars do not have unique handles with the JDTLikeHandleProvider | Advice of the same kind contained in the same aspect currently do not have unique handles if the aspect is on the aspectpath. | resolved fixed | d532892 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-06T16:29:03Z | 2006-10-05T14:53:20Z | weaver/src/org/aspectj/weaver/patterns/DeclareErrorOrWarning.java | return ret;
}
public boolean isError() {
return isError;
}
public String getMessage() {
return message;
}
public Pointcut getPointcut() {
return pointcut;
}
public void resolve(IScope scope) {
pointcut = pointcut.resolve(scope);
}
public Declare parameterizeWith(Map typeVariableB... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distri... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | import java.util.jar.JarFile;
import java.util.jar.JarInputStream;
import java.util.jar.JarOutputStream;
import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import org.aspectj.ajdt.internal.compiler.AjCompilerAdapter;
import org.aspectj.ajdt.internal.compiler.AjPipeliningCompilerAdapter;
import org.aspectj.aj... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | import org.aspectj.bridge.Version;
import org.aspectj.bridge.context.CompilationAndWeavingContext;
import org.aspectj.bridge.context.ContextFormatter;
import org.aspectj.bridge.context.ContextToken;
import org.aspectj.org.eclipse.jdt.core.compiler.CharOperation;
import org.aspectj.org.eclipse.jdt.core.compiler.IProblem... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | private static final String CROSSREFS_FILE_NAME = "build.lst";
private static final String CANT_WRITE_RESULT = "unable to write compilation result";
private static final String MANIFEST_NAME = "META-INF/MANIFEST.MF";
static final boolean COPY_INPATH_DIR_RESOURCES = false;
private static boolean DO_RUNTIME_V... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | return f.getName().endsWith(".class");
}};
/**
* This builder is static so that it can be subclassed and reset. However, note
* that there is only one builder present, so if two extendsion reset it, only
* the latter will get used.
*/
public static AsmHierarchyBuilder asmHierarchyBuilder = new AsmHier... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | public AjBuildConfig buildConfig;
private boolean ignoreOutxml;
private boolean wasFullBuild = true;
AjState state = new AjState(this);
/**
* Enable check for runtime version, used only by Ant/command-line Main.
* @param main Main unused except to limit to non-null clients.
*/
public... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
public boolean batchBuild(
AjBuildConfig buildConfig,
IMessageHandler baseHandler)
throws IOException, AbortException {
return doBuild(buildConfig, baseHandler, true);
}
public boolean incrementalBuild(
AjBuildConfig buildConfig,
IMessageHandler baseHandler)... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | this.state = new AjState(this);
}
this.state.setCouldBeSubsequentIncrementalBuild(this.environmentSupportsIncrementalCompilation);
boolean canIncremental = state.prepareForNextBuild(buildConfig);
if (!canIncremental && !batch) {
CompilationAndW... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | setupModel(buildConfig);
}
if (batch) {
initBcelWorld(handler);
}
if (handler.hasErrors()) {
CompilationAndWeavingContext.leavingPhase(ct);
return false;
}
if (buildConfig.getOutputJar() ... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | return false;
}
if (AsmManager.isReporting())
AsmManager.getDefault().reportModelInfo("After a batch build");
} else {
binarySourcesForTheNextCompile = state.getBinaryFilesToCompile(true);
List files = state.getFilesToCompile... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | binarySourcesForTheNextCompile = state.getBinaryFilesToCompile(false);
files = state.getFilesToCompile(false);
hereWeGoAgain = !(files.isEmpty() && binarySourcesForTheNextCompile.isEmpty());
... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | String configFileProxy = buildConfig.getOutputDir().getAbsolutePath()
+ File.separator
+ CROSSREFS_FILE_NAME;
AsmManager.getDefault().writeStructureModel(configFileProxy);
}
state.successfulCompile(buildConfig,batch);
... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | ret = !handler.hasErrors();
if (getBcelWorld()!=null) getBcelWorld().tidyUp();
if (getWeaver()!=null) getWeaver().tidyUp();
}
return ret;
}
private String stringifyList(List l) {
if (l==null) return "";
StringBuffer sb = new Str... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | + ")",
new SourceLocation(outJar,0),
true);
handler.handleMessage(message);
return false;
}
return true;
}
private void closeOutputStream(File outJar) {
try {
if (zos != null) zos.close();
zos = null;
if (handler.hasErrors()) {
outJar.delete();
}
} catch (IOExcepti... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | for (Iterator i = buildConfig.getInJars().iterator(); i.hasNext(); ) {
File inJar = (File)i.next();
copyResourcesFromJarFile(inJar);
}
for (Iterator i = buildConfig.getInpath().iterator(); i.hasNext(); ) {
File inPathElement = (File)i.next();
if (inPathElement.isDirectory()) {
copyResourcesFr... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | while (true) {
ZipEntry entry = inStream.getNextEntry();
if (entry == null) break;
String filename = entry.getName();
if (!entry.isDirectory() && acceptResource(filename)) {
byte[] bytes = FileUtil.readAsByteArray(inStream);
writeResource(filename,bytes,jarFile);
}
inStream.clo... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | String filename = files[i].getAbsolutePath().substring(
dir.getAbsolutePath().length()+1);
copyResourcesFromFile(files[i],filename,dir);
}
}
private void copyResourcesFromFile(File f,String filename,File src) throws IOException {
if (!acceptResource(filename)) return;
FileInputStre... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
if (filename.equals(buildConfig.getOutxmlName())) {
ignoreOutxml = true;
IMessage msg = new Message("-outxml/-outxmlfile option ignored because resource already exists: '" + filename + "'",
IMessage.WARNING,
null,
new SourceLocation(srcLocation,0));
handler.handleMessage(msg);
}
... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | handler.handleMessage(msg);
}
}
state.recordResource(filename);
}
/*
* If we are writing to an output directory copy the manifest but only
* if we already have one
*/
private void writeManifest () throws IOException {
Manifest manifest = getWeaver().getManifest(false);
if (manifest != null && ... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | {
return false;
} else {
return true;
}
}
private void writeOutxmlFile () throws IOException {
if (ignoreOutxml) return;
String filename = buildConfig.getOutxmlName();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(baos);
ps.println("<aspectj>");... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | zos.write(baos.toByteArray());
zos.closeEntry();
} else {
OutputStream fos =
FileUtil.makeOutputStream(new File(buildConfig.getOutputDir(),filename));
fos.write(baos.toByteArray());
fos.close();
}
}
}
}
/**
* Responsible for managing the ASM model between builds. Contains the po... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | IProgramElement.Kind kind = IProgramElement.Kind.FILE_JAVA;
if (buildConfig.getConfigFile() != null) {
rootLabel = buildConfig.getConfigFile().getName();
model.setConfigFile(buildConfig.getConfigFile().getAbsolutePath());
kind = IProgramElement.Kind.FILE_LST;
}
... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | bcelWorld.setXHasMemberSupportEnabled(buildConfig.isXHasMemberEnabled());
bcelWorld.setPinpointMode(buildConfig.isXdevPinpoint());
bcelWorld.setErrorAndWarningThreshold(buildConfig.getOptions().errorThreshold,buildConfig.getOptions().warningThreshold);
BcelWeaver bcelWeaver = new BcelWeaver(bcelWorld);
state.se... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | for (Iterator i = buildConfig.getInJars().iterator(); i.hasNext(); ) {
File inJar = (File)i.next();
List unwovenClasses = bcelWeaver.addJarFile(inJar, buildConfig.getOutputDir(),false);
state.recordBinarySource(inJar.getPath(), unwovenClasses);
}
for (Iterator i = buildConfig.getInpath().iterator(); i.h... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | ResolvedType joinPoint = bcelWorld.resolve("org.aspectj.lang.JoinPoint");
if (joinPoint.isMissing()) {
IMessage message =
new Message("classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath)",
null,
true);
handler.handleMessage(message);
}... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | int[] classpathModes = new int[classpaths.length];
for (int i =0 ;i<classpaths.length;i++) classpathModes[i]=ClasspathDirectory.BINARY;
return new FileSystem(classpaths, filenames, defaultEncoding,classpathModes);
}
public IProblemFactory getProblemFactory() {
return new DefaultProblemFactory(Locale.getDefaul... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | ICompilationUnit compilationUnit = result.compilationUnit;
if (compilationUnit != null) {
char[] fileName = compilationUnit.getFileName();
int lastIndex = CharOperation.lastIndexOf(java.io.File.separatorChar, fileName);
if (lastIndex == -1) {
return System.getProperty("user.dir");
}
return new Str... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | for (int i=0; i < cps.size(); i++) {
classpaths[i] = (String)cps.get(i);
}
environment = getLibraryAccess(classpaths, filenames);
if (!state.getClassNameToFileMap().isEmpty()) {
environment = new StatefulNameEnvironment(environment, state.getClassNameToFileMap());
}
org.aspectj.ajdt.internal... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | environment.cleanup();
environment = null;
}
/*
* Answer the component to which will be handed back compilation results from the compiler
*/
public IIntermediateResultsRequestor getInterimResultRequestor() {
return new IIntermediateResultsRequestor() {
public void acceptResult(InterimCompilationResult res... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | if (!(unitResult.hasErrors() && !proceedOnError())) {
Collection classFiles = unitResult.compiledTypes.values();
boolean shouldAddAspectName = (buildConfig.getOutxmlName() != null);
for (Iterator iter = classFiles.iterator(); iter.hasNext();) {
ClassFile classFile = (ClassFile) iter.next(); ... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | EclipseAdapterUtils.makeMessage(unitResult.compilationUnit, problems[i],getBcelWorld());
handler.handleMessage(message);
}
}
}
private void writeDirectoryEntry(
CompilationResult unitResult,
ClassFile classFile,
String filename)
throws IOException {
File destinationPath... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | throws IOException {
name = name.replace(File.separatorChar,'/');
ZipEntry newEntry = new ZipEntry(name);
zos.putNextEntry(newEntry);
zos.write(classFile.getBytes());
zos.closeEntry();
}
private void addAspectName (String name) {
BcelWorld world = getBcelWorld();
ResolvedTyp... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
private void setBuildConfig(AjBuildConfig buildConfig) {
this.buildConfig = buildConfig;
if (!this.environmentSupportsIncrementalCompilation) {
this.environmentSupportsIncrementalCompilation =
(buildConfig.isIncrementalMode() || buildConfig.isIncrementalFileMode());
}
handler.reset();
}
Stri... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | if (Version.text.equals(Version.DEVELOPMENT)) {
return null;
}
if (buildConfig == null || buildConfig.getFullClasspath() == null) return "no classpath specified";
String ret = null;
for (Iterator it = buildConfig.getFullClasspath().iterator(); it.hasNext(); ) {
File p = new File( (String)it.next... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | return null;
} else if (!Version.text.equals(version)) {
ret = "bad version number found in " + p.getAbsolutePath() +
" expected " + Version.text + " found " + version;
continue;
}
} catch (IOException ioe) {
ret = "bad jar file found in " + p.getAbsolutePath() + " error: " + io... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | * Returns null if there is no structure model
*/
public IHierarchy getStructureModel() {
return structureModel;
}
public IProgressListener getProgressListener() {
return progressListener;
}
public void setProgressListener(IProgressListener progressListener) {
this.progressListener = progressListener;
... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | /* (non-Javadoc)
* @see org.eclipse.jdt.internal.compiler.ICompilerAdapterFactory#getAdapter(org.eclipse.jdt.internal.compiler.Compiler)
*/
public ICompilerAdapter getAdapter(org.aspectj.org.eclipse.jdt.internal.compiler.Compiler forCompiler) {
populateCompilerOptionsFromLintSettings(forCompiler);
AjProblem... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | progressListener,
this,
this,
state.getBinarySourceMap(),
buildConfig.isTerminateAfterCompilation(),
buildConfig.getProceedOnError(),
buildConfig.isNoAtAspectJAnnotationProcessing(),
state);
} else {
return new AjCompilerAdapter(forCompiler,batchCompile,getBcelWorld(),getWeav... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | IMessage.Kind swallowedExceptionKind = world.getLint().swallowedExceptionInCatchBlock.getKind();
Map optionsMap = new HashMap();
optionsMap.put(CompilerOptions.OPTION_ReportSwallowedExceptionInCatchBlock,
swallowedExceptionKind == null ? "ignore" : swallowedExceptionKind.toString());
forCompiler.optio... |
160,167 | Bug 160167 NPE when using crossrefs option for iajc ant task | The ant task is shown below. I ommited the full paths to the values of inpath, outJar, and argfiles, because they are somewhat long (hence the "..." before the file names): <iajc crossrefs="true" argfiles="...\weave-jars.txt" inpath="...\org.eclipse.core.runtime_3.2.0.v20060603.jar" outJar="...\org.eclipse.core.runtime... | resolved fixed | f7508cf | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-10-09T12:28:29Z | 2006-10-08T23:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | public String formatEntry(int phaseId, Object data) {
StringBuffer sb = new StringBuffer();
if (phaseId == CompilationAndWeavingContext.BATCH_BUILD) {
sb.append("batch building ");
} else {
sb.append("incrementally building ");
}
AjBuildConfig config = (AjBuildConfig) data;
List classpath = co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.