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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
Definition definition = (Definition) iterator.next();
for (Iterator aspects = definition.getAspectClassNames().iterator(); aspects.hasNext();) {
String aspectClassName = (String) aspects.next();
... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | ConcreteAspectCodeGen gen = new ConcreteAspectCodeGen(concreteAspect, weaver.getWorld());
if (!gen.validate()) {
error("Concrete-aspect '"+concreteAspect.name+"' could not be registered");
break;
}
this.generated... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
Definition definition = (Definition) iterator.next();
for (Iterator iterator1 = definition.getIncludePatterns().iterator(); iterator1.hasNext();) {
String include = (String) iterator1.next();
... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | */
private String looksLikeStartsWith(String typePattern) {
if (typePattern.indexOf('@') >= 0
|| typePattern.indexOf('+') >= 0
|| typePattern.indexOf(' ') >= 0
|| typePattern.charAt(typePattern.length()-1) != '*') {
return null;
}
... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | Definition definition = (Definition) iterator.next();
for (Iterator iterator1 = definition.getDumpPatterns().iterator(); iterator1.hasNext();) {
String dump = (String) iterator1.next();
TypePattern pattern = new PatternParser(dump).parseTypePattern();
m_dumpTy... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | BcelObjectType bct = ((BcelWorld)weaver.getWorld()).addSourceObjectType(Utility.makeJavaClass(null, bytes));
ResolvedType classInfo = bct.getResolvedTypeX();
for (Iterator iterator = m_excludeTypePattern.iterator(); iterator.hasNext();) {
TypePattern typePattern = (TypePattern) iter... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | private boolean acceptAspect(String aspectClassName) {
if (m_aspectExcludeTypePattern.isEmpty() && m_aspectIncludeTypePattern.isEmpty()) {
return true;
}
String fastClassName = aspectClassName.replace('/', '.').replace('.', '$');
for (int i = 0; i <... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | }
boolean accept = true;
for (Iterator iterator = m_aspectIncludeTypePattern.iterator(); iterator.hasNext();) {
TypePattern typePattern = (TypePattern) iterator.next();
accept = typePattern.matchesStatically(classInfo);
if (accept) {
break;
... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | /*
* shared classes methods
*/
/**
* @return Returns the key.
*/
public String getNamespace() {
if(namespace==null) return "";
else return new String(namespace);
}
/**
* Check to see if any classes are stored in the generated classes cache.
* Then flush the cache if it is not empt... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | /* *******************************************************************
* Copyright (c) 2004 IBM Corporation
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distribution and is available at
* ht... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | import java.util.StringTokenizer;
import org.aspectj.bridge.AbortException;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.IMessageHandler;
import org.aspectj.bridge.Message;
import org.aspectj.bridge.MessageUtil;
import org.aspectj.bridge.MessageWriter;
import org.aspectj.bridge.IMessage.Kind;
import or... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | /**
* System property used to turn on verbose weaving messages
*/
public static final String WEAVING_ADAPTOR_VERBOSE = "aj.weaving.verbose";
public static final String SHOW_WEAVE_INFO_PROPERTY = "org.aspectj.weaver.showWeaveInfo";
protected boolean enabled = true;
protected boolean verbose = getVerbose();
p... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | createMessageHandler();
}
/**
* Construct a WeavingAdaptor with a reference to a weaving class loader. The
* adaptor will automatically search the class loader hierarchy to resolve
* classes. The adaptor will also search the hierarchy for WeavingClassLoader
* instances to determine the set of aspects to b... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | private List getFullClassPath (ClassLoader loader) {
List list = new LinkedList();
for (; loader != null; loader = loader.getParent()) {
if (loader instanceof URLClassLoader) {
URL[] urls = ((URLClassLoader)loader).getURLs();
list.addAll(0,FileUtil.makeClasspath(urls));
}
else {
warn("cannot de... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | private void init(List classPath, List aspectPath) {
createMessageHandler();
info("using classpath: " + classPath);
info("using aspectpath: " + aspectPath);
bcelWorld = new BcelWorld(classPath,messageHandler,null);
bcelWorld.setXnoInline(false);
bcelWorld.getLint().loadDefaultProperties();
if (Lan... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | catch (IOException ex) {
warn("bad library: '" + libFile + "'");
}
}
/**
* Weave a class using aspects previously supplied to the adaptor.
* @param name the name of the class
* @param bytes the class bytes
* @return the woven bytes
* @exception IOException weave failed
*/
public byte[] weaveClass... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | return b && accept(name, bytes);
}
protected boolean accept(String name, byte[] bytes) {
return true;
}
public boolean shouldDump(String name) {
return false;
}
private boolean shouldWeaveName (String name) {
return !((/*(name.startsWith("org.apache.bcel.")//FIXME AV why ? bcel ... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | /**
* Weave a set of bytes defining a class.
* @param name the name of the class being woven
* @param bytes the bytes that define the class
* @return byte[] the woven bytes for the class
* @throws IOException
*/
private byte[] getWovenBytes(String name, byte[] bytes) throws IOException {
WeavingClassFil... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | }
weaver.prepareForWeave();
}
/*
* Register an aspect library with this classloader for use during
* weaving. This class loader will also return (unmodified) any of the
* classes in the library in response to a <code>findClass()</code> request.
* The library is not required to be on the weavingClasspath ... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | List ret = new ArrayList();
if (cp != null) {
StringTokenizer tok = new StringTokenizer(cp,File.pathSeparator);
while (tok.hasMoreTokens()) {
ret.add(tok.nextToken());
}
}
return ret;
}
protected boolean info (String message) {
return MessageUtil.info(messageHandler,message);
}
protected bo... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | private Set ignoring = new HashSet();
private IMessage.Kind failKind;
public WeavingAdaptorMessageHandler (PrintWriter writer) {
super(writer,true);
ignore(IMessage.WEAVEINFO);
ignore(IMessage.INFO);
this.failKind = IMessage.ERROR;
}
public boolean handleMessage(IMessage message) throws... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | if ((null != kind) && (!ignoring.contains(kind))) {
ignoring.add(kind);
}
}
/**
* Remove a message kind from the list of those ignored from now on.
*/
public void dontIgnore (IMessage.Kind kind) {
if (null != kind) {
ignoring.remove(kind);
}
}
}
private class WeavingClassFileProvider im... |
117,189 | Bug 117189 Contribution: reduce overhead when no aspects define | This patch to the ClassLoaderWeavingAdaptor adds two optimizations when enabled is false for the adaptor: it immediately returns false for accept and it also avoids the overhead of constructing a weaver or world. It also contains commented out code that was letting me improve performance by loading reflective proxies i... | resolved fixed | a5ac5af | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T09:01:53Z | 2005-11-19T17:06:40Z | weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java | if (wovenClass != null) return wovenClass.getBytes();
else return unwovenClass.getBytes();
}
public Iterator getClassFileIterator() {
return unwovenClasses.iterator();
}
public IWeaveRequestor getRequestor() {
return new IWeaveRequestor() {
public void acceptResult(UnwovenClassFile result) {
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/new/AfterReturningParam.java | import org.aspectj.testing.Tester;
public class AfterReturningParam {
public static void main(String[] args) {
AfterReturningParam p = new AfterReturningParam();
Tester.checkAndClearEvents(new String[] { "constr exec as Object null" });
p.mInt();
Tester.checkAndClearEvents(n... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/new/AfterReturningParam.java | }
after() returning (Object o) : execution(AfterReturningParam.new()) {
callEvent("constr exec as Object", o);
}
after() returning (String o) : execution(AfterReturningParam.new()) {
callEvent("constr exec as String", o);
}
after() returning (Object o) : execution(int AfterReturn... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/new/ConstructorExecInit.java | import org.aspectj.testing.*;
/**
* -usejavac mode: no error
* not -usejavac mode: VerifyError
*/
public class ConstructorExecInit {
public static void main(String[] args) {
new ConstructorExecInit();
Tester.checkAllEvents();
}
static {
Tester.expectEvent("execution");
Tes... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/new/OddConstructors.java | import java.lang.reflect.*;
import org.aspectj.testing.Tester;
public class OddConstructors {
public static void main(String[] args) throws Exception { test(); }
public static void test() throws Exception {
new OddConstructors().go();
Tester.check("advised default constructor");
Tester.checkEqual(... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/new/OddConstructors.java | }
void go() throws Exception {
Constructor c = Class.forName("C").getConstructor(new Class[0]);
I i = (I)c.newInstance(new Object[0]);
}
static aspect B extends A issingleton() {
pointcut i(): target(I);
}
}
abstract aspect A {
abstract pointcut i();
pointcut j()... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | /*******************************************************************************
* Copyright (c) 2004 IBM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://ww... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.List;
import junit.framework.Test;
import org.aspectj.apache.bcel.classfile.JavaClass;
import org.aspectj.apache.bcel.classfile.Method;
import org.aspectj.apache.bcel.classfile.Signature;
import org.aspectj.apache.bcel.u... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | */
public void testPrivilegeProblem_pr87525() { runTest("privilege problem with switch");}
public void testGenericAspects_pr115237() { runTest("aspectOf and generic aspects");}
public void testClassFormatError_pr114436() { runTest("ClassFormatError binary weaving perthis");}
public void testParserException_p... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testIncompatibleClassChangeError_pr113630_1() {runTest("IncompatibleClassChangeError - errorscenario");}
public void testIncompatibleClassChangeError_pr113630_2() {runTest("IncompatibleClassChangeError - workingscenario");}
public void testFieldGetProblemWithGenericField_pr113861() {runTest("field-ge... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | runTest("method called around in aspect");
}
public void test_ambiguousBindingsDetection() {
runTest("Various kinds of ambiguous bindings");
}
public void test_ambiguousArgsDetection() {
runTest("ambiguous args");
}
public void testIncorrectExceptionTableWhenBreakInMethod_pr78021() {
runTe... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testCanOverrideProtectedMethodsViaITDandDecp_pr83303() {
runTest("compiler error when mixing inheritance, overriding and polymorphism");
}
public void testPerTypeWithin_pr106554() {runTest("Problem in staticinitialization with pertypewithin aspect");}
public void testPerTypeWithinMisse... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | AsmManager.dumptree(pw,AsmManager.getDefault().getHierarchy().getRoot(),0);
pw.flush();
String tree = baos.toString();
assertTrue("Expected 'Red [enumvalue]' somewhere in here:"+tree,tree.indexOf("Red [enumvalue]")!=-1);
}
}
public void npeOnTypeNotFound() {
runTest("structure model npe on typ... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testIntroSample() {
runTest("introduction sample");
}
public void testPTWInterface() {
runTest("pertypewithin({interface}) illegal field modifier");
}
public void testEnumCalledEnumEtc() {
runTest("enum called Enum, annotation called Annotation, etc");
}
public void testInterna... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testGenerics_pr99089() {runTest("ArrayIndexOutOfBoundsException - Generics in privileged aspects");}
public void testGenerics_pr95993() {runTest("NPE at ClassScope.java:660 when compiling generic class");}
public void testItdGenerics_pr99228() {runTest("ITD of a field into a generic class");}
publ... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | runTest("parser crashes on call(void (@a *)(..)");
}
public void testIntermediateAnnotationMatching() {
runTest("intermediate annotation matching");
}
public void testBadRuntimeTestGeneration() {
runTest("target(@Foo *)");
}
public void testErrorMessageOnITDWithTypePatterns() {
runTest("cl... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testPointcutOverriding() {
runTest("overriding final pointcut from super-aspect");
}
public void testAtSuppressWarnings() {
runTest("@SuppressWarnings should suppress");
}
public void testDEOWWithBindingPointcut() {
runTest("declare warning : foo(str) : ...;");
}
public void te... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testPrivilegedMethodAccessorsGetRightExceptions_pr82989() {
runTest("Compiler error due to a wrong exception check in try blocks");
}
public void testAnonymousInnerClassWithMethodReturningTypeParameter_pr107898() {
runTest("anonymous inner class with method returning type parameter");
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testAtAfterThrowingWithNoFormal() {
runTest("@AfterThrowing with no formal specified");
}
public void testParameterizedVarArgsMatch() {
runTest("varargs with type variable");
}
public void testFieldAccessInsideITDM() {
runTest("itd field access inside itd method");
}
public void t... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testInlinedFieldAccessInProceedCall() {
runTest("inlined field access in proceed call");
}
public void testVisibiltyInSignatureMatchingWithOverridesPart1() {
runTest("visibility in signature matching with overrides - 1");
}
public void testVisibiltyInSignatureMatchingWithOverridesPart2() {
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testOverrideAndCovarianceWithDecPRuntime() {
runTest("override and covariance with decp - runtime");
}
public void testOverrideAndCovarianceWithDecPRuntimeMultiFiles() {
runTest("override and covariance with decp - runtime separate files");
}
public void testOverrideAndCovarianceWithDecPRun... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testPrivatePointcutOverriding() {
runTest("can't override private pointcut in abstract aspect");
}
public void testAdviceOnCflow() {
runTest("advising cflow advice execution");
}
public void testNoTypeMismatchOnSameGenericTypes() {
runTest("no type mismatch on generic types in itd... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testCantFindTypeErrorWithGenericReturnTypeOrParameter() {
runTest("cant find type error with generic return type or parameter");
}
public void testNoVerifyErrorOnGenericCollectionMemberAccess() {
runTest("no verify error on generic collection member access");
}
public void testRawAnd... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testCantProvideDefaultImplViaITD_pr110307_1() {runTest("Cant provide default implementation via ITD - 1");}
public void testCantProvideDefaultImplViaITD_pr110307_2() {runTest("Cant provide default implementation via ITD - 2");}
public void testCantProvideDefaultImplViaITD_pr110307_3() {runTest("Cant pro... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testAdviceInStructureModelWithAnonymousInnerClass_pr77269() {
runTest("advice in structure model with anonymous inner class");
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement anonRunMethodIPE = top.findElementForLabel(top.getRoot(),
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | IRelationship element = (IRelationship) iter.next();
if (element.getName().equals("advises")) {
rel = (Relationship) element;
break;
}
}
targets = rel.getTargets();
assertTrue("Should have one target but has" + targets.size(),
targets.size()==1);
target = AsmManager.getDefault().getHi... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | assertTrue("Should have one target but has" + targets.size(),
targets.size()==1);
IProgramElement target = AsmManager.getDefault().getHierarchy().findElementForHandle((String)targets.get(0));
assertEquals("target of relationship should be 'before(): p..' but is "
+ target.toLabelString(),"before... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | runTest("declare warning in structure model with anonymous inner class");
IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement pe = top.findElementForLabel(top.getRoot(),
IProgramElement.Kind.CODE,"method-call(void pack.Test.someMethod())");
assertNotNull("Couldn't find... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testAssertWithinPointcutExpression() {
runTest("pointcut expression containing 'assert'");
}
public void testNoVerifyErrorWithTwoThisPCDs_pr113447() {
runTest("no verify error with two this pcds");
}
public void testNoVerifyErrorWithTwoAtThisPCDs_pr113447() {
runTest("no verify error wit... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testNoStackOverflowWithCircularPCDInGenericAspect2() {
runTest("no StackOverflowError with circular pcd in generic aspect - 2");
}
public void testNPEInThisJoinPointStaticPart() {
runTest("thisJoinPointStaticPart in if test");
}
public void testPointcutParsingOfCompiledPointcuts() {
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testXlintMessageForImproperAnnotationType_pr115252_AND() {runTest("xlint message for improper annotation type inside AND");}
public void testXlintMessageForImproperAnnotationType_pr115252_Return() {runTest("xlint message for improper annotated return type");}
public void testXlintMessageForImproperAnn... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distrib... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | protected AjAttribute.AdviceAttribute attribute;
protected AdviceKind kind;
protected Member signature;
protected ResolvedType concreteAspect;
protected List innerCflowEntries = Collections.EMPTY_LIST;
protected int nFreeVars;
protected TypePattern exceptionType;
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | }
public static Advice makePerCflowEntry(World world, Pointcut entry, boolean isBelow,
Member stackField, ResolvedType inAspect, List innerCflowEntries)
{
Advice ret = world.createAdviceMunger(isBelow ? AdviceKind.PerCflowBelowEntry : AdviceKind.PerCflowEntry,
entry, stackField, 0, ... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | ret.exceptionType = exceptionType;
ret.concreteAspect = inAspect;
return ret;
}
public Advice(AjAttribute.AdviceAttribute attribute, Pointcut pointcut, Member signature)
{
super(pointcut, attribute.getStart(), attribute.getEnd(), attribute.getSourceContext());
this.attribute = a... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | if (hasExtraParameter() && kind == AdviceKind.AfterReturning) {
ResolvedType resolvedExtraParameterType = getExtraParameterType().resolve(world);
ResolvedType shadowReturnType = shadow.getReturnType().resolve(world);
boolean matches = resolvedExtraParameterType.isConvertableFrom(shadowReturnType);
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | return false;
} else {
if (getSignature().getReturnType() == ResolvedType.VOID) {
if (shadow.getReturnType() != ResolvedType.VOID) {
world.showMessage(IMessage.ERROR,
WeaverMessages.format(WeaverMessages.NON_VOID_RETURN,shadow),
getSourceLocation(), sha... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | getSourceLocation(), shadow.getSourceLocation());
return false;
}
}
}
}
return true;
} else {
return false;
}
}
/**
* In after returning advice if we are binding the extra parameter to a parameterized
* type we may not be able to do a type-safe conver... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | afterReturningType.getSimpleBaseName(),
shadow.toResolvedString(world)},
getSourceLocation(),
new ISourceLocation[] {shadow.getSourceLocation()});
}
}
}
public AdviceKind getKind() {
return kind;
}
public Member getSignature() {
return signature;
}
public void setSignature(... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | public UnresolvedType[] getBindingParameterTypes() { return this.bindingParameterTypes; }
public void setBindingParameterTypes(UnresolvedType[] types) { this.bindingParameterTypes = types; }
public static int countOnes(int bits) {
int ret = 0;
while (bits != 0) {
if ((bits & 1) != 0) ret += 1;
bits = bi... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | return ((ResolvedMember)signature).getGenericParameterTypes()[getBaseParameterCount()];
} else {
return signature.getParameterTypes()[getBaseParameterCount()];
}
}
public UnresolvedType getDeclaringAspect() {
return getOriginalSignature().getDeclaringType();
}
protected Member getOriginalSignature() {
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | Pointcut p = pointcut.concretize(fromType, getDeclaringType(), signature.getArity(), this);
if (clause != null) {
Pointcut oldP = p;
p = new AndPointcut(clause, p);
p.copyLocationFrom(oldP);
p.state = Pointcut.CONCRETE;
p.m_ignoreUnboundBindingForName... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Advice.java | }
private volatile int hashCode = 0;
public int hashCode() {
if (hashCode == 0) {
int result = 17;
result = 37*result + kind.hashCode();
result = 37*result + pointcut.hashCode();
if (signature != null) result = 37*result + signature.hashCode();
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Common Public License v1.0
* which accompanies this distrib... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | import org.aspectj.lang.JoinPoint;
import org.aspectj.util.PartialOrder;
import org.aspectj.util.TypeSafeEnum;
import org.aspectj.weaver.ast.Var;
import org.aspectj.weaver.bcel.BcelAdvice;
/*
* The superclass of anything representing a the shadow of a join point. A shadow represents
* some bit of code, and encompass... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | return mungers;
}
/**
* could this(*) pcd ever match
*/
public final boolean hasThis() {
if (getKind().neverHasThis()) {
return false;
} else if (getKind().isEnclosingKind()) {
return !getSignature().isStatic();
} else if (enclosingShadow == null) {
return false... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | /**
* a var referencing this
*
* @throws IllegalStateException if there is no target here
*/
public abstract Var getThisVar();
/**
* could target(*) pcd ever match
*/
public final boolean hasTarget() {
if (getKind().neverHasTarget()) {
return false;
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | }
/**
* a var referencing the target
*
* @throws IllegalStateException if there is no target here
*/
public abstract Var getTargetVar();
public UnresolvedType[] getArgTypes() {
if (getKind() == FieldSet) return new UnresolvedType[] { getSignature().getReturnType() };
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | public abstract Var getArgVar(int i);
public abstract Var getThisJoinPointVar();
public abstract Var getThisJoinPointStaticPartVar();
public abstract Var getThisEnclosingJoinPointStaticPartVar();
public abstract Var getKindedAnnotationVar(UnresolvedType forAnnotationType);
public abstract Var getWithinAnn... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | */
public Member getMatchingSignature() {
return matchingSignature != null ? matchingSignature : signature;
}
public void setMatchingSignature(Member member) {
this.matchingSignature = member;
}
/**
* returns the resolved signature of the thing under this shadow
*
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | */
public static final Kind MethodCall = new Kind(JoinPoint.METHOD_CALL, 1, true);
public static final Kind ConstructorCall = new Kind(JoinPoint.CONSTRUCTOR_CALL, 2, true);
public static final Kind MethodExecution = new Kind(JoinPoint.METHOD_EXECUTION, 3, false);
public static fin... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | private boolean argsOnStack;
public Kind(String name, int key, boolean argsOnStack) {
super(name, key);
this.argsOnStack = argsOnStack;
}
public String toLegalJavaIdentifier() {
return getName().replace('-', '_');
}
public boolean argsOnStack() {
return !isTargetSameAsThis();
}
public boo... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | }
public boolean hasHighPriorityExceptions() {
return !isTargetSameAsThis();
}
/**
* These are all the shadows that contains other shadows within them and
* are often directly associated with methods.
*/
public boolean isEnclosingKind() {
return this == MethodExecution || this == Cons... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | || this == PreInitialization
|| this == StaticInitialization;
}
public boolean neverHasThis() {
return this == PreInitialization
|| this == StaticInitialization;
}
public String getSimpleName() {
int dash = getName().lastIndexOf('-');
if (dash == -1) return getName();
else return ge... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | }
throw new BCException("unknown kind: " + key);
}
}
/**
* Only does the check if the munger requires it (@AJ aspects don't)
*
* @param munger
* @return
*/
protected boolean checkMunger(ShadowMunger munger) {
if (munger.mustCheckExceptions()) {
for (Iterator i =... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | return true;
}
private boolean isDeclaredException(
ResolvedType resolvedTypeX,
Member member)
{
ResolvedType[] excs = getIWorld().resolve(member.getExceptions(getIWorld()));
for (int i=0, len=excs.length; i < len; i++) {
if (excs[i].isAssignableFrom(resolvedTypeX)) return true;
}
return false;
}
... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | ShadowMunger m = (ShadowMunger)i.next();
getIWorld().getMessageHandler().handleMessage(
MessageUtil.error(
WeaverMessages.format(WeaverMessages.CIRCULAR_DEPENDENCY,this), m.getSourceLocation()));
}
}
mungers = sorted;
}
/** Prepare the shadow for implementation. After this is done, the shado... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | nice.append(isl.getSourceFile().getPath().substring(takeFrom +1));
if (isl.getLine()!=0) nice.append(":").append(isl.getLine());
}
return nice.toString();
}
/*
* Report a message about the advice weave that has occurred. Some messing about
* to make it pretty ! This code is just asking for an NPE to... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | if (advice.getKind().equals(AdviceKind.Softener)) {
msg = WeaveMessage.constructWeavingMessage(
WeaveMessage.WEAVEMESSAGE_SOFTENS,
new String[]{advisedType,beautifyLocation(getSourceLocation()),
advisingType,beautifyLocation(munger.getSourceLocation())},
advisedType,
advisingType);
}... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | return IRelationship.Kind.ADVICE_AFTERRETURNING;
else if (ak.getKey()==AdviceKind.Around.getKey())
return IRelationship.Kind.ADVICE_AROUND;
else if (ak.getKey()==AdviceKind.CflowEntry.getKey() ||
ak.getKey()==AdviceKind.CflowBelowEntry.getKey() ||
ak.getKey()==AdviceKind.InterIni... |
103,157 | Bug 103157 after returning should not bind "null" as return value | Today I found out the following. When writing an advice as... after() returning(Object o): staticinitialization(*) { System.out.println(o); } This advice is indeed executed every time a type returns from staticinitialization. However, since there is no returned object, o is bound to "null". I think this is inconsistent... | resolved fixed | 8b294d9 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:52:27Z | 2005-07-08T13:40:00Z | weaver/src/org/aspectj/weaver/Shadow.java | );
}
if (!getIWorld().getMessageHandler().isIgnoring(IMessage.WEAVEINFO)) {
reportWeavingMessage(munger);
}
if (world.getModel() != null) {
AsmRelationshipProvider.getDefault().adviceMunger(world.getModel(), this, munger);
}
}
}
public String makeReflectiveFactoryString() ... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | /*******************************************************************************
* Copyright (c) 2004 IBM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://ww... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | import junit.framework.Test;
import org.aspectj.apache.bcel.classfile.JavaClass;
import org.aspectj.apache.bcel.classfile.Method;
import org.aspectj.apache.bcel.classfile.Signature;
import org.aspectj.apache.bcel.util.ClassPath;
import org.aspectj.apache.bcel.util.SyntheticRepository;
import org.aspectj.asm.AsmManager;... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testClassFormatError_pr114436() { runTest("ClassFormatError binary weaving perthis");}
public void testParserException_pr115788() { runTest("parser exception");}
public void testPossibleStaticImports_pr113066_1() { runTest("possible static imports bug - 1");}
public void testPossibleStaticImports_pr11... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testFieldGetProblemWithGenericField_pr113861() {runTest("field-get problems with generic field");}
public void testDeclareAnnotationOnNonExistentType_pr99191_1() { runTest("declare annotation on non existent type - 1");}
public void testDeclareAnnotationOnNonExistentType_pr99191_2() { runTest("declare a... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | runTest("Various kinds of ambiguous bindings");
}
public void test_ambiguousArgsDetection() {
runTest("ambiguous args");
}
public void testIncorrectExceptionTableWhenBreakInMethod_pr78021() {
runTest("Injecting exception into while loop with break statement causes catch block to be ignored");
}
... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | runTest("compiler error when mixing inheritance, overriding and polymorphism");
}
public void testPerTypeWithin_pr106554() {runTest("Problem in staticinitialization with pertypewithin aspect");}
public void testPerTypeWithinMissesNamedInnerTypes() {
runTest("pertypewithin() handing of inner classes (1)")... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
}
public void npeOnTypeNotFound() {
runTest("structure model npe on type not found");
}
public void testNoRuntimeExceptionSoftening() {
runTest("declare soft of runtime exception");
}
public void testRuntimeNoSoftenWithHandler() {
runTest("declare soft w. catch block");
}
public vo... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testPTWInterface() {
runTest("pertypewithin({interface}) illegal field modifier");
}
public void testEnumCalledEnumEtc() {
runTest("enum called Enum, annotation called Annotation, etc");
}
public void testInternalCompilerError_pr86832() {
runTest("Internal compiler error");
}
p... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testItdGenerics_pr99228() {runTest("ITD of a field into a generic class");}
public void testItdGenerics_pr98320() {runTest("intertype with nested generic type");}
public void testItdGenerics_pr100227() {runTest("inner class with generic enclosing class");}
public void testItdGenerics_pr100260() {run... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | runTest("intermediate annotation matching");
}
public void testBadRuntimeTestGeneration() {
runTest("target(@Foo *)");
}
public void testErrorMessageOnITDWithTypePatterns() {
runTest("clear error message on itd with type pattern");
}
public void testAjKeywordsAsIdentifiers() {
runTest("bef... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testAtSuppressWarnings() {
runTest("@SuppressWarnings should suppress");
}
public void testDEOWWithBindingPointcut() {
runTest("declare warning : foo(str) : ...;");
}
public void testAroundAdviceAndInterfaceInitializer() {
runTest("around advice on interface initializer");
}
pu... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testAnonymousInnerClassWithMethodReturningTypeParameter_pr107898() {
runTest("anonymous inner class with method returning type parameter");
}
public void testMatchingOfObjectArray() {
runTest("matching against Object[]");
}
public void testMultipleAnonymousInnerClasses_pr108104() ... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testParameterizedVarArgsMatch() {
runTest("varargs with type variable");
}
public void testFieldAccessInsideITDM() {
runTest("itd field access inside itd method");
}
public void testTypeVarWithTypeVarBound() {
runTest("type variable with type variable bound");
}
public void testEn... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testVisibiltyInSignatureMatchingWithOverridesPart1() {
runTest("visibility in signature matching with overrides - 1");
}
public void testVisibiltyInSignatureMatchingWithOverridesPart2() {
runTest("visibility in signature matching with overrides - 2");
}
public void testVisibiltyInSignatureMatc... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | public void testOverrideAndCovarianceWithDecPRuntimeMultiFiles() {
runTest("override and covariance with decp - runtime separate files");
}
public void testOverrideAndCovarianceWithDecPRuntimeMultiFilesBinaryWeaving() {
runTest("override and covariance with decp - binary weaving");
}
public void testAb... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testAdviceOnCflow() {
runTest("advising cflow advice execution");
}
public void testNoTypeMismatchOnSameGenericTypes() {
runTest("no type mismatch on generic types in itds");
}
public void testSuperCallInITD() {
runTest("super call in ITD");
}
public void testSuperCallInITDPar... |
117,681 | Bug 117681 VerifyError when using annotations to define inter-type annotation | Using Sun JDK1.5.0_04 Audit.java public interface Audit { public String getLastUpdatedBy(); public void setLastUpdatedBy(String un); } AuditImpl.java public class AuditImpl implements Audit { private String lastUpdatedBy; public String getLastUpdatedBy() { return lastUpdatedBy; } public void setLastUpdatedBy(String un)... | resolved fixed | 11ab99f | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2005-11-23T12:54:02Z | 2005-11-23T10:00:00Z | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | }
public void testNoVerifyErrorOnGenericCollectionMemberAccess() {
runTest("no verify error on generic collection member access");
}
public void testRawAndGenericTypeConversionITDCons() {
runTest("raw and generic type conversion with itd cons");
}
public void testAtAnnotationBindingWithAround() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.