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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | }
public ResolvedType[] fromEclipse(ReferenceBinding[] bindings) {
if (bindings == null) {
return ResolvedType.NONE;
}
int len = bindings.length;
ResolvedType[] ret = new ResolvedType[len];
for (int i = 0; i < len; i++) {
ret[i] = fromEclipse(bindings[i]);
}
return ret;
}
public static String get... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return new String(className);
}
/**
* Some generics notes:
*
* Andy 6-May-05 We were having trouble with parameterized types in a couple of places - due to TypeVariableBindings. When we
* see a TypeVariableBinding now we default to either the firstBound if it is specified or java.lang.Object. Not sure when/i... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | UnresolvedType componentType = fromBinding(aBinding.leafComponentType);
return UnresolvedType.makeArray(componentType, aBinding.dimensions);
}
if (binding instanceof WildcardBinding) {
WildcardBinding eWB = (WildcardBinding) binding;
UnresolvedType theBound = null;
if (eWB.bound instance... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | UnresolvedType[] arguments = null;
if (ptb.arguments != null) {
arguments = new UnresolvedType[ptb.arguments.length];
for (int i = 0; i < arguments.length; i++) {
arguments[i] = fromBinding(ptb.arguments[i]);
}
}
String baseTypeSignature = null;
ResolvedType baseType = getWorld().reso... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return TypeFactory.createUnresolvedParameterizedType(baseTypeSignature, arguments);
}
if (binding.isGenericType() && !binding.isParameterizedType() && !binding.isRawType()) {
TypeVariableBinding[] tvbs = binding.typeVariables();
TypeVariable[] tVars = new TypeVariable[tvbs.length];
for (int i =... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return UnresolvedType.forSignature(new String(ltb.enclosingType.signature()));
}
}
UnresolvedType ut = UnresolvedType.forSignature(new String(binding.signature()));
return ut;
}
/**
* Some type variables refer to themselves recursively, this enables us to avoid recursion problems.
*/
private static M... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | }
String name = CharOperation.charToString(aTypeVariableBinding.sourceName());
UnresolvedTypeVariableReferenceType ret = new UnresolvedTypeVariableReferenceType();
typeVariableBindingsInProgress.put(aTypeVariableBinding, ret);
TypeVariable tv = new TypeVariable(name);
ret.setTypeVariable(tv);
Unres... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | if (aTypeVariableBinding.declaringElement instanceof MethodBinding) {
typeVariablesForThisMember.put(new String(aTypeVariableBinding.sourceName), ret);
}
typeVariableBindingsInProgress.remove(aTypeVariableBinding);
return ret;
}
public UnresolvedType[] fromBindings(TypeBinding[] bindings) {
if (bindings ==... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return getWorld().getDeclareAnnotationOnMethods();
}
public boolean areTypeMungersFinished() {
return finishedTypeMungers != null;
}
public void finishTypeMungers() {
List<ConcreteTypeMunger> ret = new ArrayList<ConcreteTypeMunger>();
List<ConcreteTypeMunger> baseTypeMungers = getWorld().getCrosscuttingMem... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | if (concrete.getMunger() != null && EclipseTypeMunger.supportsKind(concrete.getMunger().getKind())) {
AbstractMethodDeclaration method = null;
if (concrete instanceof EclipseTypeMunger) {
method = ((EclipseTypeMunger) concrete).getSourceMethod();
}
EclipseTypeMunger ret = new EclipseTypeMunger(this, con... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | * Conversion from a methodbinding (eclipse) to a resolvedmember (aspectj) is now done in the scope of some type variables.
* Before converting the parts of a methodbinding (params, return type) we store the type variables in this structure, then
* should any component of the method binding refer to them, we grab th... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return makeResolvedMember(binding, declaringType, binding.isConstructor() ? Member.CONSTRUCTOR : Member.METHOD);
}
public ResolvedMemberImpl makeResolvedMember(MethodBinding binding, TypeBinding declaringType, MemberKind memberKind) {
UnresolvedType[] ajTypeRefs = null;
typeVariablesForThisMember.clear();
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | if (ajTypeRefs != null) {
TypeVariable[] tVars = new TypeVariable[ajTypeRefs.length];
for (int i = 0; i < ajTypeRefs.length; i++) {
tVars[i] = ((TypeVariableReference) ajTypeRefs[i]).getTypeVariable();
}
ret.setTypeVariables(tVars);
}
typeVariablesForThisMember.clear();
ret.resolve(world);
retur... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | } else {
ret = (TypeBinding) typexToBinding.get(typeX);
}
}
if (ret == null) {
ret = makeTypeBinding1(typeX);
if (ret != null) {
if (!(typeX instanceof BoundedReferenceType) && !(typeX instanceof UnresolvedTypeVariableReferenceType)) {
if (typeX.isRawType()) {
rawTypeXToBinding.put(typeX... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | }
return false;
}
private ReferenceBinding baseTypeForParameterizedType;
private int indexOfTypeParameterBeingConverted;
private TypeBinding makeTypeBinding1(UnresolvedType typeX) {
if (typeX.isPrimitiveType()) {
if (typeX.equals(UnresolvedType.BOOLEAN)) {
return TypeBinding.BOOLEAN;
}
if (type... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | if (typeX.equals(UnresolvedType.SHORT)) {
return TypeBinding.SHORT;
}
if (typeX.equals(UnresolvedType.VOID)) {
return TypeBinding.VOID;
}
throw new RuntimeException("weird primitive type " + typeX);
} else if (typeX.isArray()) {
int dim = 0;
while (typeX.isArray()) {
dim++;
typeX = t... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return makeTypeVariableBindingFromAJTypeVariable(((TypeVariableReference) typeX).getTypeVariable());
} else if (typeX.isRawType()) {
ReferenceBinding baseTypeBinding = lookupBinding(typeX.getBaseName());
RawTypeBinding rtb = lookupEnvironment.createRawType(baseTypeBinding, baseTypeBinding.enclosingType());
r... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | TypeBinding bound = null;
if (brt.isExtends()) {
boundkind = Wildcard.EXTENDS;
bound = makeTypeBinding(brt.getUpperBound());
} else if (brt.isSuper()) {
boundkind = Wildcard.SUPER;
bound = makeTypeBinding(brt.getLowerBound());
}
TypeBinding[] otherBounds = null;
if (brt.getAdditi... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | }
public TypeBinding[] makeTypeBindings(UnresolvedType[] types) {
int len = types.length;
TypeBinding[] ret = new TypeBinding[len];
for (int i = 0; i < len; i++) {
ret[i] = makeTypeBinding(types[i]);
}
return ret;
}
private ReferenceBinding[] makeReferenceBindings(UnresolvedType[] types) {
int len =... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | */
public FieldBinding makeFieldBinding(ResolvedMember member) {
return internalMakeFieldBinding(member, null);
}
/**
* Build a new Eclipse SyntheticFieldBinding for an AspectJ ResolvedMember.
*/
public SyntheticFieldBinding createSyntheticFieldBinding(SourceTypeBinding owningType, ResolvedMember member) ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | for (Iterator iter = aliases.iterator(); iter.hasNext();) {
String element = (String) iter.next();
typeVariableToTypeBinding.put(element, declaringType.typeVariables()[i++]);
}
}
currentType = declaringType;
FieldBinding fb = null;
if (member.getName().startsWith(NameMangler.PREFIX)) {
fb = new Sy... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return internalMakeMethodBinding(member, aliases);
}
/**
* Creates a method binding for a resolvedmember taking into account type variable aliases - this variant can take an
* aliasTargetType and should be used when the alias target type cannot be retrieved from the resolvedmember.
*/
public MethodBinding make... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | tvbs = makeTypeVariableBindingsFromAJTypeVariables(member.getTypeVariables());
}
}
ReferenceBinding declaringType = (ReferenceBinding) makeTypeBinding(member.getDeclaringType());
if (aliases != null && aliases.size() != 0 && declaringType.typeVariables() != null
&& declaringType.typeVariables().len... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return mb;
}
/**
* Convert a bunch of type variables in one go, from AspectJ form to Eclipse form.
*/
private TypeVariableBinding[] makeTypeVariableBindingsFromAJTypeVariables(TypeVariable[] typeVariables) {
int len = typeVariables.length;
TypeVariableBinding[] ret = new TypeVariableBinding[l... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | private TypeVariableBinding makeTypeVariableBindingFromAJTypeVariable(TypeVariable tv) {
TypeVariableBinding tvBinding = (TypeVariableBinding) typeVariableToTypeBinding.get(tv.getName());
if (currentType != null) {
TypeVariableBinding tvb = currentType.getTypeVariable(tv.getName().toCharArray());
if (tvb != n... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | } else {
TypeBinding tbs[] = makeTypeBindings(tv.getSuperInterfaces());
ReferenceBinding[] rbs = new ReferenceBinding[tbs.length];
for (int i = 0; i < tbs.length; i++) {
rbs[i] = (ReferenceBinding) tbs[i];
}
tvBinding.superInterfaces = rbs;
}
}
return tvBinding;
}
public MethodBinding ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | public Shadow makeShadow(ASTNode location, ReferenceContext context) {
return EclipseShadow.makeShadow(this, location, context);
}
public Shadow makeShadow(ReferenceContext context) {
return EclipseShadow.makeShadow(this, (ASTNode) context, context);
}
public void addSourceTypeBinding(SourceTypeBinding binding,... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | }
EclipseSourceType t = new EclipseSourceType(name, this, binding, decl, unit);
if (binding.isGenericType()) {
UnresolvedType complexTx = fromBinding(binding);
ResolvedType cName = world.resolve(complexTx, true);
ReferenceType complexName = null;
if (!cName.isMissing()) {
complexName = (Refer... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | public boolean isXSerializableAspects() {
return xSerializableAspects;
}
public ResolvedMember fromBinding(MethodBinding binding) {
return new ResolvedMemberImpl(Member.METHOD, fromBinding(binding.declaringClass), binding.modifiers,
fromBinding(binding.returnType), CharOperation.charToString(binding.selector)... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | /* *******************************************************************
* Copyright (c) 2002 Contributors
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
* http... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | public static final ReferenceType[] EMPTY_ARRAY = new ReferenceType[0];
/**
* For generic types, this list holds references to all the derived raw and parameterized versions. We need this so that if the
* generic delegate is swapped during incremental compilation, the delegate of the derivatives is swapped also.
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | WeakReference<ResolvedType[]> parameterizedInterfaces = new WeakReference<ResolvedType[]>(null);
Collection<Declare> parameterizedDeclares = null;
private ResolvedType[] annotationTypes = null;
private AnnotationAJ[] annotations = null;
private ResolvedType newSuperclass;
private ResolvedType[] newIn... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | ReferenceType genericReferenceType = (ReferenceType) theGenericType;
this.typeParameters = theParameters;
this.genericType = genericReferenceType;
this.typeKind = TypeKind.PARAMETERIZED;
this.delegate = genericReferenceType.getDelegate();
genericReferenceType.addDependentType(this);
}
/**
* Constructor us... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
return makeDeclaredSignature(genericType, typeParameters);
}
/**
* Create a reference type for a generic type
*/
public ReferenceType(UnresolvedType genericType, World world) {
super(genericType.getSignature(), world);
typeKind = TypeKind.GENERIC;
}
@Override
public boolean isClass() {
return getDel... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | @Override
public void addAnnotation(AnnotationAJ annotationX) {
if (annotations == null) {
annotations = new AnnotationAJ[1];
annotations[0] = annotationX;
} else {
AnnotationAJ[] newAnnotations = new AnnotationAJ[annotations.length + 1];
System.arraycopy(annotations, 0, newAnnotations, 1, annotations.... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | annotationTypes[0] = ofType;
} else {
ResolvedType[] newAnnotationTypes = new ResolvedType[annotationTypes.length + 1];
System.arraycopy(annotationTypes, 0, newAnnotationTypes, 1, annotationTypes.length);
newAnnotationTypes[0] = ofType;
annotationTypes = newAnnotationTypes;
}
}
@Override
public Resol... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | AnnotationAJ[] axs = getDelegate().getAnnotations();
if (axs != null) {
for (int i = 0; i < axs.length; i++) {
if (axs[i].getTypeSignature().equals(ofType.getSignature())) {
return axs[i];
}
}
}
if (annotations != null) {
String searchSig = ofType.getSignature();
for (int i = 0; i < annot... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | @Override
public boolean isAnnotation() {
return getDelegate().isAnnotation();
}
@Override
public boolean isAnonymous() {
return getDelegate().isAnonymous();
}
@Override
public boolean isNested() {
return getDelegate().isNested();
}
public ResolvedType getOuterClass() {
return getDelegate().getOuterCla... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | @Override
public boolean isCoerceableFrom(ResolvedType o) {
ResolvedType other = o.resolve(world);
if (this.isAssignableFrom(other) || other.isAssignableFrom(this)) {
return true;
}
if (this.isParameterizedType() && other.isParameterizedType()) {
return isCoerceableFromParameterizedType(other);
}
if ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
}
}
return true;
}
private final boolean isCoerceableFromParameterizedType(ResolvedType other) {
if (!other.isParameterizedType()) {
return false;
}
ResolvedType myRawType = getRawType();
ResolvedType theirRawType = other.getRawType();
if (myRawType == theirRawType || myRawType.isCoerceableFrom(... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | return false;
}
} else if (theirTypeParameters[i].isTypeVariableReference()) {
TypeVariableReferenceType tvrt = (TypeVariableReferenceType) theirTypeParameters[i];
TypeVariable tv = tvrt.getTypeVariable();
tv.resolve(world);
if (!tv.canBeBoundTo(myTypeParameters[i])) {
r... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
return false;
}
@Override
public boolean isAssignableFrom(ResolvedType other) {
return isAssignableFrom(other, false);
}
@Override
public boolean isAssignableFrom(ResolvedType other, boolean allowMissing) {
if (other.isPrimitiveType()) {
if (!world.isInJava5Mode()) {
return false;
}
if (R... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | return isAssignableFrom(other.getRawType());
}
boolean thisGeneric = this.isGenericType();
if (thisGeneric && other.isParameterizedOrRawType()) {
return isAssignableFrom(other.getGenericType());
}
if (this.isParameterizedType()) {
if (((ReferenceType) this.getRawType()).isAssignableFrom(other)) {
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | continue;
}
ResolvedType mp = myParameters[i];
ResolvedType tp = theirParameters[i];
if (mp.isParameterizedType() && tp.isParameterizedType()) {
if (mp.getGenericType().equals(tp.getGenericType())) {
UnresolvedType[] mtps = mp.getTypeParameters();
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
if (myParameters[i].isTypeVariableReference() && theirParameters[i].isTypeVariableReference()) {
TypeVariable myTV = ((TypeVariableReferenceType) myParameters[i]).getTypeVariable();
boolean b = myTV.canBeBoundTo(theirParameters[i]);
if (!b) {
parametersAssignable = false;
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
if (isTypeVariableReference() && !other.isTypeVariableReference()) {
TypeVariable aVar = ((TypeVariableReference) this).getTypeVariable();
return aVar.resolve(world).canBeBoundTo(other);
}
if (other.isTypeVariableReference()) {
TypeVariableReferenceType otherType = (TypeVariableReferenceType) other;... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | if (b) {
return true;
}
}
ResolvedType superclass = other.getSuperclass();
if (superclass != null) {
boolean b;
if (thisRaw && superclass.isParameterizedOrGenericType()) {
b = this.isAssignableFrom(superclass.getRawType(), allowMissing);
} else {
b = this.isAssignableFrom(superclass, allow... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
@Override
public WeaverStateInfo getWeaverState() {
return getDelegate().getWeaverState();
}
@Override
public ResolvedMember[] getDeclaredFields() {
if (parameterizedFields != null) {
return parameterizedFields;
}
if (isParameterizedType() || isRawType()) {
ResolvedMember[] delegateFields = getDele... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | return interfaces;
}
ResolvedType[] delegateInterfaces = getDelegate().getDeclaredInterfaces();
if (isRawType()) {
if (newInterfaces != null) {
throw new IllegalStateException(
"The raw type should never be accumulating new interfaces, they should be on the generic type. Type is "
+ this.get... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | if (delegateInterfaces[i].isParameterizedType()) {
interfaces[i] = delegateInterfaces[i].parameterize(getMemberParameterizationMap()).resolve(world);
} else {
interfaces[i] = delegateInterfaces[i];
}
}
parameterizedInterfaces = new WeakReference<ResolvedType[]>(interfaces);
return interfaces;... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | parameterizedInterfaces = new WeakReference<ResolvedType[]>(delegateInterfaces);
}
return delegateInterfaces;
}
/**
* Locates the named type variable in the list of those on this generic type and returns the type parameter from the second list
* supplied. Returns null if it can't be found
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | * method determines the subset to use by looking at the type variable names used. For example: <code>
* class Foo<T extends String,E extends Number> implements SuperInterface<T> {}
* </code> where <code>
* interface SuperInterface<Z> {}
* </code> In that example, a use of the 'Foo' raw type should know that it ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | } else {
retVal[i] = tParms[i];
}
}
return retVal;
}
/**
* Returns the position within the set of type variables for this type for the specified type variable name. Returns -1 if there
* is no type variable with the specified name.
*/
private int getRank(String tvname) {
TypeVariable[] thisTypesTV... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters, this, isParameterizedType());
}
return parameterizedMethods;
} else {
return getDelegate().getDeclaredMethods();
}
}
@Override
public ResolvedMember[] getDeclaredPointcuts() {
if (parameterizedPointcuts != null) {
return par... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | TypeVariable[] tvs = getGenericType().getTypeVariables();
parameters = new UnresolvedType[tvs.length];
for (int i = 0; i < tvs.length; i++) {
parameters[i] = tvs[i].getFirstBound();
}
}
return parameters;
}
@Override
public TypeVariable[] getTypeVariables() {
if (this.typeVariables == null) {
t... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | return parameterizedDeclares;
}
Collection<Declare> declares = null;
if (ajMembersNeedParameterization()) {
Collection<Declare> genericDeclares = getDelegate().getDeclares();
parameterizedDeclares = new ArrayList<Declare>();
Map<String, UnresolvedType> parameterizationMap = getAjMemberParameterizationMap... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | @Override
public Collection<ResolvedMember> getPrivilegedAccesses() {
return getDelegate().getPrivilegedAccesses();
}
@Override
public int getModifiers() {
return getDelegate().getModifiers();
}
WeakReference<ResolvedType> superclassReference = new WeakReference<ResolvedType>(null);
@Override
public Resolve... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | return newSuperclass.parameterize(getMemberParameterizationMap()).resolve(getWorld());
}
if (getDelegate().isCacheable()) {
superclassReference = new WeakReference<ResolvedType>(ret);
}
return newSuperclass;
}
try {
world.setTypeVariableLookupScope(this);
ret = getDelegate().getSuperclass();
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | }
this.delegate = delegate;
for (ReferenceType dependent : derivativeTypes) {
dependent.setDelegate(delegate);
}
if (isRawType() && getGenericType() != null) {
ReferenceType genType = (ReferenceType) getGenericType();
if (genType.getDelegate() != delegate) {
genType.setDelegate(delegate);
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | this.endPos = endPos;
}
public void setStartPos(int startPos) {
this.startPos = startPos;
}
@Override
public boolean doesNotExposeShadowMungers() {
return getDelegate().doesNotExposeShadowMungers();
}
public String getDeclaredGenericSignature() {
return getDelegate().getDeclaredGenericSignature();
}
publ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | typeKind = TypeKind.SIMPLE;
signatureErasure = null;
}
@Override
public ResolvedType getGenericType() {
if (isGenericType()) {
return this;
}
return genericType;
}
/**
* a parameterized signature starts with a "P" in place of the "L", see the comment on signatures in UnresolvedType.
*
* @param aG... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | StringBuffer ret = new StringBuffer();
String rawSig = aGenericType.getErasureSignature();
ret.append(rawSig.substring(0, rawSig.length() - 1));
ret.append("<");
for (int i = 0; i < someParameters.length; i++) {
try {
ret.append(((ReferenceType) someParameters[i]).getSignatureForAttribute());
} catch ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | if (newParent.isClass()) {
newSuperclass = newParent;
superclassReference = new WeakReference<ResolvedType>(null);
} else {
if (newInterfaces == null) {
newInterfaces = new ResolvedType[1];
newInterfaces[0] = newParent;
} else {
ResolvedType[] existing = getDelegate().getDeclaredInterfaces();
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | private static int AnnotationMarkedInherited = 0x0002;
private static int MungersAnalyzed = 0x0004;
private static int HasParentMunger = 0x0008;
private static int TypeHierarchyCompleteBit = 0x0010;
private static int GroovyObjectInitialized = 0x0020;
private static int IsGroovyObject = 0x0040;
protected Resolved... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public abstract ResolvedMember[] getDeclaredFields();
public abstract ResolvedMember[] getDeclaredMethods();
public abstract ResolvedType[] getDeclaredInterfaces();
public abstract ResolvedMember[] getDeclaredPointcuts();
public boolean isCacheable() {
return true;
}
/**
* @return the superclass of this type,... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public AnnotationAJ getAnnotationOfType(UnresolvedType ofType) {
return null;
}
protected static Set<String> validBoxing = new HashSet<String>();
static {
validBoxing.add("Ljava/lang/Byte;B");
validBoxing.add("Ljava/lang/Character;C");
validBoxing.add("Ljava/lang/Double;D");
validBoxing.add("Lj... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return null;
}
public World getWorld() {
return world;
}
@Override
public final boolean equals(Object other) {
if (other instanceof ResolvedType) {
return this == other;
} else {
return super.equals(other);
}
}
/**
* returns an iterator through all of the fields of this type, in order for che... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public Iterator<ResolvedType> get(ResolvedType o) {
return dupFilter.filter(o.getDirectSupertypes());
}
};
return Iterators.mapOver(Iterators.recur(this, typeGetter), FieldGetterInstance);
}
/**
* returns an iterator through all of the methods of this type, in order for checking from JVM spec 2ed 5.4.3.3... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public Iterator<ResolvedMember> get(ResolvedType type) {
return Iterators.array(type.getDeclaredMethods());
}
}
/**
* An Iterators.Getter that returns an iterator over all pointcuts declared on some resolved type.
*/
private static class PointcutGetter implements Iterators.Getter<ResolvedType, ResolvedMembe... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | System.arraycopy(methods, 0, methods2, 0, methods.length);
additional = methods.length;
for (ConcreteTypeMunger typeTransformer : type.interTypeMungers) {
ResolvedMember rm = typeTransformer.getSignature();
if (rm != null) {
methods2[additional++] = typeTransformer.getSignature();
}
... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | * @param wantGenerics true if the caller wants full generic information
* @param wantDeclaredParents true if the caller even wants those parents introduced via declare parents
* @return an iterator over all types in the hierarchy of this type
*/
public Iterator<ResolvedType> getHierarchy() {
return getHierarch... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (newType.getSignature().equals(iface.getSignature())) {
forRemoval.add(ii);
}
}
}
}
}
if (forRemoval.size() > 0) {
ResolvedType[] interfaces2 = new ResolvedType[interfaces.length - forRemoval.size()];
int p = 0;
for (int ii = 0; ii < interfac... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return Iterators.append1(superClassesIterator, superInterfaceWalker);
}
}
/**
* Return a list of methods, first those declared on this class, then those declared on the superclass (recurse) and then those
* declared on the superinterfaces. This is expensive - use the getMethods() method if you can!
*/
public... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (includeITDs && resolvedType.interTypeMungers != null) {
for (ConcreteTypeMunger typeTransformer : interTypeMungers) {
ResolvedMember rm = typeTransformer.getSignature();
if (rm != null) {
collector.add(typeTransformer.getSignature());
}
}
}
if (!resolvedType.isInterface() && !resolved... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | for (int j = 0; j < resolvedType.interTypeMungers.size(); j++) {
ConcreteTypeMunger munger = resolvedType.interTypeMungers.get(j);
if (munger.getMunger() != null && munger.getMunger().getKind() == ResolvedTypeMunger.Parent
&& ((NewParentTypeMunger) munger.getMunger()).getNewParent().equals(iface)
) {... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (superType != null && !superType.isMissing()) {
if (!genericsAware && (superType.isParameterizedType() || superType.isGenericType())) {
superType = superType.getRawType();
}
recurseHierarchy(knowninterfaces, collector, superType, includeITDs, allowMissing, genericsAware);
}
}
Resolved... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | if (allowMissing && iface.isMissing()) {
if (iface instanceof MissingResolvedTypeWithKnownSignature) {
((MissingResolvedTypeWithKnownSignature) iface).raiseWarningOnMissingInterfaceWhilstFindingMethods();
}
} else {
recurseHierarchy(knowninterfaces, collector, iface, includeITDs, allowMissing, ... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
}
return null;
}
/**
* described in JVM spec 2ed 5.4.3.3. Doesnt check ITDs.
*
* <p>
* Check the current type for the method. If it is not found, check the super class and any super interfaces. Taking care not to
* process interfaces multiple times.
*/
public ResolvedMember lookupMethod(Membe... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | }
}
}
}
}
ResolvedType superclass = type.getSuperclass();
if (superclass != null) {
typesTolookat.add(superclass);
}
ResolvedType[] superinterfaces = type.getDeclaredInterfaces();
if (superinterfaces != null) {
for (int i = 0; i < superinterfaces.length; i++) {
Reso... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | return typeTransformer.getSignature();
}
}
return null;
}
/**
* return null if not found
*/
private ResolvedMember lookupMember(Member m, ResolvedMember[] a) {
for (int i = 0; i < a.length; i++) {
ResolvedMember f = a[i];
if (matches(f, m)) {
return f;
}
}
return null;
}
/**
* Loo... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | assert aMember.getKind() == Member.FIELD;
toSearch = getFields();
}
while (toSearch.hasNext()) {
ResolvedMember candidate = toSearch.next();
if (eraseGenerics) {
if (candidate.hasBackingGenericMember()) {
candidate = candidate.getBackingGenericMember();
}
}
if (candidate.matches(aMem... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | boolean equalSignatures = m1.getSignature().equals(m2.getSignature());
if (equalSignatures) {
return true;
}
boolean equalCovariantSignatures = m1.getParameterSignature().equals(m2.getParameterSignature());
if (equalCovariantSignatures) {
return true;
}
return false;
}
public static boolean... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | UnresolvedType[] p2 = m2.getGenericParameterTypes();
if (p1 == null) {
p1 = m1.getParameterTypes();
}
if (p2 == null) {
p2 = m2.getParameterTypes();
}
int n = p1.length;
if (n != p2.length) {
return false;
}
for (int i = 0; i < n; i++) {
if (!p1[i].equals(p2[i])) {
return false;
}
}... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | public Iterator<ResolvedMember> getPointcuts() {
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.filte... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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(... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10: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... |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | Missing() {
super(MISSING_NAME, null);
}
@Override |
374,745 | Bug 374745 Performance regression in 1.6.12 | null | resolved fixed | 549d227 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2012-03-23T23:57:10Z | 2012-03-20T10:40:00Z | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java | 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[] getDeclaredFields() {
return ResolvedMember.NONE;
}
@Override
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.