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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | crosscuttingMembers = new CrosscuttingMembers(this, shouldConcretizeIfNeeded);
if (getPerClause() == null) {
return crosscuttingMembers;
}
crosscuttingMembers.setPerClause(getPerClause());
crosscuttingMembers.addShadowMungers(collectShadowMungers());
crosscuttingMembers.addTypeMungers(getTypeMungers(... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | final Iterators.Filter<ResolvedType> dupFilter = Iterators.dupFilter();
Iterators.Getter<ResolvedType, ResolvedType> typeGetter = new Iterators.Getter<ResolvedType, ResolvedType>() {
public Iterator<ResolvedType> get(ResolvedType o) {
return dupFilter.filter((o).getDirectSupertypes());
}
};
Iterat... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | final Iterators.Filter<ResolvedType> dupFilter = Iterators.dupFilter();
Iterators.Getter<ResolvedType, ResolvedType> typeGetter = new Iterators.Getter<ResolvedType, ResolvedType>() {
public Iterator<ResolvedType> get(ResolvedType o) {
return dupFilter.filter((o).getDirectSupertypes());
}
};
Iterator<Res... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
public final boolean isInterface() {
return Modifier.isInterface(getModifiers());
}
public final boolean isAbstract() {
return Modifier.isAbstract(getModifiers());
}
public boolean isClass() {
return false;
}
public boolean isAspect() {
return false;
}
public boolean isAnnotationStyleAspect() {
r... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return false;
}
public boolean isNested() {
return false;
}
public void addAnnotation(AnnotationAJ annotationX) {
throw new RuntimeException("ResolvedType.addAnnotation() should never be called");
}
public AnnotationAJ[] getAnnotations() {
throw new RuntimeException("ResolvedType.getAnnotations() should nev... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return signature.indexOf("$ajc") != -1;
}
public final boolean isFinal() {
return Modifier.isFinal(getModifiers());
}
protected Map<String, UnresolvedType> getMemberParameterizationMap() {
if (!isParameterizedType()) {
return Collections.emptyMap();
}
TypeVariable[] tvs = getGenericType().getTypeVariable... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (munger instanceof Advice) {
Advice advice = (Advice) munger;
UnresolvedType[] ptypes = methods[i].getGenericParameterTypes();
UnresolvedType[] newPTypes = new UnresolvedType[ptypes.length];
for (int j = 0; j < ptypes.length; j++) {
if (ptypes[j] instanceof TypeVariableReference... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public ResolvedMember[] getDeclaredJavaFields() {
return filterInJavaVisible(getDeclaredFields());
}
public ResolvedMember[] getDeclaredJavaMethods() {
return filterInJavaVisible(getDeclaredMethods());
}
private ResolvedMember[] filterInJavaVisible(ResolvedMember[] ms) {
List<ResolvedMember> l = new ArrayList... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | private final int size;
private final int index;
Primitive(String signature, int size, int index) {
super(signature, null);
this.size = size;
this.index = index;
this.typeKind = TypeKind.PRIMITIVE;
}
@Override
public final int getSize() {
return size;
}
@Override
public final int getModif... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (!world.isInJava5Mode()) {
return false;
}
return validBoxing.contains(this.getSignature() + other.getSignature());
}
return assignTable[((Primitive) other).index][index];
}
@Override
public final boolean isAssignableFrom(ResolvedType other, boolean allowMissing) {
return isAssignableFrom... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return super.resolve(world);
}
@Override
public final boolean needsNoConversionFrom(ResolvedType other) {
if (!other.isPrimitiveType()) {
return false;
}
return noConvertTable[((Primitive) other).index][index];
}
private static final boolean[][] assignTable = {
{ true, true, true, true, tr... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | { false, false, false, false, false, false, false, true, false },
{ false, false, false, false, false, false, false, false, true },
};
@Override
public final ResolvedMember[] getDeclaredFields() {
return ResolvedMember.NONE;
}
@Override
public final ResolvedMember[] getDeclaredMethods() {
ret... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | Missing() {
super(MISSING_NAME, null);
}
@Override
public final String getName() {
return MISSING_NAME;
}
@Override
public final boolean isMissing() {
return true;
}
public boolean hasAnnotation(UnresolvedType ofType) {
return false;
}
@Override
public final ResolvedMember[] g... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | @Override
public final ResolvedMember[] getDeclaredPointcuts() {
return ResolvedMember.NONE;
}
@Override
public final ResolvedType getSuperclass() {
return null;
}
@Override
public final int getModifiers() {
return 0;
}
@Override
public final boolean isAssignableFrom(ResolvedType other) {
... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return null;
}
}
/**
* Look up a member, takes into account any ITDs on this type. return null if not found
*/
public ResolvedMember lookupMemberNoSupers(Member member) {
ResolvedMember ret = lookupDirectlyDeclaredMemberNoSupers(member);
if (ret == null && interTypeMungers != null) {
for (ConcreteTypeMu... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
/**
* as lookupMemberNoSupers, but does not include ITDs
*
* @param member
* @return
*/
public ResolvedMember lookupDirectlyDeclaredMemberNoSupers(Member member) {
ResolvedMember ret;
if (member.getKind() == Member.FIELD) {
ret = lookupMember(member, getDeclaredFields());
} else {
ret... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (ret != null) {
return ret;
} else {
ResolvedType superType = onType.getSuperclass();
if (superType != null) {
ret = lookupMemberIncludingITDsOnInterfaces(member, superType);
}
if (ret == null) {
ResolvedType[] superInterfaces = onType.getDeclaredInterfaces();
for (int i = 0; i < su... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
return l;
}
/**
* ??? This method is O(N*M) where N = number of methods and M is number of inter-type declarations in my super
*/
public List<ConcreteTypeMunger> getInterTypeMungersIncludingSupers() {
ArrayList<ConcreteTypeMunger> ret = new ArrayList<ConcreteTypeMunger>();
collectInterTypeMungers(ret);
... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
outer: for (Iterator<ConcreteTypeMunger> iter1 = collector.iterator(); iter1.hasNext();) {
ConcreteTypeMunger superMunger = iter1.next();
if (superMunger.getSignature() == null) {
continue;
}
if (!superMunger.getSignature().isAbstract()) {
continue;
}
for (ConcreteTypeMunger myMunger : get... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | * is declared public. (Compiler limitation) (PR70794)
*/
public void checkInterTypeMungers() {
if (isAbstract()) {
return;
}
boolean itdProblem = false;
for (ConcreteTypeMunger munger : getInterTypeMungersIncludingSupers()) {
itdProblem = checkAbstractDeclaration(munger) || itdProblem;
}
if (itdPr... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | * be public. This is a compiler limitation that could be made to work in the future (if someone provides a worthwhile usecase)
*
* @return indicates if the munger failed the check
*/
private boolean checkAbstractDeclaration(ConcreteTypeMunger munger) {
if (munger.getMunger() != null && (munger.getMunger() ins... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | * Returns a ResolvedType object representing the declaring type of this type, or null if this type does not represent a
* non-package-level-type.
* <p/>
* <strong>Warning</strong>: This is guaranteed to work for all member types. For anonymous/local types, the only guarantee is
* given in JLS 13.1, where it gua... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return targetType.getOutermostType().equals(fromType.getOutermostType());
} else if (Modifier.isProtected(modifiers)) {
return samePackage(targetType, fromType) || targetType.isAssignableFrom(fromType);
} else {
return samePackage(targetType, fromType);
}
}
private static boolean samePackage(ResolvedType... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return false;
}
/**
* Look up the actual occurence of a particular type in the hierarchy for 'this' type. The input is going to be a generic type,
* and the caller wants to know if it was used in its RAW or a PARAMETERIZED form in this hierarchy.
*
* returns null if it can't be found.
*/
public ResolvedTy... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (checkTheSuperI != null) {
return checkTheSuperI;
}
}
return superT.discoverActualOccurrenceOfTypeInHierarchy(lookingFor);
}
/**
* Called for all type mungers but only does something if they share type variables with a generic type which they target. When
* this happens this routine will check for t... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | getWorld().getMessageHandler().handleMessage(
MessageUtil.error("The target type for the intertype declaration is not generic",
munger.getSourceLocation()));
return munger;
}
member.resolve(world);
if (debug) {
System.err.println(" Actual target ontype: " + onType + " (" + onType.typeK... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | munger = munger.parameterizedFor(actualTarget);
if (debug) {
System.err.println("New sig: " + munger.getSignature());
}
if (debug) {
System.err.println("=====================================");
}
}
return munger;
}
/**
* Add an intertype munger to this type. isDuringCompilation tells us if w... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | munger = fillInAnyTypeParameters(munger);
sig = munger.getSignature();
if (sig.getKind() == Member.METHOD) {
if (clashesWithExistingMember(munger, getMethods(true, false))) {
return;
}
if (this.isInterface()) {
if (clashesWithExistingMember(munger, Arrays.asList(world.getCoreType(OBJECT)... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (existing.getSignature().getName().equals(thisRealMungerSignatureName)
&& existing.version == NewFieldTypeMunger.VersionTwo
&& existing.getSignature().getDeclaringType()
.equals(newFieldTypeMunger.getSignature().getDeclaringType())) {
StringBuffer s... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | for (Iterator<ConcreteTypeMunger> i = interTypeMungers.iterator(); i.hasNext();) {
ConcreteTypeMunger existingMunger = i.next();
boolean v2itds = munger.getSignature().getKind()== Member.FIELD && (munger.getMunger() instanceof NewFieldTypeMunger) && ((NewFieldTypeMunger)munger.getMunger()).version==NewFieldTypeMu... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
break;
} else {
interTypeConflictError(munger, existingMunger);
interTypeConflictError(existingMunger, munger);
return;
}
}
}
}
if (needsAdding) {
if (!needsToBeAddedEarlier) {
interTypeMungers.add(munger);
} else {
interTypeMungers.add(0,munger);... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | ResolvedTypeMunger rtm = typeTransformer.getMunger();
boolean v2itds = true;
if (rtm instanceof NewFieldTypeMunger && ((NewFieldTypeMunger)rtm).version==NewFieldTypeMunger.VersionOne) {
v2itds = false;
}
while (existingMembers.hasNext()) {
ResolvedMember existingMember = existingMembers.next();
if ... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | continue;
}
if (conflictingSignature(existingMember, typeTransformerSignature,v2itds)) {
if (isVisible(existingMember.getModifiers(), this, typeTransformer.getAspectType())) {
int c = compareMemberPrecedence(typeTransformerSignature, existingMember);
if (c < 0) {
... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | boolean isDuplicateOfPreviousITD = false;
ResolvedType declaringRt = existingMember.getDeclaringType().resolve(world);
WeaverStateInfo wsi = declaringRt.getWeaverState();
if (wsi != null) {
List<ConcreteTypeMunger> mungersAffectingThisType = wsi.getTypeMungers(declaringRt);
if (mung... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | ISourceLocation existingMemberLocation = existingMember.getSourceLocation();
String msg = WeaverMessages.format(WeaverMessages.ITD_MEMBER_CONFLICT, aspectName,
existingMember);
getWorld().getMessageHandler().handleMessage(new Message(msg, typeTransformerLocatio... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | private boolean isDuplicateMemberWithinTargetType(ResolvedMember existingMember, ResolvedType targetType,
ResolvedMember itdMember) {
if ((existingMember.isAbstract() || itdMember.isAbstract())) {
return false;
}
UnresolvedType declaringType = existingMember.getDeclaringType();
if (!targetType.equals(decl... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | * @param aspectType the declaring type of aspect defining the *first* type transformer
* @return true if the override is legal note: calling showMessage with two locations issues TWO messages, not ONE message with
* an additional source location.
*/
public boolean checkLegalOverride(ResolvedMember parent... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
}
world.showMessage(Message.ERROR, WeaverMessages.format(WeaverMessages.CANT_OVERRIDE_FINAL_MEMBER, parent),
child.getSourceLocation(), null);
return false;
}
boolean incompatibleReturnTypes = false;
if (world.isInJava5Mode() && parent.getKind() == Member.METHOD) {
ResolvedType rtP... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | UnresolvedType[] cTypes = child.getParameterTypes();
if (!Arrays.equals(pTypes, cTypes)) {
world.showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.ITD_PARAM_TYPE_MISMATCH, parent, child),
child.getSourceLocation(), parent.getSourceLocation());
return false;
}
}
if (isMoreVis... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
return false;
}
boolean parentStatic = Modifier.isStatic(parent.getModifiers());
boolean childStatic = Modifier.isStatic(child.getModifiers());
if (parentStatic && !childStatic) {
world.showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.ITD_OVERRIDDEN_STATIC, child... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (Modifier.isProtected(m2.getModifiers()) && m2.getName().charAt(0) == 'c') {
UnresolvedType declaring = m2.getDeclaringType();
if (declaring != null) {
if (declaring.getName().equals("java.lang.Object") && m2.getName().equals("clone")) {
return +1;
}
}
}
if (Modifier.isAbstract(m1.getModifi... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
if (isPackage(m1)) {
return Modifier.isPrivate(m2);
}
if (Modifier.isProtected(m1)) {
return (Modifier.isPrivate(m2) || isPackage(m2));
}
if (Modifier.isPublic(m1)) {
return !Modifier.isPublic(m2);
}
throw new RuntimeException("bad modifier: " + m1);
}
private static boolean isPackage(int i) ... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | for (ConcreteTypeMunger m : interTypeMungers) {
ResolvedMember ret = m.getMatchingSyntheticMember(member);
if (ret != null) {
return ret;
}
}
if (world.isJoinpointArrayConstructionEnabled() && this.isArray()) {
if (member.getKind() == Member.CONSTRUCTOR) {
ResolvedMemberImpl ret = new Re... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
static class SuperClassWalker implements Iterator<ResolvedType> {
private ResolvedType curr;
private SuperInterfaceWalker iwalker;
private boolean wantGenerics;
public SuperClassWalker(ResolvedType type, SuperInterfaceWalker iwalker, boolean genericsAware) {
this.curr = type;
this.iwalker = iwalker;
... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public Set<ResolvedType> visited = new HashSet<ResolvedType>();
SuperInterfaceWalker(Iterators.Getter<ResolvedType, ResolvedType> ifaceGetter) {
this.ifaceGetter = ifaceGetter;
}
SuperInterfaceWalker(Iterators.Getter<ResolvedType, ResolvedType> ifaceGetter, ResolvedType interfaceType) {
this.ifaceGetter = i... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (visited.add(next)) {
toPersue.add(next);
}
return next;
}
public void remove() {
throw new UnsupportedOperationException();
}
}
public void clearInterTypeMungers() {
if (isRawType()) {
ResolvedType genericType = getGenericType();
if (genericType.isRawType()) {
System.err.prin... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | ResolvedType superclass = this.getSuperclass();
if (superclass.isMissing()) {
b = true;
} else if (interfaceType.isAssignableFrom(superclass, true)) {
b = false;
}
}
return b;
}
public ResolvedType getTopmostImplementor(ResolvedType interfaceType) {
if (isInterface()) {
return null;
}... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | addPointcutsResolvingConflicts(ret, Arrays.asList(type.getDeclaredPointcuts()), false);
}
addPointcutsResolvingConflicts(ret, Arrays.asList(getDeclaredPointcuts()), true);
for (ResolvedMember member : ret) {
ResolvedPointcutDefinition inherited = (ResolvedPointcutDefinition) member;
if (inherited != null &&... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | getWorld().showMessage(
IMessage.ERROR,
WeaverMessages.format(WeaverMessages.POINTCUT_NOT_VISIBLE, existing.getDeclaringType()
.getName() + "." + existing.getName() + "()", this.getName()),
toAdd.getSourceLocation(), null);
j.remove();
}
continue;
}
}
... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public boolean isExposedToWeaver() {
return false;
}
public WeaverStateInfo getWeaverState() {
return null;
}
/**
* Overridden by ReferenceType to return a sensible answer for parameterized and raw types.
*
* @return
*/
public ReferenceType getGenericType() {
return null;
}
@Override
public... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | @Override
public UnresolvedType parameterize(Map<String, UnresolvedType> typeBindings) {
if (!isParameterizedType()) {
return this;
}
boolean workToDo = false;
for (int i = 0; i < typeParameters.length; i++) {
if (typeParameters[i].isTypeVariableReference() || (typeParameters[i] instanceof BoundedRef... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
return TypeFactory.createParameterizedType(getGenericType(), newTypeParams, getWorld());
}
}
/**
* Similar to the above method, but accumulates the super types
*
* @return
*/ |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | /**
* @return true if assignable to java.lang.Exception
*/
public boolean isException() {
return (world.getCoreType(UnresolvedType.JL_EXCEPTION).isAssignableFrom(this));
}
/**
* @return true if it is an exception and it is a checked one, false otherwise.
*/
public boolean isCheckedException() {
if (!isE... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return false;
}
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 f... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (validBoxing.contains(this.getSignature() + other.getSignature())) {
return true;
}
}
}
if (this.isPrimitiveType() || other.isPrimitiveType()) {
return this.isAssignableFrom(other);
}
return this.isCoerceableFrom(other);
}
/**
* Determines if the variables of this type could be assigned va... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | *
* <pre>
* a.isCoerceableFrom(b, w) == b.isCoerceableFrom(a, w)
* </pre>
*
* </blockquote>
*
* @param other the other type
* @param world the {@link World} in which the possible coersion should be checked.
* @return true iff values of other could possibly be cast to this type.
* @throws NullPoin... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | parameterizedWithTypeVariable = FuzzyBoolean.NO;
return false;
}
for (int i = 0; i < typeParameters.length; i++) {
ResolvedType aType = (ResolvedType) typeParameters[i];
if (aType.isTypeVariableReference()
) {
parameterizedWithTypeVa... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | BoundedReferenceType boundedRT = (BoundedReferenceType) aType;
if (boundedRT.isExtends()) {
boolean b = false;
UnresolvedType upperBound = boundedRT.getUpperBound();
if (upperBound.isParameterizedType()) {
b = ((ResolvedType) upperBound).isParameterizedWithTypeVariable();
} else if (... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
parameterizedWithTypeVariable = FuzzyBoolean.NO;
}
return parameterizedWithTypeVariable.alwaysTrue();
}
protected boolean ajMembersNeedParameterization() {
if (isParameterizedType()) {
return true;
}
ResolvedType superclass = getSuperclass();
if (superclass != null && !superclass.isMissing())... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | /**
* Returns the path to the jar or class file from which this binary aspect came or null if not a binary aspect
*/
public String getBinaryPath() {
return binaryPath;
}
/**
* Undo any temporary modifications to the type (for example it may be holding annotations temporarily whilst some matching is
* occur... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
}
private boolean hasNewParentMungers() {
if ((bits & MungersAnalyzed) == 0) {
bits |= MungersAnalyzed;
for (ConcreteTypeMunger munger : interTypeMungers) {
ResolvedTypeMunger resolvedTypeMunger = munger.getMunger();
if (resolvedTypeMunger != null && resolvedTypeMunger.getKind() == ResolvedTypeM... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return false;
}
public boolean isGroovyObject() {
if ((bits & GroovyObjectInitialized) == 0) {
ResolvedType[] intfaces = getDeclaredInterfaces();
boolean done = false;
if (intfaces != null) {
for (ResolvedType intface : intfaces) {
if (intface.getName().equals("groovy.lang.GroovyObject... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java | /*******************************************************************************
* Copyright (c) 2012 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
* ... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java | runTest("public ITDfs - 1");
}
public void testPublicITDFs_pr73507_2() {
runTest("public ITDfs - 2");
}
public void testPublicITDFs_pr73507_3() {
runTest("public ITDfs - 3");
}
public void testPublicITDFs_pr73507_4() {
runTest("public ITDfs - 4");
}
public void testPublicITDFs_pr73507_5() {
runTest("p... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.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... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.aspectj.apache.bcel.Constants;
import org.aspectj.apache.bcel.classfile.ClassFormatException;
import org.aspectj.apache.bcel.classfile.ConstantPool;
import org.asp... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | import org.aspectj.weaver.AnnotationOnTypeMunger;
import org.aspectj.weaver.BCException;
import org.aspectj.weaver.ConcreteTypeMunger;
import org.aspectj.weaver.Member;
import org.aspectj.weaver.MemberUtils;
import org.aspectj.weaver.MethodDelegateTypeMunger;
import org.aspectj.weaver.NameMangler;
import org.aspectj.we... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
@Override
public String toString() {
return "(BcelTypeMunger " + getMunger() + ")";
}
@Override
public boolean shouldOverwrite() {
return false;
}
public boolean munge(BcelClassWeaver weaver) {
ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.MUNGING_WITH, this);... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | changed = mungePerObjectInterface(weaver, (PerObjectInterfaceTypeMunger) munger);
worthReporting = false;
} else if (munger.getKind() == ResolvedTypeMunger.PerTypeWithinInterface) {
changed = mungePerTypeWithinTransformer(weaver);
worthReporting = false;
} else if (munger.getKind() == ResolvedTypeMunge... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (declaringAspect.isParameterizedOrGenericType()) {
declaringAspect = declaringAspect.getRawType();
}
ResolvedType thisAspect = getAspectType();
AsmRelationshipProvider.addRelationship(model, weaver.getLazyClassGen().getType(), munger, thisAspect);
if (!thisAspect.equals(declaringAspec... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | AsmRelationshipProvider.addRelationship(model, weaver.getLazyClassGen().getType(), munger, declaringAspect);
}
}
}
if (changed && worthReporting && munger != null && !weaver.getWorld().getMessageHandler().isIgnoring(IMessage.WEAVEINFO)) {
String tName = weaver.getLazyClassGen().getType().getSourceLocat... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | new String[] { weaver.getLazyClassGen().getType().getName(), tName,
parentTM.getNewParent().getName(), fName }, weaver.getLazyClassGen()
.getClassName(), getAspectType().getName()));
} else {
weaver.getWorld()
.getMessageHandler()
.handleMessage(
WeaveMes... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | weaver.getLazyClassGen().getType().getName(), tName, kindString, getAspectType().getName(),
fromString }, weaver.getLazyClassGen().getClassName(), getAspectType().getName()));
}
}
CompilationAndWeavingContext.leavingPhase(tok);
return changed;
}
private String getShortname(String path) {
int take... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | LazyClassGen newParentTarget = weaver.getLazyClassGen();
ResolvedType newParent = typeTransformer.getNewParent();
boolean performChange = true;
performChange = enforceDecpRule1_abstractMethodsImplemented(weaver, typeTransformer.getSourceLocation(), newParentTarget,
newParent);
performChange = enforceDecpRul... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
if (newParent.isClass()) {
if (!attemptToModifySuperCalls(weaver, newParentTarget, newParent)) {
return false;
}
newParentTarget.setSuperClass(newParent);
} else {
newParentTarget.addInterface(newParent, getSourceLocation());
}
return true;
}
/**
* Rule 1: For the declare parents t... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | List<ResolvedMember> targetMethods = newParentTarget.getType().getMethodsWithoutIterator(false, true, false);
for (ResolvedMember targetMethod : targetMethods) {
if (!targetMethod.isAbstract() && targetMethod.getName().equals(newParentMethodName)) {
String newParentMethodSig = newParentMethod.getParamete... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | if (m.getMunger() != null && m.getMunger().getKind() == ResolvedTypeMunger.Method) {
ResolvedMember sig = m.getSignature();
if (!Modifier.isAbstract(sig.getModifiers())) {
if (m.isTargetTypeParameterized()) {
ResolvedType genericOnType = getWorld().resolve(sig.getDeclari... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
}
}
return ruleCheckingSucceeded;
}
/**
* Rule 2. Can't extend final types
*/
private boolean enforceDecpRule2_cantExtendFinalClass(BcelClassWeaver weaver, ISourceLocation transformerLoc,
LazyClassGen targetType, ResolvedType newParent) {
if (newParent.isFinal()) {
error(weaver, "Cannot make typ... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | cont = false;
}
} else if (Modifier.isProtected(superMethod.getModifiers())) {
if (subMethod.isDefault() || subMethod.isPrivate()) {
weaver.getWorld()
.getMessageHandler()
.handleMessage(
MessageUtil.error("Cannot reduce the visibility of the inherited method '" + superMethod
+... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | String subReturnTypeSig = subMethod.getGenericReturnTypeSignature();
superReturnTypeSig = superReturnTypeSig.replace('.', '/');
subReturnTypeSig = subReturnTypeSig.replace('.', '/');
if (!superReturnTypeSig.equals(subReturnTypeSig)) {
ResolvedType subType = weaver.getWorld().resolve(subMethod.getReturnType... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedMember superMethod, LazyMethodGen subMethod) {
boolean superMethodStatic = Modifier.isStatic(superMethod.getModifiers());
if (superMethodStatic && !subMethod.isStatic()) {
error(weaver, "This instance method " + subMethod.getName() + subMethod.getParameterSignature()
+ " cannot override the static m... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
return null;
}
/**
* The main part of implementing declare parents extends. Modify super ctor calls to target the new type.
*/
public boolean attemptToModifySuperCalls(BcelClassWeaver weaver, LazyClassGen newParentTarget, ResolvedType newParent) {
ResolvedType currentParentType = newParentTarget.getSuperCl... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedMember newCtor = getConstructorWithSignature(newParent, invokeSpecial.getSignature(cpg));
if (newCtor == null) {
boolean satisfiedByITDC = false;
for (Iterator<ConcreteTypeMunger> ii = newParentTarget.getType()
.getInterTypeMungersIncludingSupers().iterator(); ii.hasNex... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
handle = handle.getNext();
}
}
}
return true;
}
/**
* Creates a nice signature for the ctor, something like "(int,Integer,String)"
*/
private String createReadableCtorSig(ResolvedType newParent, ConstantPool cpg, InvokeInstruction invokeSpecial) {
StringBuffer sb = new StringBuffer();
Type[... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | for (ResolvedMember method : type.getDeclaredJavaMethods()) {
if (MemberUtils.isConstructor(method)) {
if (method.getSignature().equals(searchSig)) {
return method;
}
}
}
return null;
}
private boolean mungePrivilegedAccess(BcelClassWeaver weaver, PrivilegedAccessMunger munger) {
LazyClassGen... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | LazyMethodGen m = i.next();
if (m.getMemberView() != null && m.getMemberView().getKind() == Member.CONSTRUCTOR) {
m.forcePublic();
}
}
return true;
} else if (member.getKind() == Member.STATIC_INITIALIZATION) {
gen.forcePublic();
return true;
} else {
th... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
il.append(InstructionFactory.createReturn(BcelWorld.makeBcelType(field.getType())));
mg.getBody().insert(il);
gen.addMethodGen(mg, getSignature().getSourceLocation());
}
private void addFieldSetter(LazyClassGen gen, ResolvedMember field, ResolvedMember accessMethod) {
LazyMethodGen mg = makeMethodGen(gen, a... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | il.append(InstructionConstants.ALOAD_0);
pos++;
}
for (int i = 0, len = paramTypes.length; i < len; i++) {
Type paramType = paramTypes[i];
il.append(InstructionFactory.createLoad(paramType, pos));
pos += paramType.getSize();
}
il.append(Utility.createInvoke(fact, (BcelWorld) aspectType.getWorld(), m... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | gen.getConstantPool());
}
private boolean mungePerObjectInterface(BcelClassWeaver weaver, PerObjectInterfaceTypeMunger munger) {
LazyClassGen gen = weaver.getLazyClassGen();
if (couldMatch(gen.getBcelObjectType(), munger.getTestPointcut())) {
FieldGen fg = makeFieldGen(gen, AjcMemberMaker.perObjectField(... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | } else {
return false;
}
}
private boolean mungePerTypeWithinTransformer(BcelClassWeaver weaver) {
LazyClassGen gen = weaver.getLazyClassGen();
FieldGen fg = makeFieldGen(gen, AjcMemberMaker.perTypeWithinField(gen.getType(), aspectType));
gen.addField(fg, getSourceLocation());
Type... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
private boolean couldMatch(BcelObjectType bcelObjectType, Pointcut pointcut) {
return !bcelObjectType.isInterface();
}
private boolean mungeNewMemberType(BcelClassWeaver classWeaver, NewMemberClassTypeMunger munger) {
World world = classWeaver.getWorld();
ResolvedType onType = world.resolve(munger.getTar... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | signalError(WeaverMessages.ITDM_ON_ANNOTATION_NOT_ALLOWED, classWeaver, onType);
return false;
}
if (onType.isEnum()) {
signalError(WeaverMessages.ITDM_ON_ENUM_NOT_ALLOWED, classWeaver, onType);
return false;
}
boolean mungingInterface = classGen.isInterface();
boolean onInterface = onType.isInterfac... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedType toLookOn = aspectType;
if (aspectType.isRawType()) {
toLookOn = aspectType.getGenericType();
}
ResolvedMember realMember = getRealMemberForITDFromAspect(toLookOn, memberHoldingAnyAnnotations, false);
if (realMember == null) {
} else {
annotationsOnRealMember =... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | for (DeclareAnnotation declareAnnotationMC : allDecams) {
if (declareAnnotationMC.matches(unMangledInterMethod, world)) {
AnnotationAJ annotation = declareAnnotationMC.getAnnotation();
if (!addedAnnotations.contains(annotation.getType())) {
newMethod.addAnnotation(annotation);
}
... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | createAnyBridgeMethodsForCovariance(classWeaver, munger, unMangledInterMethod, onType, classGen, paramTypes);
}
} else {
}
if (world.isInJava5Mode()) {
String basicSignature = mangledInterMethod.getSignature();
String genericSignature = ((ResolvedMemberImpl) mangledInterMethod).getSi... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | ResolvedType rt = classGen.getType();
if (rt.isInterface()) {
ISourceLocation sloc = munger.getSourceLocation();
classWeaver
.getWorld()
.getMessageHandler()
.handleMessage(
MessageUtil.error(
"ITD target "
+ rt.getName()
+ " is ... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | .handleMessage(
MessageUtil.error(WeaverMessages.format(WeaverMessages.ITD_NON_EXPOSED_IMPLEMENTOR, rtx,
getAspectType().getName()), (sLoc == null ? getAspectType().getSourceLocation() : sLoc)));
} else {
}
return false;
} else {
ResolvedMember mangledInter... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | mg.addAnnotation(new BcelAnnotation(ag, classWeaver.getWorld()));
}
}
copyOverParameterAnnotations(mg, realMember);
}
if (mungingInterface) {
mg.setAccessFlags(Modifier.PUBLIC | Modifier.ABSTRACT);
}
Type[] paramTypes = BcelWorld.makeBcelTypes(mangledInterMet... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | }
body.append(InstructionFactory.createReturn(returnType));
mg.definingType = onType;
if (world.isInJava5Mode()) {
String basicSignature = mangledInterMethod.getSignature();
String genericSignature = ((ResolvedMemberImpl) mangledInterMethod).getSignatureForAttribute();
if (!basicSignature.equ... |
386,049 | Bug 386049 Error "must implement abstract inter-type declaration" even though build is fine | null | verified fixed | 7c6e936 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-08-22T19:43:56Z | 2012-07-26T13:40:00Z | weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | needsbridging = true;
}
UnresolvedType[] originalParams = toBridgeTo.getParameterTypes();
UnresolvedType[] newParams = mungerSignature.getParameterTypes();
for (int ii = 0; ii < originalParams.length; ii++) {
if (!originalParams[ii].getErasureSignature().equals(newParams[ii].getErasureSignature())) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.