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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | foundOneOfIncorrectVisibility = resolvedMember;
}
}
}
}
if (hasNoCtorOrANoArgOne) {
break;
}
}
if (!hasNoCtorOrANoArgOne) {
if (foundOneOfIncorrectVisibility != null) {
reportError(
"@DeclareParents: defaultImpl=\""... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | for (int i = 0; i < methods.length; i++) {
ResolvedMember method = methods[i];
if (method.isAbstract()) {
hasAtLeastOneMethod = true;
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | struct.ajAttributes.add(new AjAttribute.TypeMunger(mdtm));
}
}
if (hasAtLeastOneMethod && defaultImplClassName != null) {
ResolvedMember fieldHost = AjcMemberMaker.itdAtDeclareParentsField(null, fieldType, struct.enclosingType);
struct.ajAttributes.add(new AjAttribute.TypeM... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | if (args != null) {
for (int t = 0; t < args.length; t++) {
if (t > 0) {
sb.append(",");
}
sb.append(args[t].toString());
}
}
sb.append(")'");
return sb.toString();
}
/**
* Process any @DeclareMixin annotation.
*
* Example Declaration <br>
*
* @DeclareMixin("Foo+") public I cr... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | World world = struct.enclosingType.getWorld();
NameValuePair declareMixinPatternNameValuePair = getAnnotationElement(declareMixinAnnotation, VALUE);
String declareMixinPattern = declareMixinPatternNameValuePair.getValue().stringifyValue();
TypePattern targetTypePattern = parseTypePattern(declareMixinPattern, s... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | ResolvedType ajInterfaceType = UnresolvedType.forSignature(interfaceType.getClassString().replace("/", "."))
.resolve(world);
if (ajInterfaceType.isMissing() || !ajInterfaceType.isInterface()) {
reportError(
"Types listed in the 'interfaces' DeclareMixin annotation value must be valid interfaces. ... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | newParents.add(newParent);
}
if (newParents.size() == 0) {
return false;
}
FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);
DeclareParents dp = new DeclareParentsMixin(targetTypePa... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | targetTypePattern, struct.method.getName(), struct.method.getSignature());
mdtm.setFieldType(methodReturnType);
mdtm.setSourceLocation(struct.enclosingType.getSourceLocation());
struct.ajAttributes.add(new AjAttribute.TypeMunger(mdtm));
}
}
}
if (hasAtLeastOneMethod) {
ResolvedMember fie... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | if (argumentNames != null) {
struct.unparsedArgumentNames = argumentNames;
}
FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
try {
bindings = extractBindings(struct);
} catch (UnreadableDebugInfoException unreadableDebugInfoException) {
return false;
}
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
}
return false;
}
/**
* Read @After
*
* @param runtimeAnnotations
* @param struct
* @return true if found
*/
private static boolean handleAfterAnnotation(RuntimeAnnos runtimeAnnotations, AjAttributeMethodStruct struct,
ResolvedPointcutDefinition preResolvedPointcut) {
AnnotationGen after = ge... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | int extraArgument = extractExtraArgument(struct.method);
Pointcut pc = null;
if (preResolvedPointcut != null) {
pc = preResolvedPointcut.getPointcut();
} else {
pc = parsePointcut(afterAdvice.getValue().stringifyValue(), struct, false);
if (pc == null) {
return false;
}
pc.res... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | ResolvedPointcutDefinition preResolvedPointcut, BcelMethod owningMethod)
throws ReturningFormalNotDeclaredInAdviceSignatureException {
AnnotationGen after = getAnnotation(runtimeAnnotations, AjcMemberMaker.AFTERRETURNING_ANNOTATION);
if (after != null) {
NameValuePair annValue = getAnnotationElement(after, VA... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | String[] pNames = owningMethod.getParameterNames();
if (pNames == null || pNames.length == 0 || !Arrays.asList(pNames).contains(returned)) {
throw new ReturningFormalNotDeclaredInAdviceSignatureException(returned);
}
}
}
String argumentNames = getArgNamesValue(after);
if (argumentNames != n... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | pc = parsePointcut(pointcut, struct, false);
if (pc == null) {
return false;
}
pc.resolve(binding);
}
setIgnoreUnboundBindingNames(pc, bindings);
ISourceLocation sl = struct.context.makeSourceLocation(struct.bMethod.getDeclarationLineNumber(), struct.bMethod
.getDeclarationOffset());
s... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | NameValuePair annThrown = getAnnotationElement(after, THROWING);
String pointcut = null;
String thrownFormal = null;
if ((annValue != null && annPointcut != null) || (annValue == null && annPointcut == null)) {
reportError("@AfterThrowing: either 'value' or 'poincut' must be provided, not both", struct... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | String argumentNames = getArgNamesValue(after);
if (argumentNames != null) {
struct.unparsedArgumentNames = argumentNames;
}
FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
try {
bindings = (thrownFormal == null ? extractBindings(struct) : extractBindings(str... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | setIgnoreUnboundBindingNames(pc, bindings);
ISourceLocation sl = struct.context.makeSourceLocation(struct.bMethod.getDeclarationLineNumber(), struct.bMethod
.getDeclarationOffset());
struct.ajAttributes.add(new AjAttribute.AdviceAttribute(AdviceKind.AfterThrowing, pc, extraArgument, sl.getOffset(), sl
.... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | } catch (UnreadableDebugInfoException unreadableDebugInfoException) {
return false;
}
IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);
int extraArgument = extractExtraArgument(struct.method);
Pointcut pc = null;
if (preResolvedPointcut != null) {
pc =... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * @param runtimeAnnotations
* @param struct
* @return true if a pointcut was handled
*/
private static boolean handlePointcutAnnotation(RuntimeAnnos runtimeAnnotations, AjAttributeMethodStruct struct) {
AnnotationGen pointcut = getAnnotation(runtimeAnnotations, AjcMemberMaker.POINTCUT_ANNOTATION);
if (pointc... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | binding = null;
} else {
binding = new BindingScope(struct.enclosingType, struct.context, extractBindings(struct));
}
} catch (UnreadableDebugInfoException e) {
return false;
}
UnresolvedType[] argumentTypes = new UnresolvedType[struct.method.getArgumentTypes().length];
for (int i = 0; i < argument... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | pc = parsePointcut(pointcutExpr.getValue().stringifyValue(), struct, true);
if (pc == null) {
return false;
}
pc.setLocation(struct.context, -1, -1);
}
}
struct.ajAttributes.add(new AjAttribute.PointcutDeclarationAttribute(new LazyResolvedPointcutDefinition(
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * @param struct
* @return true if found
*/
private static boolean handleDeclareErrorOrWarningAnnotation(AsmManager model, RuntimeAnnos runtimeAnnotations,
AjAttributeFieldStruct struct) {
AnnotationGen error = getAnnotation(runtimeAnnotations, AjcMemberMaker.DECLAREERROR_ANNOTATION);
boolean hasError = fals... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | if (!STRING_DESC.equals(struct.field.getSignature()) || struct.field.getConstantValue() == null) {
reportError("@DeclareWarning used on a non String constant field", struct);
return false;
}
Pointcut pc = parsePointcut(declareWarning.getValue().stringifyValue(), struct, false);
if (pc == null) {
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | private static void setDeclareErrorOrWarningLocation(AsmManager model, DeclareErrorOrWarning deow, AjAttributeFieldStruct struct) {
IHierarchy top = (model == null ? null : model.getHierarchy());
if (top != null && top.getRoot() != null) {
IProgramElement ipe = top.findElementForLabel(top.getRoot(), IProgramElem... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * @return null if no debug info is available
*/
private static FormalBinding[] extractBindings(AjAttributeMethodStruct struct) throws UnreadableDebugInfoException {
Method method = struct.method;
String[] argumentNames = struct.getArgumentNames();
if (argumentNames.length != method.getArgumentTypes().length... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
}
return bindings.toArray(new FormalBinding[] {});
}
private static FormalBinding[] extractBindings(AjAttributeMethodStruct struct, String excludeFormal)
throws UnreadableDebugInfoException {
FormalBinding[] bindings = extractBindings(struct);
for (int i = 0; i < bindings.length; i++) {
FormalBin... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
/**
* Compute the flag for the xxxJoinPoint extra argument
*
* @param method
* @return extra arg flag
*/
private static int extractExtraArgument(Method method) {
Type[] methodArgs = method.getArgumentTypes();
String[] sigs = new String[methodArgs.length];
for (int i = 0; i < methodArgs.length; i++)... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | if (AjcMemberMaker.TYPEX_JOINPOINT.getSignature().equals(argumentSignatures[i])) {
extraArgument |= Advice.ThisJoinPoint;
} else if (AjcMemberMaker.TYPEX_PROCEEDINGJOINPOINT.getSignature().equals(argumentSignatures[i])) {
extraArgument |= Advice.ThisJoinPoint;
} else if (AjcMemberMaker.TYPEX_STATICJOINPOI... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * Returns the value of a given element of an annotation or null if not found Caution: Does not handles default value.
*
* @param annotation
* @param elementName
* @return annotation NVP
*/
private static NameValuePair getAnnotationElement(AnnotationGen annotation, String elementName) {
for (Iterator itera... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | return fqname;
} else {
return fqname.substring(i + 1);
}
}
/**
* Extract the method argument names. First we try the debug info attached to the method (the LocalVariableTable) - if we cannot
* find that we look to use the argNames value that may have been supplied on the associated annotation. If that fai... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
}
} else {
if (argNamesFromAnnotation != null) {
StringTokenizer st = new StringTokenizer(argNamesFromAnnotation, " ,");
List<String> args = new ArrayList<String>();
while (st.hasMoreTokens()) {
args.add(st.nextToken());
}
if (args.size() != method.getArgumentTypes().length) {
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | if (arguments.size() != method.getArgumentTypes().length) {
return EMPTY_STRINGS;
}
Collections.sort(arguments, new Comparator() {
public int compare(Object o, Object o1) {
MethodArgument mo = (MethodArgument) o;
MethodArgument mo1 = (MethodArgument) o1;
if (mo.indexOnStack == mo1.indexOnStack)... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | String name;
int indexOnStack;
public MethodArgument(String name, int indexOnStack) {
this.name = name;
this.indexOnStack = indexOnStack;
}
}
/**
* LazyResolvedPointcutDefinition lazyly resolve the pointcut so that we have time to register all pointcut referenced before
* pointcut resolution happens
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | private final Pointcut m_pointcutUnresolved;
private final IScope m_binding;
private Pointcut m_lazyPointcut = null;
public LazyResolvedPointcutDefinition(UnresolvedType declaringType, int modifiers, String name,
UnresolvedType[] parameterTypes, UnresolvedType returnType, Pointcut pointcut, IScope binding... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * Helper to test empty strings
*
* @param s
* @return true if empty or null
*/
private static boolean isNullOrEmpty(String s) {
return (s == null || s.length() <= 0);
}
/**
* Set the pointcut bindings for which to ignore unbound issues, so that we can implicitly bind xxxJoinPoint for @AJ advices
*
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
/**
* Report an error
*
* @param message
* @param location
*/
private static void reportError(String message, AjAttributeStruct location) {
if (!location.handler.isIgnoring(IMessage.ERROR)) {
location.handler.handleMessage(new Message(message, location.enclosingType.getSourceLocation(), true));
}
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * @param message
* @param location
*/
private static void reportWarning(String message, AjAttributeStruct location) {
if (!location.handler.isIgnoring(IMessage.WARNING)) {
location.handler.handleMessage(new Message(message, location.enclosingType.getSourceLocation(), false));
}
}
/**
* Parse the given p... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | reportError("Invalid pointcut '" + pointcutString + "': " + e.toString()
+ (e.getLocation() == null ? "" : " at position " + e.getLocation().getStart()), struct);
return null;
}
}
private static boolean hasIf(Pointcut pointcut) {
IfFinder visitor = new IfFinder();
pointcut.accept(visitor, null);
retur... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | private final String formalName;
public ThrownFormalNotDeclaredInAdviceSignatureException(String formalName) {
this.formalName = formalName;
}
public String getFormalName() {
return formalName;
}
}
static class ReturningFormalNotDeclaredInAdviceSignatureException extends Exception {
private final Stri... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | /* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
* htt... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | private boolean issuedJoinPointWarning = false;
private boolean issuedMissingInterfaceWarning = false;
/**
* @param signature
* @param world
*/
public MissingResolvedTypeWithKnownSignature(String signature, World world) {
super(signature, world);
}
public boolean isMissing() {
return true;
}
/**
* @p... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | * (non-Javadoc)
*
* @see org.aspectj.weaver.ResolvedType#getDeclaredMethods()
*/
public ResolvedMember[] getDeclaredMethods() {
raiseCantFindType(WeaverMessages.CANT_FIND_TYPE_METHODS);
return NO_MEMBERS;
}
/*
* (non-Javadoc)
*
* @see org.aspectj.weaver.ResolvedType#getDeclaredInterfaces()
*/
pu... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | */
public ResolvedType getSuperclass() {
raiseCantFindType(WeaverMessages.CANT_FIND_TYPE_SUPERCLASS);
return ResolvedType.MISSING;
}
/*
* (non-Javadoc)
*
* @see org.aspectj.weaver.ResolvedType#getModifiers()
*/
public int getModifiers() {
raiseCantFindType(WeaverMessages.CANT_FIND_TYPE_MODIFIERS);
... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | public void tidy() {
}
};
}
/*
* (non-Javadoc)
*
* @see org.aspectj.weaver.ResolvedType#isAssignableFrom(org.aspectj.weaver.ResolvedType)
*/
public boolean isAssignableFrom(ResolvedType other) {
raiseCantFindType(WeaverMessages.CANT_FIND_TYPE_ASSIGNABLE, other.getName());
return false;
}
public b... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | *
* @see org.aspectj.weaver.AnnotatedElement#hasAnnotation(org.aspectj.weaver.UnresolvedType)
*/
public boolean hasAnnotation(UnresolvedType ofType) {
raiseCantFindType(WeaverMessages.CANT_FIND_TYPE_ANNOTATION);
return false;
}
public List getInterTypeMungers() {
return Collections.EMPTY_LIST;
}
public ... |
293,351 | Bug 293351 RuntimeException weaving roo app with advice based on execution pointcut | java.lang.RuntimeException at org.aspectj.weaver.ResolvedType.getAnnotations(ResolvedType.java:718) at org.aspectj.weaver.AbstractAnnotationAJ.retrieveAnnotationOnAnnotation(AbstractAnnotationAJ.java:123) at org.aspectj.weaver.AbstractAnnotationAJ.ensureAtTargetInitialized(AbstractAnnotationAJ.java:85) at org.aspectj.w... | resolved fixed | a23c7e4 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-27T14:04:12Z | 2009-10-26T18:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/MissingResolvedTypeWithKnownSignature.java | }
public void raiseWarningOnMissingInterfaceWhilstFindingMethods() {
if (issuedMissingInterfaceWarning)
return;
String message = WeaverMessages.format(WeaverMessages.CANT_FIND_TYPE_INTERFACE_METHODS, getName(), signature);
message += "\n" + CompilationAndWeavingContext.getCurrentContext();
world.getLint().c... |
293,457 | Bug 293457 NPE on multiple declare @methods | null | resolved fixed | dc53b77 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-11-19T17:01:09Z | 2009-10-27T16:13:20Z | tests/src/org/aspectj/systemtest/ajc167/Ajc167Tests.java | /*******************************************************************************
* Copyright (c) 2008 Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*... |
293,457 | Bug 293457 NPE on multiple declare @methods | null | resolved fixed | dc53b77 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-11-19T17:01:09Z | 2009-10-27T16:13:20Z | tests/src/org/aspectj/systemtest/ajc167/Ajc167Tests.java | public void testTimers_1() {
runTest("timers - 1");
}
public void testAnnoMatching_pr293203() {
runTest("anno matching");
}
public void testScalaOuterClassNames_pr288064() {
runTest("outer class names - scala");
}
public void testScalaOuterClassNames_pr288064_ltw() {
runTest("outer class names - s... |
120,375 | Bug 120375 Support Load-Time Weaving and HotSwap | null | resolved fixed | 19355dd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-11-19T18:33:01Z | 2005-12-12T15:06:40Z | loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java | /*******************************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
... |
120,375 | Bug 120375 Support Load-Time Weaving and HotSwap | null | resolved fixed | 19355dd | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-11-19T18:33:01Z | 2005-12-12T15:06:40Z | loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java | static {
try {
s_preProcessor = new Aj();
s_preProcessor.initialize();
} catch (Exception e) {
throw new ExceptionInInitializerError("could not initialize JSR163 preprocessor due to: " + e.toString());
}
}
/**
* Weaving delegation
*
* @param loader the defining class loader
* @param className ... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.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... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | /**
* These attributes are written to and read from .class files (see the JVM spec).
*
* <p>
* Each member or type can have a number of AjAttributes. Each such attribute is in 1-1 correspondence with an Unknown bcel
* attribute. Creating one of these does NOTHING to the underlying thing, so if you really want to ... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | }
}
/**
* Writes the full attribute, i.e. name_index, length, and contents
*/
public byte[] getAllBytes(short nameIndex) {
try {
byte[] bytes = getBytes();
ByteArrayOutputStream b0 = new ByteArrayOutputStream();
DataOutputStream s0 = new DataOutputStream(b0);
s0.writeShort(nameIndex);
s0.writeIn... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | } else if (name.equals(WeaverState.AttributeName)) {
return new WeaverState(WeaverStateInfo.read(s, context));
} else if (name.equals(WeaverVersionInfo.AttributeName)) {
return WeaverVersionInfo.read(s);
} else if (name.equals(AdviceAttribute.AttributeName)) {
AdviceAttribute aa = AdviceAttribute.read... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | return null;
}
} catch (BCException e) {
throw new BCException("malformed " + name + " attribute (length:" + bytes.length + ")" + e);
} catch (IOException e) {
throw new BCException("malformed " + name + " attribute (length:" + bytes.length + ")" + e);
}
}
/**
* Synthetic members should have NO adv... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.TypeMunger";
@Override
public String getNameString() {
return AttributeName;
}
private final ResolvedTypeMunger munger;
public TypeMunger(ResolvedTypeMunger munger) {
this.munger = munger;
}
@Override
public void write(DataOutputStream... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.WeaverState";
@Override
public String getNameString() {
return AttributeName;
}
private final WeaverStateInfo kind;
public WeaverState(WeaverStateInfo kind) {
this.kind = kind;
}
@Override
public void write(DataOutputStream s) throws I... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.WeaverVersion";
public final static short WEAVER_VERSION_MAJOR_UNKNOWN = 0; |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public final static short WEAVER_VERSION_MINOR_UNKNOWN = 0;
public final static short WEAVER_VERSION_MAJOR_AJ121 = 1;
public final static short WEAVER_VERSION_MINOR_AJ121 = 0;
public final static short WEAVER_VERSION_MAJOR_AJ150M4 = 3;
public final static short WEAVER_VERSION_MAJOR_AJ150 = 2;
public fin... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | }
public WeaverVersionInfo() {
major_version = CURRENT_VERSION_MAJOR;
minor_version = CURRENT_VERSION_MINOR;
}
public WeaverVersionInfo(short major, short minor) {
major_version = major;
minor_version = minor;
}
@Override
public void write(DataOutputStream s) throws IOException {
s.writeSh... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | }
return wvi;
}
public short getMajorVersion() {
return major_version;
}
public short getMinorVersion() {
return minor_version;
}
public static short getCurrentWeaverMajorVersion() {
return CURRENT_VERSION_MAJOR;
}
public static short getCurrentWeaverMinorVersion() {
return CURRENT_VERSIO... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.SourceContext";
@Override
public String getNameString() {
return AttributeName;
}
private final String sourceFileName;
private final int[] lineBreaks;
public SourceContextAttribute(String sourceFileName, int[] lineBreaks) {
this.sourceFile... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.MethodDeclarationLineNumber";
@Override
public String getNameString() {
return AttributeName;
}
private final int lineNumber;
private final int offset;
public MethodDeclarationLineNumberAttribute(int line, int offset) {
lineNumber = ... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | int offset = 0;
if (s.available() > 0) {
offset = s.readInt();
}
return new MethodDeclarationLineNumberAttribute(line, offset);
}
@Override
public String toString() {
return AttributeName + ": " + lineNumber + ":" + offset;
}
}
public static class PointcutDeclarationAttribute extends AjAttribu... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.Declare";
@Override
public String getNameString() {
return AttributeName;
}
private final Declare declare;
public DeclareAttribute(Declare declare) {
this.declare = declare;
}
@Override
public void write(DataOutputStream s) throws IOEx... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.Advice";
@Override
public String getNameString() {
return AttributeName;
}
private final AdviceKind kind;
private final Pointcut pointcut;
private final int extraParameterFlags;
private final int start;
private final int end;
private fi... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | this.kind = kind;
this.pointcut = pointcut;
extraParameterFlags = extraArgumentFlags;
this.start = start;
this.end = end;
this.sourceContext = sourceContext;
}
public AdviceAttribute(AdviceKind kind, Pointcut pointcut, int extraArgumentFlags, int start, int end,
ISourceContext sourceC... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | return new AdviceAttribute(kind, Pointcut.read(s, context), s.readByte(), s.readInt(), s.readInt(), context, s
.readBoolean(), ResolvedMemberImpl.readResolvedMemberArray(s, context), FileUtil.readBooleanArray(s),
UnresolvedType.readArray(s));
} else {
return new AdviceAttribute(kind, Pointcut.read(s,... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | }
public AdviceKind getKind() {
return kind;
}
public Pointcut getPointcut() {
return pointcut;
}
public UnresolvedType[] getDeclaredExceptions() {
return declaredExceptions;
}
public boolean[] getFormalsUnchangedToProceed() {
return formalsUnchangedToProceed;
}
public ResolvedMember[] get... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.Aspect";
@Override
public String getNameString() {
return AttributeName;
}
private final PerClause perClause;
private IScope resolutionScope;
public Aspect(PerClause perClause) {
this.perClause = perClause;
}
public PerClause reify(Res... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | public static final String AttributeName = "org.aspectj.weaver.Privileged";
@Override
public String getNameString() {
return AttributeName;
}
private final ResolvedMember[] accessedMembers;
public PrivilegedAttribute(ResolvedMember[] accessedMembers) {
this.accessedMembers = accessedMembers;
}
@Over... |
297,013 | Bug 297013 Unclosed stream in AjAttribute | null | resolved fixed | 28fb861 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-12-16T18:10:04Z | 2009-12-06T09:00:00Z | org.aspectj.matcher/src/org/aspectj/weaver/AjAttribute.java | this.effectiveSignature = effectiveSignature;
this.shadowKind = shadowKind;
this.weaveBody = weaveBody;
}
@Override
public void write(DataOutputStream s) throws IOException {
effectiveSignature.write(s);
shadowKind.write(s);
s.writeBoolean(weaveBody);
}
public static EffectiveSignatureAttribute... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | /*******************************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.StringTokenizer;
import org.aspectj.bridge.AbortException;
import org.aspectj.bridge.Constants;
import org.aspectj.util.LangUtil;
import org.aspectj.weaver.Lint;
import org.aspectj.weaver.ResolvedType;
... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | private final static String AOP_XML = Constants.AOP_USER_XML + ";" + Constants.AOP_AJC_XML + ";" + Constants.AOP_OSGI_XML;
private boolean initialized;
private List m_dumpTypePattern = new ArrayList();
private boolean m_dumpBefore = false;
private boolean dumpDirPerClassloader = false;
private boolean hasExcludes ... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | private List m_aspectIncludeStartsWith = new ArrayList();
private StringBuffer namespace;
private IWeavingContext weavingContext;
private List concreteAspects = new ArrayList();
private static Trace trace = TraceFactory.getTraceFactory().getTrace(ClassLoaderWeavingAdaptor.class);
public ClassLoaderWeavingAdaptor()... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | private BcelWeakClassLoaderReference loaderRef;
SimpleGeneratedClassHandler(ClassLoader loader) {
loaderRef = new BcelWeakClassLoaderReference(loader);
}
/**
* Callback when we need to define a Closure in the JVM
*
*/
public void acceptClass(String name, byte[] bytes) {
try {
if (shouldDump(... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | }
createMessageHandler();
this.generatedClassHandler = new SimpleGeneratedClassHandler(classLoader);
List definitions = weavingContext.getDefinitions(classLoader, this);
if (definitions.isEmpty()) {
disable();
if (trace.isTraceEnabled()) {
trace.exit("initialize", definitions);
}
return;
}
... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | if (trace.isTraceEnabled()) {
trace.exit("initialize", isEnabled());
}
}
/**
* Load and cache the aop.xml/properties according to the classloader visibility rules
*
* @param weaver
* @param loader
*/
List parseDefinitions(final ClassLoader loader) {
if (trace.isTraceEnabled()) {
trace.enter("par... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | StringTokenizer st = new StringTokenizer(resourcePath, ";");
while (st.hasMoreTokens()) {
String nextDefinition = st.nextToken();
if (nextDefinition.startsWith("file:")) {
try {
String fpath = new URL(nextDefinition).getFile();
File configFile = new File(fpath);
if (!configFile.exists(... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | }
}
}
}
if (definitions.isEmpty()) {
info("no configuration found. Disabling weaver for class loader " + getClassLoaderName(loader));
}
} catch (Exception e) {
definitions.clear();
warn("parse definitions failed", e);
}
if (trace.isTraceEnabled()) {
trace.exit("parseDefinitions", de... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | success = false;
warn("register definition failed", (ex instanceof AbortException) ? null : ex);
}
if (trace.isTraceEnabled()) {
trace.exit("registerDefinitions", success);
}
return success;
}
private String getClassLoaderName(ClassLoader loader) {
return weavingContext.getClassLoaderName();
}
/**
... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | world.setXlazyTjp(weaverOption.lazyTjp);
world.setXHasMemberSupportEnabled(weaverOption.hasMember);
world.setTiming(weaverOption.timers, true);
world.setOptionalJoinpoints(weaverOption.optionalJoinpoints);
world.setPinpointMode(weaverOption.pinpoint);
weaver.setReweavableMode(weaverOption.notReWeavable);
wo... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | if (failure != null || resource == null) {
warn("Cannot access resource for -Xlintfile:" + weaverOption.lintFile, failure);
}
} finally {
try {
resource.close();
} catch (Throwable t) {
}
}
}
if (weaverOption.lint != null) {
if (weaverOption.lint.e... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
Definition definition = (Definition) iterator.next();
for (Iterator iterator1 = definition.getAspectExcludePatterns().iterator(); iterator1.hasNext();) {
String exclude = (String) iterator1.next();
TypePattern excludePattern = new Pat... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | Kind kind = lint.getLintKind(name);
kind.signal(infos, null, null);
}
@Override
public String getContextId() {
return weavingContext.getId();
}
/**
* Register the aspect, following include / exclude rules
*
* @param weaver
* @param loader
* @param definitions
*/
private boolean registerAspects(fi... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | weaver.addLibraryAspect(aspectClassName);
if (namespace == null) {
namespace = new StringBuffer(aspectClassName);
} else {
namespace = namespace.append(";" + aspectClassName);
}
} else {
lint("aspectExcludedByConfiguration", new String[] { aspectClassName, getClassLoaderN... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | weaver.addLibraryAspect(concreteAspect.name);
if (namespace == null) {
namespace = new StringBuffer(concreteAspect.name);
} else {
namespace = namespace.append(";" + concreteAspect.name);
}
}
}
}
if (!success) {
warn("failure(s) registering aspects. Disabling weaver for... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | ConcreteAspectCodeGen gen = (ConcreteAspectCodeGen) iterator.next();
String name = gen.getClassName();
byte[] bytes = gen.getBytes();
try {
byte[] newBytes = weaveClass(name, bytes, true);
this.generatedClassHandler.acceptClass(name, newBytes);
} catch (IOException ex) {
trace.error("weaveAndDef... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | String include = (String) iterator1.next();
fastMatchInfo = looksLikeStartsWith(include);
if (fastMatchInfo != null) {
m_includeStartsWith.add(fastMatchInfo);
} else if (include.equals("*")) {
includeStar = true;
} else if ((fastMatchInfo = looksLikeExactName(include)) != null) {
includeE... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | } else {
TypePattern excludePattern = new PatternParser(exclude).parseTypePattern();
excludeTypePattern.add(excludePattern);
}
}
}
}
/**
* Checks if the pattern looks like "*..*XXXX*" and if so returns XXXX. This will enable fast name matching of CGLIB exclusion
*
*/
private String looksLik... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | private String looksLikeExactName(String typePattern) {
if (hasSpaceAnnotationPlus(typePattern, 0) || typePattern.indexOf("*") != -1) {
return null;
}
return typePattern.replace('$', '.');
}
/**
* Checks if the pattern looks like "*Exception"
*/
private String looksLikeEndsWith(String typePattern) {
i... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | /**
* Determine if something in the string is going to affect our ability to optimize. Checks for: '*' '.'
*/
private boolean hasStarDot(String string, int pos) {
for (int i = pos, max = string.length(); i < max; i++) {
char ch = string.charAt(i);
if (ch == '*' || ch == '.') {
return true;
}
}
r... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | }
/**
* Register the dump filter
*
* @param weaver
* @param loader
* @param definitions
*/
private void registerDump(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
Definition definition = (Definitio... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | */
@Override
protected boolean accept(String className, byte[] bytes) {
if (!hasExcludes && !hasIncludes) {
return true;
}
String fastClassName = className.replace('/', '.').replace('$', '.');
for (String excludeStartsWithString : excludeStartsWith) {
if (fastClassName.startsWith(excludeStartsWithStr... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | if (!excludeExactName.isEmpty()) {
for (String name : excludeExactName) {
if (fastClassName.equals(name)) {
return false;
}
}
}
if (!excludeSpecial.isEmpty()) {
for (String[] entry : excludeSpecial) {
String excludeThese = entry[0];
String exceptThese = entry[1];
if (fastClassName.... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | }
}
boolean fastAccept = false;
for (int i = 0; i < m_includeStartsWith.size(); i++) {
didSomeIncludeMatching = true;
fastAccept = fastClassName.startsWith(m_includeStartsWith.get(i));
if (fastAccept) {
return true;
}
}
if (includeTypePattern.isEmpty()) {
return !didSomeInclu... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | if (accept) {
break;
}
}
} finally {
this.bcelWorld.demote();
}
return accept;
}
private boolean acceptAspect(String aspectClassName) {
if (m_aspectExcludeTypePattern.isEmpty() && m_aspectIncludeTypePattern.isEmpty()) {
return true;
}
String fastClassName = aspectClassN... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | }
ResolvedType classInfo = weaver.getWorld().resolve(UnresolvedType.forName(aspectClassName), true);
for (Iterator iterator = m_aspectExcludeTypePattern.iterator(); iterator.hasNext();) {
TypePattern typePattern = (TypePattern) iterator.next();
if (typePattern.matchesStatically(classInfo)) {
re... |
298,786 | Bug 298786 suspected problem with handling of multiple aop.xml files | null | resolved fixed | a968890 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2010-01-05T00:44:36Z | 2010-01-04T18:33:20Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | if (m_dumpTypePattern.isEmpty()) {
return false;
}
ResolvedType classInfo = weaver.getWorld().resolve(UnresolvedType.forName(className), true);
for (Iterator iterator = m_dumpTypePattern.iterator(); iterator.hasNext();) {
TypePattern typePattern = (TypePattern) iterator.next();
if (typePattern.matc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.