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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | * it can be passed raw or parameterized versions and will just compare the underlying
* generic type.
*/
private boolean genericTypeEquals(ResolvedType other) {
ResolvedType rt = other;
if (rt.isParameterizedType() || rt.isRawType()) rt.getGenericType();
if (( (isParameterizedType() || i... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | ResolvedType checkTheSuperI = superI.discoverActualOccurrenceOfTypeInHierarchy(lookingFor);
if (checkTheSuperI!=null) return checkTheSuperI;
}
return superT.discoverActualOccurrenceOfTypeInHierarchy(lookingFor);
}
/**
* Called for all type mungers but only does s... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | if (!actualTarget.isGenericType()) {
if (debug) System.err.println("Occurrence in "+this+" is actually "+actualTarget+" ("+actualTarget.typeKind+")");
}
munger = munger.parameterizedFor(actualTarget);
if (debug) System.err.println("New sig: "+m... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | munger = fillInAnyTypeParameters(munger);
sig = munger.getSignature();
if (sig.getKind() == Member.METHOD) {
if (!compareToExistingMembers(munger, getMethodsWithoutIterator(false,true) )) return;
if (this.isInterface()) {
if (!compareToExistingMembers(munger,
Arrays.asList(world.getCoreType(... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | if (c < 0) {
checkLegalOverride(munger.getSignature(), existingMunger.getSignature());
return;
} else if (c > 0) {
checkLegalOverride(existingMunger.getSignature(), munger.getSignature());
i.remove();
break;
} else {
interTypeConflictError(munger, existingMung... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | private boolean compareToExistingMembers(ConcreteTypeMunger munger, Iterator existingMembers) {
ResolvedMember sig = munger.getSignature();
while (existingMembers.hasNext()) {
ResolvedMember existingMember = (ResolvedMember)existingMembers.next();
if (existingMember.isBridgeMethod()) continue;
... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | if (sameReturnTypes)
getWorld().getMessageHandler().handleMessage(
MessageUtil.error(WeaverMessages.format(WeaverMessages.ITD_MEMBER_CONFLICT,munger.getAspectType().getName(),
existingMember),
munger.getSourceLocation())
);
}
} else if (isDuplicateMemberWithinTargetType(e... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | if (itdMember.isPublic()) return true;
if (!targetType.getPackageName().equals(itdMember.getDeclaringType().getPackageName())) return false;
return true;
}
/**
* @return true if the override is legal
* note: calling showMessage with two locations issues TWO messages, not ONE message
... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | if (incompatibleReturnTypes) {
incompatibleReturnTypes = !rtParentReturnType.isAssignableFrom(rtChildReturnType);
}
} else {
incompatibleReturnTypes =!parent.getReturnType().equals(child.getReturnType());
}
if (incompatibleReturnTypes) {
world.showMessage(IMessage.ERROR,
WeaverMessages.for... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | ResolvedType[] childExceptions = world.resolve(child.getExceptions());
ResolvedType[] parentExceptions = world.resolve(parent.getExceptions());
ResolvedType runtimeException = world.resolve("java.lang.RuntimeException");
ResolvedType error = world.resolve("java.lang.Error");
outer:
for (int i =... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | return false;
}
return true;
}
private int compareMemberPrecedence(ResolvedMember m1, ResolvedMember m2) {
if (m2.isProtected() && m2.getName().charAt(0)=='c') {
UnresolvedType declaring = m2.getDeclaringType();
if (declaring!=null) {
if (declaring.getName().equals("java.lang.Ob... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | return +1;
}
return 0;
}
public static boolean isMoreVisible(int m1, int m2) {
if (Modifier.isPrivate(m1)) return false;
if (isPackage(m1)) return Modifier.isPrivate(m2);
if (Modifier.isProtected(m1)) return (Modifier.isPrivate(m2) || isPackage(m2));
if (Modifier.isPublic(m1)) return ! Modifier.isPubl... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | for (Iterator i = interTypeMungers.iterator(); i.hasNext(); ) {
ConcreteTypeMunger m = (ConcreteTypeMunger)i.next();
ResolvedMember ret = m.getMatchingSyntheticMember(member);
if (ret != null) {
return ret;
}
}
if (world.isJoinpointArrayConstructionEnabled() && this.isArray()) {
if (me... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | public boolean isTopmostImplementor(ResolvedType interfaceType) {
if (isInterface()) return false;
if (!interfaceType.isAssignableFrom(this,true)) return false;
if (this.getSuperclass().isMissing()) return true;
if (interfaceType.isAssignableFrom(this.getSuperclass(),true)) {
return false;
}
return t... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | public List getExposedPointcuts() {
List ret = new ArrayList();
if (getSuperclass() != null) ret.addAll(getSuperclass().getExposedPointcuts());
for (Iterator i = Arrays.asList(getDeclaredInterfaces()).iterator(); i.hasNext(); ) {
ResolvedType t = (ResolvedType)i.next();
addPointcutsResolvingConflicts(ret... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | ResolvedPointcutDefinition existing =
(ResolvedPointcutDefinition) j.next();
if (existing == toAdd) continue;
if (!isVisible(existing.getModifiers(),
existing.getDeclaringType().resolve(getWorld()),
this)) {
continue;
}
if (conflictingSignature(existing, toAdd)) {
if (isOverridi... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | return false;
}
public WeaverStateInfo getWeaverState() {
return null;
}
/**
* Overridden by ReferenceType to return a sensible answer for parameterized and raw types.
*
* @return
*/
public ResolvedType getGenericType() {
if (!(isParameterizedType() || isRawType()))
throw new BCException("Th... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | /**
* Iff I am a parameterized type, and any of my parameters are type variable
* references, return a version with those type parameters replaced in accordance
* with the passed bindings.
*/
public UnresolvedType parameterize(Map typeBindings) {
if (!isParameterizedType()) throw new IllegalStateException(... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | public boolean hasParameterizedSuperType() {
getParameterizedSuperTypes();
return parameterizedSuperTypes.length > 0;
}
public boolean hasGenericSuperType() {
ResolvedType[] superTypes = getDeclaredInterfaces();
for (int i = 0; i < superTypes.length; i++) {
if (superTypes[i].isGenericType()) return true;... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | parameterizedTypeList.add(forType);
}
if (forType.getSuperclass() != null) {
accumulateParameterizedSuperTypes(forType.getSuperclass(), parameterizedTypeList);
}
ResolvedType[] interfaces = forType.getDeclaredInterfaces();
for (int i = 0; i < interfaces.length; i++) {
accumulateParameterizedSuperTypes(i... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | return true;
}
/**
* Determines if variables of this type could be assigned values of another
* with lots of help.
* java.lang.Object is convertable from all types.
* A primitive type is convertable from X iff it's assignable from X.
* A reference type is convertable from X iff it's coerceable from X.
*... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | * of another type without casting. This still allows for assignment conversion
* as per JLS 2ed 5.2. For object types, this means supertypeOrEqual(THIS, OTHER).
*
* @param other the other type
* @param world the {@link World} in which the possible assignment should be checked.
* @return true iff variables ... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | }
/**
* Implemented by ReferenceTypes
*/
public String getSignatureForAttribute() {
throw new RuntimeException("Cannot ask this type "+this+" for a generic sig attribute");
}
private FuzzyBoolean parameterizedWithAMemberTypeVariable = FuzzyBoolean.MAYBE;
/**
* return true if the parameterizati... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | parameterizedWithAMemberTypeVariable = FuzzyBoolean.YES;
return true;
}
if (aType.isParameterizedType()) {
boolean b = aType.isParameterizedWithAMemberTypeVariable();
if (b) {
parameterizedWithAMemberTypeVariable = FuzzyBoolean.YES;
return true;
}
}
if (aType.isGenericWil... |
141,956 | Bug 141956 Null Pointer Exception when trying to skip Parent Mungers. | I don't know much about the internal workings of aspectJ but this bug keeps popping up so I went through the trouble of checking of trying to debug it so that I could hopefully provide enough information to get it fixed. This happens while using eclipse AJDT. It never happens if I fully do a clean before rebuild. It on... | resolved fixed | 5f6a6b1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T11:38:39Z | 2006-05-16T09:00:00Z | weaver/src/org/aspectj/weaver/ResolvedType.java | } else if (lowerBound.isTypeVariableReference() && ((TypeVariableReference)lowerBound).getTypeVariable().getDeclaringElementKind()==TypeVariable.METHOD) {
b = true;
}
if (b) {
parameterizedWithAMemberTypeVariable = FuzzyBoolean.YES;
return true;
}
}
}
}
parameterize... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://ww... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testCompletelyBrokenAopConcretization_pr142165_1() { runTest("broken concretization");}
public void testCompletelyBrokenAopConcretization_pr142165_2() { runTest("broken concretization - 2");}
public void testCompletelyBrokenAopConcretization_pr142165_3() { runTest("broken concretization - 3");}
public... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testPointcutsAndGenerics_pr137496_2() { runTest("pointcuts and generics - D");}
public void testPointcutsAndGenerics_pr137496_3() { runTest("pointcuts and generics - E");}
public void testPointcutsAndGenerics_pr137496_4() { runTest("pointcuts and generics - F");}
public void testPointcutsAndGenerics_p... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | /* *******************************************************************
* Copyright (c) 2004 IBM Corporation.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distribution and is available at
* h... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | import org.aspectj.weaver.Shadow;
import org.aspectj.weaver.ShadowMunger;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.VersionedDataInputStream;
import org.aspectj.weaver.WeaverMessages;
import org.aspectj.weaver.ast.Literal;
import org.aspectj.weaver.ast.Test;
import org.aspectj.weaver.ast.Var;
... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | private ExactAnnotationTypePattern annotationTypePattern;
private ShadowMunger munger = null;
private String declarationText;
public AnnotationPointcut(ExactAnnotationTypePattern type) {
super();
this.annotationTypePattern = type;
this.pointcutKind = Pointcut.ANNOTATION;
buildDeclarationText();
}... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | }
public int couldMatchKinds() {
return Shadow.ALL_SHADOW_KINDS_BITS;
}
public Pointcut parameterizeWith(Map typeVariableMap) {
AnnotationPointcut ret = new AnnotationPointcut((ExactAnnotationTypePattern)annotationTypePattern.parameterizeWith(typeVariableMap));
ret.copyLocationFrom(this);
return ret;
}
... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | if (member.getName().startsWith(NameMangler.PREFIX)) {
return FuzzyBoolean.NO;
}
shadow.getIWorld().getLint().unresolvableMember.signal(member.toString(), getSourceLocation());
return FuzzyBoolean.NO;
}
Shadow.Kind kind = shadow.getKind();
if (kind == Shadow.StaticInitialization) {
toMatchAgain... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | }
}
annotationTypePattern.resolve(shadow.getIWorld());
return annotationTypePattern.matches(toMatchAgainst);
}
private ResolvedMember findMethod(ResolvedType aspectType, ResolvedMember ajcMethod) {
ResolvedMember decMethods[] = aspectType.getDeclaredMethods();
for (int i = 0; i < decMethods... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | */
protected Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) {
ExactAnnotationTypePattern newType = (ExactAnnotationTypePattern) annotationTypePattern.remapAdviceFormals(bindings);
Pointcut ret = new AnnotationPointcut(newType, bindings.getEnclosingAdvice());
ret.... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | * @see org.aspectj.weaver.patterns.NameBindingPointcut#getBindingAnnotationTypePatterns()
*/
public List getBindingAnnotationTypePatterns() {
if (annotationTypePattern instanceof BindingAnnotationTypePattern) {
List l = new ArrayList();
l.add(annotationTypePattern);
return l;
} else return Collections.E... |
138,223 | Bug 138223 Compiler crash on two binding @xxx pcds in one compound expression | junit.framework.AssertionFailedError: test "Double at annotation matching (no binding)" failed test "Double at annotation matching (no binding)" failed Unexpected warning messages: warning at before() : transactionalOperation() { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /private/tmp/ajcSandbox/ajcTest18924.tmp/DoubleAnnotatio... | resolved fixed | 6b2d9ae | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-17T15:48:34Z | 2006-04-24T17:33:20Z | weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java | }
public boolean equals(Object other) {
if (!(other instanceof AnnotationPointcut)) return false;
AnnotationPointcut o = (AnnotationPointcut)other;
return o.annotationTypePattern.equals(this.annotationTypePattern);
}
public int hashCode() {
int result = 17;
result = 37*result + annotati... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | /*******************************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available ... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | import org.aspectj.weaver.AnnotationX;
import org.aspectj.weaver.ResolvedMember;
import org.aspectj.weaver.ResolvedType;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.World;
import org.aspectj.weaver.bcel.BcelPerClauseAspectAdder;
import org.aspectj.weaver.bcel.BcelWorld;
import org.aspectj.weaver... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | * Concrete aspect definition we build for
*/
private final Definition.ConcreteAspect m_concreteAspect;
/**
* World for which we build for
*/
private final World m_world;
/**
* Set to true when all is checks are verified
*/
private boolean m_isValid = false;
/**
* Th... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | * Checks that concrete aspect is valid
*
* @return true if ok, false otherwise
*/
public boolean validate() {
if (!(m_world instanceof BcelWorld)) {
reportError("Internal error: world must be of type BcelWorld");
return false;
}
ResolvedType cu... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | String fixedName = m_concreteAspect.extend;
int hasDot = fixedName.lastIndexOf('.');
while (hasDot > 0) {
char[] fixedNameChars = fixedName.toCharArray();
fixedNameChars[hasDot] = '$';
fixedName = new String(fixedNameChars);
hasDot ... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | Iterator methods = m_parent.getMethods();
while (methods.hasNext()) {
ResolvedMember method = (ResolvedMember) methods.next();
if (method.isAbstract()) {
if ("()V".equals(method.getSignature())) {
String n = method.getName();
if (n.starts... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | return false;
}
}
m_perClause = m_parent.getPerClause();
m_isValid = true;
return m_isValid;
}
/**
* Rebuild the XML snip that defines this concrete aspect, for log error purpose
*
* @return string repr.
*/
private String stringify() {
... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | }
/**
* Build the bytecode for the concrete aspect
*
* @return concrete aspect bytecode
*/
public byte[] getBytes() {
if (!m_isValid) {
throw new RuntimeException("Must validate first");
}
... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | cg.getConstantPoolGen()
);
cg.addAnnotation(ag.getAnnotation());
if (m_concreteAspect.precedence != null) {
SimpleElementValueGen svg = new SimpleElementValueGen(
ElementValueGen.STRING,
cg.getConstantPoolGen(),
m_concreteAs... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | cbody.append(cg.getFactory().createInvoke(
(m_parent==null)?"java/lang/Object":m_parent.getName().replace('.', '/'),
"<init>",
Type.VOID,
EMPTY_TYPES,
Constants.INVOKESPECIAL
));
cbody.append(InstructionConstants.RETURN);
... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | loadtime/src/org/aspectj/weaver/loadtime/ConcreteAspectCodeGen.java | cg.getConstantPoolGen()
);
AnnotationX max = new AnnotationX(mag.getAnnotation(), m_world);
mg.addAnnotation(max);
InstructionList body = mg.getBody();
body.append(InstructionConstants.RETURN);
cg.addMethodGen(mg);
}
BcelPe... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://ww... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testComplexGenericDecl_pr137568() { runTest("complicated generics declaration");}
public void testItdOnInnerTypeOfGenericType_pr132349() { runTest("ITD on inner type of generic type");}
public void testItdOnInnerTypeOfGenericType_pr132349_2() { runTest("ITD on inner type of generic type - 2");}
public... |
142,466 | Bug 142466 [ltw] Fail at runtime if abstract methods are not implemented in a hierarchy that finishes with an XML aspect | see pr125480 - copying the test for that will be a good basis for a test for this bug. We don't check that when defining a concrete aspect there are no unimplemented abstract methods in the aspect we are concretizing. | resolved fixed | 69e24e9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-23T07:55:53Z | 2006-05-18T11:00:00Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testPointcutsAndGenerics_pr137496_5() { runTest("pointcuts and generics - G");}
public void testPointcutsAndGenerics_pr137496_6() { runTest("pointcuts and generics - H");}
public void testAspectLibrariesAndASM_pr135001() { runTest("aspect libraries and asm");}
public void testStackOverflow_pr136258() ... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | /* *******************************************************************
* Copyright (c) 2003 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distribution and is available at
* http... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | String[] args = {
"-private",
"-encoding",
"EUCJIS",
"-docencoding",
"EUCJIS",
"-charset",
"UTF-8",
"-classpath",
AjdocTests.ASPECTJRT_PATH.getPath(),
"-d",
getAbsolutePathOutdir(),
file0.getAbsolutePath(),
};
org.aspectj.tools.ajdoc.Main.main(args);
ass... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | " the 'public' flag to ajdoc",htmlFile.exists());
htmlFile = new File(getAbsolutePathOutdir() + "/foo/PlainJava.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath()
+ " - were there compilation errors?");
}
String[] strings = { ... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | AjdocOutputChecker.containsString(htmlFile,"Aspect A"));
}
/**
* Test that the ajdoc for a class has the title "Class"
*/
public void testAJdocHasClassTitle() throws Exception {
File[] files = {new File(getAbsoluteProjectDir() + "/pkg/C.java")};
runAjdoc("private","1.4",files);
File htmlFile = new... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | }
String[] strings = { "Aspect ClassA.InnerAspect",
"<PRE>static aspect <B>ClassA.InnerAspect</B><DT>extends java.lang.Object</DL>",
"Class ClassA.InnerAspect",
"<PRE>static class <B>ClassA.InnerAspect</B><DT>extends java.lang.Object</DL>"};
List missing = AjdocOutputChecker.getMissingStr... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | }
/**
* Test that all the different types of advice appear
* with the named pointcut in it's description
*/
public void testAdviceNamingCoverage() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutd... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | assertTrue(htmlFile.getName() + " should contain all advice in the Advice Summary section",missing.isEmpty());
}
/**
* Test that all the advises relationships appear in the
* Advice Detail and Advice Summary sections and that
* the links are correct
*/
public void testAdvisesRelationsh... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | "HREF=\"../foo/Point.html#Point()\"",
"before(): staticinitializationP..",
"HREF=\"../foo/Point.html\"",
"before(): handlerP..",
"HREF=\"../foo/Point.html#doIt()\""
};
for (int i = 0; i < strings.length - 1; i = i+2) {
boolean b = AjdocOutputChecker.detailSectionContainsRel(
htmlFile,"ADV... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath() + " - were there compilation errors?");
}
String[] strings... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | public void testAdvisedByConstructorExecution() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath()... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | */
public void testAdvisedByMethodCall() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath() + ... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | */
public void testAdvisedByConstructorCall() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | */
public void testAdvisedByGet() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath() + " - wer... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | */
public void testAdvisedBySet() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePathOutdir() + "/foo/Point.html");
if (htmlFile == null || !htmlFile.exists()) {
fail("couldn't find " + htmlFile.getAbsolutePath() + " - wer... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | b = AjdocOutputChecker.summarySectionContainsRel(
htmlFile,"=== CONSTRUCTOR SUMMARY",
"Point()",
HtmlDecorator.HtmlRelationshipKind.ADVISED_BY,
href);
assertTrue("the Constructor Summary should have advised by " + href,b);
b = AjdocOutputChecker.classDataSectionContainsRel(
htmlFile,
HtmlDec... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | htmlFile,"=== CONSTRUCTOR DETAIL",strings[0],
HtmlDecorator.HtmlRelationshipKind.ADVISED_BY,
strings[1]);
assertTrue("the Method Detail should have 'setX(int) advised by ... before()'",b);
b = AjdocOutputChecker.summarySectionContainsRel(
htmlFile,"=== CONSTRUCTOR SUMMARY",strings[0],
HtmlDecorator.... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | /**
* Test that the advised by relationship appears in the ajdoc when the
* advice is associated with a handler pointcut
*/
public void testAdvisedByHandler() throws Exception {
File[] files = {file4};
runAjdoc("private","1.4",files);
File htmlFile = new File(getAbsolutePath... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | /**
* Test that if have two before advice blocks from the same
* aspect affect the same method, then both appear in the ajdoc
*/
public void testTwoBeforeAdvice() throws Exception {
File[] files = {new File(getAbsoluteProjectDir() + "/pkg/A2.aj")};
runAjdoc("private","1.4",files);
... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | b = AjdocOutputChecker.detailSectionContainsRel(
htmlFile,"=== METHOD DETAIL",
strings[0],
HtmlDecorator.HtmlRelationshipKind.ADVISED_BY,
strings[2]);
assertTrue("the Method Detail should have " + strings[0]+" advised by " + strings[2],b);
b = AjdocOutputChecker.summarySectionContainsRel(
htm... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | boolean b = AjdocOutputChecker.classDataSectionContainsRel(
htmlFile,
HtmlDecorator.HtmlRelationshipKind.ADVISED_BY,
href);
assertFalse("The class data section should not have 'advised by " + href + "'",b);
}
public void testCoverage() {
File[] files = {aspect1,file0,file1,file2,file3,file4,fi... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | String[] strings = { "Aspect PkgVisibleClass.NestedAspect",
"<PRE>static aspect <B>PkgVisibleClass.NestedAspect</B><DT>extends java.lang.Object</DL>",
"Class PkgVisibleClass.NestedAspect",
"<PRE>static class <B>PkgVisibleClass.NestedAspect</B><DT>extends java.lang.Object</DL>"};
List missing = AjdocOutput... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | * ClassWithNestedAspect has nested aspect called NestedAspect,
* that the titles for the ajdoc are correct.
*/
public void testNestedAspectWithSimilarName() throws Exception {
File[] files = {new File(getAbsoluteProjectDir() + "/pkg/ClassWithNestedAspect.java")};
runAjdoc("private","1.4",files);
... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | String[] classStrings = { "Class ClassWithNestedAspect</H2>",
"public class <B>ClassWithNestedAspect</B><DT>extends java.lang.Object</DL>",
"Aspect ClassWithNestedAspect</H2>",
"public aspect <B>ClassWithNestedAspect</B><DT>extends java.lang.Object</DL>"};
List classMissing = AjdocOutputChecker.getMissing... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | "before(): p..",
HtmlDecorator.HtmlRelationshipKind.ADVISES,
"HREF=\"../pkg/ClassWithNestedAspect.html#amethod()\"");
assertTrue("Should have 'before(): p.. advises HREF=\"../pkg/ClassWithNestedAspect.html#amethod()\"" +
"' in the Advice Detail section", b);
b = AjdocOutputChecker.summarySectionCo... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | b = AjdocOutputChecker.containsString(htmlFile,"ADVICE SUMMARY ");
assertFalse(htmlFile.getName() + " should not contain an adivce summary section",b);
b = AjdocOutputChecker.containsString(htmlFile,"POINTCUT DETAIL ");
assertFalse(htmlFile.getName() + " should not contain a pointcut detail section",b);
b = Ajd... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | "' in the Method Summary section", b);
b = AjdocOutputChecker.detailSectionContainsRel(
htmlFile,"=== METHOD SUMMARY",
"amethod()",
HtmlDecorator.HtmlRelationshipKind.ADVISED_BY,
"pkg.ClassWithNestedAspect.NestedAspect.NestedAspect.before(): p..");
assertFalse("Should not have the label " +
"pkg.C... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distributi... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | import org.aspectj.ajdt.internal.compiler.ast.InterTypeConstructorDeclaration;
import org.aspectj.ajdt.internal.compiler.ast.InterTypeDeclaration;
import org.aspectj.ajdt.internal.compiler.ast.InterTypeFieldDeclaration;
import org.aspectj.ajdt.internal.compiler.ast.InterTypeMethodDeclaration;
import org.aspectj.ajdt.in... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | public static final String UNDEFINED="<undefined>";
public static final String DECLARE_PRECEDENCE = "precedence";
public static final String DECLARE_SOFT = "soft";
public static final String DECLARE_PARENTS = "parents";
public static final String DECLARE_WARNING = "warning";
public static final String DECLARE_ERRO... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | details.append(rp.name).append("..");
} else if (ad.pointcutDesignator.getPointcut() instanceof AndPointcut) {
AndPointcut ap = (AndPointcut)ad.pointcutDesignator.getPointcut();
if (ap.getLeft() instanceof ReferencePointcut) {
details.append(ap.getLeft().toString()).append(DOUBLE_DOTS);
} else... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | } else if (methodDeclaration instanceof DeclareDeclaration) {
DeclareDeclaration declare = (DeclareDeclaration)methodDeclaration;
String name = DEC_LABEL + " ";
if (declare.declareDecl instanceof DeclareErrorOrWarning) {
DeclareErrorOrWarning deow = (DeclareErrorOrWarning)declare.declareDecl;
if ... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | try {
ResolvedType rtx = tx.resolve(((AjLookupEnvironment)declare.scope.environment()).factory.getWorld());
if (!rtx.isInterface()) kindOfDP = "extends ";
} catch (Throwable t) {
}
}
String typename= tp.toString();
if (typename.lastIndexOf(".")!=-1) {
ty... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | String thekind = deca.getKind().toString();
node.setName(name+"@"+thekind.substring(3));
if (deca.getKind()==DeclareAnnotation.AT_CONSTRUCTOR) {
node.setKind(IProgramElement.Kind.DECLARE_ANNOTATION_AT_CONSTRUCTOR);
} else if (deca.getKind()==DeclareAnnotation.AT_FIELD) {
node.setKin... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | node.setName(itd.getOnType().toString() + "." + itd.getOnType().toString());
} else {
node.setKind(IProgramElement.Kind.ERROR);
node.setName(name);
}
node.setCorrespondingType(itd.returnType.toString());
if (node.getKind() != IProgramElement.Kind.INTER_TYPE_FIELD) {
setParameters(methodDeclarati... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | || "Lorg/aspectj/lang/annotation/AfterReturning;".equals(annotationSig)
|| "Lorg/aspectj/lang/annotation/AfterThrowing;".equals(annotationSig)
|| "Lorg/aspectj/lang/annotation/Around;".equals(annotationSig)) {
node.setK... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | }
}
private void setParameters(MethodDeclaration md, IProgramElement pe) {
Argument[] argArray = md.arguments;
if (argArray == null) {
pe.setParameterNames(Collections.EMPTY_LIST);
pe.setParameterTypes(Collections.EMPTY_LIST);
} else {
List names = new ArrayList();
List types = new ArrayLi... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | names.add(argName);
types.add(argType);
}
}
pe.setParameterNames(names);
pe.setParameterTypes(types);
}
}
private boolean acceptArgument(String name, String type) {
if (name.charAt(0)!='a' && type.charAt(0)!='o') return true;
return !name.startsWith("ajc$this_")
&& !type.equals("org.a... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java | }
public String genDeclareMessage(String message) {
int length = message.length();
if (length < MAX_MESSAGE_LENGTH) {
return message;
} else {
return message.substring(0, MAX_MESSAGE_LENGTH-1) + "..";
}
}
}
}
}
private String translatePointcutName(String name) {
int index = name.inde... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distributi... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | import org.aspectj.ajdt.internal.compiler.ast.*;
import org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment;
import org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory;
import org.aspectj.asm.*;
import org.aspectj.asm.internal.ProgramElement;
import org.aspectj.bridge.ISourceLocation;
import org.aspectj.... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | protected AsmElementFormatter formatter = new AsmElementFormatter();
public static boolean shouldAddUsesPointcut = true;
/**
* Reset for every compilation unit.
*/
protected AjBuildConfig buildConfig;
/**
* Reset for every compilation unit.
*/
protected Stack stack;
/**
* Reset for every compilation u... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | * @param cuDeclaration
* @param buildConfig
* @param structureModel hiearchy to add this unit's declarations to
*/
public void buildStructureForCompilationUnit(CompilationUnitDeclaration cuDeclaration, IHierarchy structureModel, AjBuildConfig buildConfig) {
currCompilationResult = cuDeclaration.compilati... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | int startLine = getStartLine(unit);
int endLine = getEndLine(unit);
SourceLocation sourceLocation
= new SourceLocation(file, startLine, endLine);
sourceLocation.setOffset(unit.sourceStart);
cuNode = new ProgramElement(
new String(file... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | addToNode.addChild(cuNode);
stack.push(cuNode);
unit.traverse(this, unit.scope);
try {
structureModel.addToFileMap(file.getCanonicalPath(), cuNode);
} catch (IOException e) {
System.err.println("IOException " + e.getMessage()
... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | final char[][] importName = currentPackage.getImportName();
final int last = importName.length-1;
for (int i = 0; i < importName.length; i++) {
nameBuffer.append(new String(importName[i]));
if (i < last) {
nameBuffer.append('.');
... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | }
addToNode = pkgNode;
}
}
return addToNode;
}
public boolean visit(TypeDeclaration typeDeclaration, CompilationUnitScope scope) {
String name = new String(typeDeclaration.name);
IProgramElement.Kind kind = IProgramElement.Kind.CLASS;
if (typeDeclaration instanceof AspectDeclaration) kind ... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | kind,
makeLocation(typeDeclaration),
typeModifiers, null,null);
peNode.setSourceSignature(genSourceSignature(typeDeclaration));
peNode.setFormalComment(generateJavadocComment(typeDeclaration));
((IProgramElement)stack.peek()).addChild(peNode);
stack.push(peNode);
return true;
}
public void endVis... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | }
}
}
int typeModifiers = memberTypeDeclaration.modifiers;
if (memberTypeDeclaration instanceof AspectDeclaration) {
typeModifiers = ((AspectDeclaration)memberTypeDeclaration).getDeclaredModifiers();
}
IProgramElement peNode = new ProgramElement(
name,
... |
143,930 | Bug 143930 create constructor ipe in same was as method ipes | null | resolved fixed | 26a8a86 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-05-30T09:59:53Z | 2006-05-26T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java | } else if (memberTypeDeclaration.binding != null
&& memberTypeDeclaration.binding.constantPoolName() != null) {
fullName = new String(memberTypeDeclaration.binding.constantPoolName());
int dollar = fullName.indexOf('$');
fullName = fullName.substring(dollar+1);
}
IProgramElement.Kind kind = IPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.