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
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
*/ public static String[][] copyStrings(String[][] in) { String[][] out = new String[in.length][]; for (int i = 0; i < out.length; i++) { out[i] = new String[in[i].length]; System.arraycopy(in[i], 0, out[i], 0, out[i].length); } return out; } /** * Extract options and arguments to input option list, ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
String[] result = new String[args.length]; int resultIndex = 0; for (int j = 0; j < args.length; j++) { boolean found = false; for (int i = 0; !found && (i < options.length); i++) { String[] option = options[i]; LangUtil.throwIaxIfFalse(!LangUtil.isEmpty(option), "options"); String sought = option...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
if (!foundSet.get(i)) { options[i][0] = null; } } if (resultIndex < args.length) { String[] temp = new String[resultIndex]; System.arraycopy(result, 0, temp, 0, resultIndex); args = temp; } return args; } /** */
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} } } } } }
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} } } break; } } } } } } }
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} break; } } } } } } break; } }
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} } /** */ } }
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} } } } } } } }
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} /** */ } /** * Convert arrays safely. The number of elements in the result will be 1 smaller for each element that is null or not * assignable. This will use sink if it has exactly the right size. The result will always have the same component type as sink. * * @return an array wit...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
result = new ArrayList<Object>(sourceLength); for (int i = 0; i < sourceLength; i++) { if ((null != source[i]) && (sinkType.isAssignableFrom(source[i].getClass()))) { result.add(source[i]); } } resultSize = result.size(); } if (resultSize != sinkLength) { sink = (Object[]) Array.newInstance...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
/** * @return a String with the unqualified class name of the object (or "null") */ public static String unqualifiedClassName(Object o) { return LangUtil.unqualifiedClassName(null == o ? null : o.getClass()); } public static String replace(String in, String sought, String replace) { if (LangUtil.isEmpty(in...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
final String pad = " "; final int padLength = pad.length(); if (width > padLength) { width = padLength; } int topad = width - size; result = pad.substring(0, topad) + result; } return result; } }
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
i++; j++; break; } } } } /** * @return "({UnqualifiedExceptionClass}) {message}" */ public static String renderExceptionShort(Throwable e) { if (null == e) { return "(Throwable) null"; } return "(" + LangUtil.unqualifiedClassName(e) + ") " + e.getMessage(); } /** * Renders exception...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
* * @param t <code>Throwable</code> to print. * @param elide true to limit to 100 lines and elide test packages * @see StringChecker#TEST_PACKAGES */ public static String renderException(Throwable t, boolean elide) { if (null == t) { return "null throwable"; } t = unwrapException(t); StringBuffer s...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
while (st.hasMoreTokens() && (0 < --maxLines)) { lines.add(st.nextToken()); } st = null; String line; int elided = 0; while (!lines.isEmpty()) { line = (String) lines.getLast(); if (!checker.acceptString(line)) { break; } else { elided++; lines.removeLast(); } } if ((elided > 0)...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
public static StringBuffer stackToString(Throwable throwable, boolean skipMessage) { if (null == throwable) { return new StringBuffer(); } StringWriter buf = new StringWriter(); PrintWriter writer = new PrintWriter(buf); if (!skipMessage) { writer.println(throwable.getMessage()); } throwable.printSt...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
next = ((PrivilegedActionException) current).getException(); } else if (current instanceof SQLException) { next = ((SQLException) current).getNextException(); } if (null == next) { break; } else { current = next; next = null; } } return current; } ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
return Collections.emptyList(); } ArrayList<Object> list = new ArrayList<Object>(); list.addAll(Arrays.asList(array)); return list; } public static class StringChecker { static StringChecker TEST_PACKAGES = new StringChecker(new String[] { "org.aspectj.testing", "org.eclipse.jdt.internal.junit", "juni...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
* @param bootclasspath * @param classpath * @param classesDir * @param outputJar * @return String combining classpath elements */ public static String makeClasspath( String bootclasspath, String classpath, String classesDir, String outputJar) { StringBuffer sb = new StringBuffer(); addIfNotEmpty(boot...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
return true; } /** * Create or initialize a process controller to run a process in another VM asynchronously. * * @param controller the ProcessController to initialize, if not null * @param classpath * @param mainClass * @param args * @return initialized ProcessController */ public static ProcessCon...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
*/ } } /** * Find java executable File path from java.home system property. * * @return File associated with the java command, or null if not found. */ public static File getJavaExecutable() { String javaHome = null; File result = null; try { javaHome = System.getPropert...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
if (null != javaHome) { File binDir = new File(javaHome, "bin"); if (binDir.isDirectory() && binDir.canRead()) { String[] execs = new String[] { "java", "java.exe" }; for (int i = 0; i < execs.length; i++) { result = new File(binDir, execs[i]); if (result.canRead()) { break; } } ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
* * @param time the long time in milliseconds to sleep until * @return true if delay succeeded, false if interrupted 100 times */ public static boolean sleepUntil(long time) { if (time == 0) { return true; } else if (time < 0) { throw new IllegalArgumentException("negative: " + time); } long cu...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
* <pre> * LangUtil.ProcessController controller = new LangUtil.ProcessController() { * protected void doCompleting(LangUtil.ProcessController.Thrown thrown, int result) { * signal result * } * }; * controller.init(new String[] { &quot;java&quot;, &quot;-version&quot; }, &quot;java version&quot;); * ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
private boolean userStopped; private Process process; private FileUtil.Pipe errStream; private FileUtil.Pipe outStream; private FileUtil.Pipe inStream; private ByteArrayOutputStream errSnoop; private ByteArrayOutputStream outSnoop; private int result; private Thrown thrown; public ProcessController() ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
outStream = null; inStream = null; } public final void init(String classpath, String mainClass, String[] args) { init(LangUtil.getJavaExecutable(), classpath, mainClass, args); } public final void init(File java, String classpath, String mainClass, String[] args) { LangUtil.throwIaxIfNull(java, "java")...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
this.envp = (String[]) LangUtil.safeCopy(envp, new String[0]); if (1 > this.envp.length) { throw new IllegalArgumentException("empty envp"); } } public final void setErrSnoop(ByteArrayOutputStream snoop) { errSnoop = snoop; if (null != errStream) { errStream.setSnoop(errSnoop); } } public...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
started = true; } try { process = Runtime.getRuntime().exec(command); } catch (IOException e) { stop(e, Integer.MIN_VALUE); return null; } errStream = new FileUtil.Pipe(process.getErrorStream(), System.err); if (null != errSnoop) { errStream.setSnoop(errSnoop); } outStream = new ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
thrown = e; } finally { stop(thrown, result); } } }; Thread result = new Thread(processRunner, label); result.start(); return result; } /** * Destroy any process, stop any pipes. This waits for the pipes to clear (reading until no more input is available), but * does not wait f...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
public final boolean completed() { return completed; } public final boolean started() { return started; } public final boolean userStopped() { return userStopped; } /** * Get any Throwable thrown. Note that the process can complete normally (with a valid return value), at the same time the * ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
* @see getThrown() * @see getResult() * @see stop() */ protected void doCompleting(Thrown thrown, int result) { } /** * Handle termination (on-demand, abrupt, or normal) by destroying and/or halting process and pipes. * * @param thrown ignored if null * @param result ignored if Integer.MIN_V...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
} if (null != errStream) { errStream.halt(true, true); errStream = null; } if (Integer.MIN_VALUE != result) { this.result = result; } completed = true; doCompleting(this.thrown, result); } /** * Create snapshot of Throwable's thrown. * * @param thrown ignored if null or if th...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
util/src/org/aspectj/util/LangUtil.java
private Thrown(Throwable fromProcess, Throwable fromOutPipe, Throwable fromErrPipe, Throwable fromInPipe) { this.fromProcess = fromProcess; this.fromErrPipe = fromErrPipe; this.fromOutPipe = fromOutPipe; this.fromInPipe = fromInPipe; thrown = ((null != fromProcess) || (null != fromInPipe) || (null !...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved.
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
* This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at * http://eclipse.org/legal/epl-v10.html * * Contributors: * John Kew (vmware) initial implementation * Lyor Goldstein (vmwar...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
/** * Default name of cache index file - assumed to contain {@link IndexEntry}-s */ public static final String INDEX_FILE = "cache.idx"; protected static final IndexEntry[] EMPTY_INDEX=new IndexEntry[0]; protected static final String[] EMPTY_KEYS=new String[0]; private final File indexFile; protected AbstractI...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
return EMPTY_KEYS; } else { return matches.toArray(new String[matches.size()]); } } protected Map<String, IndexEntry> readIndex () { return readIndex(getCacheDirectory(), getIndexFile()); } protected void writeIndex () { writeIndex(getIndexFile()); } protect...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
for (IndexEntry ie : idxValues) { IndexEntry resEntry=resolveIndexMapEntry(cacheDir, ie); if (resEntry != null) { indexMap.put(resEntry.key, resEntry); } else if ((logger != null) && logger.isTraceEnabled()) { logger.debug("readIndex(" + cacheFile + "...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
} return EMPTY_INDEX; } protected void writeIndex (File indexFile, Map<String,? extends IndexEntry> index) throws IOException { writeIndex(indexFile, LangUtil.isEmpty(index) ? Collections.<IndexEntry>emptyList() : index.values()); } protected void writeIndex (File indexFile, IndexEntry ... entries) throws IO...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
/** * The default index entry in the index file */ public static class IndexEntry implements Serializable, Cloneable { private static final long serialVersionUID = 756391290557029363L; public String key; public boolean generated; public boolean ignored; public long crcClass; public long crcWeaved; ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/AbstractIndexedFileCacheBacking.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (this == obj) return true; if (getClass() != obj.getClass()) return false; IndexEntry other=(IndexEntry) obj; if (this.key.equals(other.key) && (this.ignored == other.ignored) && (this.generated == other...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
import org.aspectj.util.FileUtil; import org.aspectj.util.LangUtil; /** * Naive File-Backed Class Cache with no expiry or application * centric invalidation. * <p/> * Enabled with the system property, "aj.weaving.cache.dir" * If this system property is not set, no caching will be * performed. * <p/> * A CRC che...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
MessageUtil.error("Unable to create cache directory at " + cacheDir.getName()); return null; } } else if (!cacheDir.isDirectory()) { MessageUtil.error("Not a cache directory at " + cacheDir.getName()); return null; } if (!cacheDir.canWrite()) { MessageUtil.error("Cache directory is not writable at...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
} } private void addIndexEntry(IndexEntry ie) { synchronized (LOCK) { index.put(ie.key, ie); writeIndex(); } } @Override protected Map<String, IndexEntry> readIndex() { synchronized (LOCK) { return super.readIndex(); } } @Override protected void writeIndex() { synchronized (LOCK) { supe...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
public static CacheBacking createBacking(String scope) { String cache = System.getProperty(WEAVED_CLASS_CACHE_DIR); if (cache == null) { return null; } File cacheDir = new File(cache, scope); return createBacking(cacheDir); } @Override public String[] getKeys(final String regex) { File cacheDirectory ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
String refKey=ref.getKey(); File cacheFile = new File(cacheDirectory, refKey); IndexEntry ie = index.get(refKey); if (ie == null) { delete(cacheFile); return null; } if (crc(originalBytes) != ie.crcClass) { delete(cacheFile); return null; } if (ie.ignored) { return new CachedClass...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
File cacheDirectory = getCacheDirectory(); String refKey = entry.getKey(); IndexEntry ie = index.get(refKey); File cacheFile = new File(cacheDirectory, refKey); final boolean writeEntryBytes; if ((ie != null) && ((ie.ignored != entry.isIgnored()) || (ie.generated != entry.isGenerated()) || (crc(origina...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
removeIndexEntry(refKey); delete(cacheFile); } } @Override protected void delete(File file) { synchronized (LOCK) { super.delete(file); } } protected byte[] read(File file, long expectedCRC) { byte[] bytes=null; synchronized (LOCK) { FileInputStream fis = null; try { fis = new FileInputSt...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/src/org/aspectj/weaver/tools/cache/DefaultFileCacheBacking.java
} } return bytes; } protected long write(File file, byte[] bytes) { synchronized (LOCK) { if (file.exists()) { return -1L; } OutputStream out = null; try { out = new FileOutputStream(file); out.write(bytes); } catch (Exception e) { if ((logger != null) && logger.isTraceEnabled()) ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/CacheTests.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolverTest.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolverTest.java
byte[] FAKE_BYTES = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; String FAKE_CLASS = "com.example.foo.Bar"; DefaultCacheKeyResolver resolver = new DefaultCacheKeyResolver(); class BasicTestCL extends ClassLoader { } class URLTestCL extends URLClassLoader { public URLTestCL(URL... urls) { super(urls); } } public void t...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultCacheKeyResolverTest.java
String scopeBCa = resolver.createClassLoaderScope(BC, Arrays.asList(a)); String scopeBC2a = resolver.createClassLoaderScope(BC2, Arrays.asList(a)); String scopeAa2 = resolver.createClassLoaderScope(A, Arrays.asList(a2)); String scopeABa2 = resolver.createClassLoaderScope(AB, Arrays.asList(a2)); String scopeBCa2...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultFileCacheBackingTest.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultFileCacheBackingTest.java
private final CacheKeyResolver resolver = new DefaultCacheKeyResolver(); private final CachedClassReference fakeRef = resolver.weavedKey(FAKE_CLASS, FAKE_BYTES); private final String fakeKey=fakeRef.getKey(); private File root; public DefaultFileCacheBackingTest () { super(); } @Override public void setUp() th...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultFileCacheBackingTest.java
backing.clear(); assertNull(backing.get(fakeRef, FAKE_BYTES)); } private CachedClassEntry createTestEntry(String key) { return new CachedClassEntry(new CachedClassReference(key, key), FAKE_BYTES, CachedClassEntry.EntryType.WEAVED); } public void testGetKeys() throws Exception { CacheBacking backing = DefaultF...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultFileCacheBackingTest.java
assertTrue(cachedFile.isFile()); assertEquals(FAKE_BYTES.length, cachedFile.length()); CRC32 expectedCRC = new CRC32(); expectedCRC.update(FAKE_BYTES); assertTrue(indexEntryExists(backing, fakeKey, expectedCRC.getValue())); CachedClassEntry entry = backing.get(fakeRef, FAKE_BYTES); assertEquals(FAKE_BYTES.l...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultFileCacheBackingTest.java
entry = new CachedClassEntry(wref, FAKE_BYTES, CachedClassEntry.EntryType.WEAVED); backing.put(entry, FAKE_BYTES); cachedFile = new File(root, wref.getKey()); assertTrue(cachedFile.exists()); assertTrue(cachedFile.isFile()); assertTrue(indexEntryExists(backing, wref.getKey(), expectedCRC.getValue())); Ca...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/DefaultFileCacheBackingTest.java
assertNotNull("No initial entry", entry); byte[] newBytes=new byte[FAKE_BYTES.length]; for (int index=0; index < FAKE_BYTES.length; index++) { newBytes[index] = (byte) (0 - FAKE_BYTES[index]); } entry = backing.get(fakeRef, newBytes); assertNull("Unexpected modified bytes entry: " + entry, entry); Fil...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/SimpleClassCacheTest.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/SimpleClassCacheTest.java
byte[] FAKE_BYTES_V1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; byte[] FAKE_BYTES_V2 = {1, 1, 2, 3, 4, 5, 6, 7, 8, 9}; byte[] FAKE_WOVEN_BYTES_V1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10}; byte[] FAKE_WOVEN_BYTES_V2 = {1, 1, 2, 3, 4, 5, 6, 7, 8, 9,10}; private SimpleCache createCache() throws Exception { return new SimpleCache(...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/SimpleClassCacheTest.java
byte result[] = cache.getAndInitialize(classA, FAKE_BYTES_V1, null, null); for(int i = 0; i < result.length; i ++){ assertEquals("Cached version byte[" +i+"] should be equal to the original woven classe",result[i],FAKE_WOVEN_BYTES_V1[i]); } File f = new File (System.getProperty("java.io.tmpdir") + File.s...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/WeavedClassCacheTest.java
/******************************************************************************* * Copyright (c) 2012 Contributors. * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/WeavedClassCacheTest.java
String FAKE_CLASS = "com.example.foo.Bar"; byte[] FAKE_BYTES = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; public class MemoryCacheBacking implements CacheBacking { HashMap<String, CachedClassEntry> cache = new HashMap<String, CachedClassEntry>(); public String[] getKeys(String regex) { Set<String> keys = cache.keySet(); ...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/WeavedClassCacheTest.java
return matches.toArray(new String[0]); } public void remove(CachedClassReference ref) { cache.remove(ref.getKey()); } public void clear() { cache.clear(); } public CachedClassEntry get(CachedClassReference ref, byte[] originalBytes) { return cache.get(ref.getKey()); } public void put(CachedClas...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/WeavedClassCacheTest.java
public int accepts = 0; public List<String> classesISaw = new LinkedList<String>(); @Override public void acceptClass (String name, byte[] originalBytes, byte[] wovenBytes) { accepts++; classesISaw.add(name); } } TestGeneratedClassHandler generatedClassHandler = new TestGeneratedClassHandler(); CacheKe...
391,123
Bug 391123 Added support for more cache backing(s)
null
closed fixed
df1823b
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-10-29T19:46:03Z
2012-10-04T14:13:20Z
weaver/testsrc/org/aspectj/weaver/tools/cache/WeavedClassCacheTest.java
} public void testCache() throws Exception { reset(); WeavedClassCache cache = createCache(); CacheStatistics stats = cache.getStats(); CachedClassReference ref = cache.createCacheKey(FAKE_CLASS, FAKE_BYTES); assertNull(cache.get(ref, FAKE_BYTES)); cache.put(ref, FAKE_BYTES, FAKE_BYTES); assertNotNull(ca...
394,234
Bug 394234 Invalid StackMapTable generated in Java 7
When compiling for Java 7, AspectJ can compute an invalid StackMapTable. The verifier will throw a ClassNotFoundException when the generated class is loaded. Example: class Parent<T> {} class ChildA<T> extends Parent<T> {} class ChildB<T> extends Parent<T> {} public Object methodWithBadStackMapTable(boolean value) { re...
resolved fixed
fc55431
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-14T23:41:57Z
2012-11-13T23:40:00Z
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
/* ******************************************************************* * Copyright (c) 2008 Contributors * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at * http://w...
394,234
Bug 394234 Invalid StackMapTable generated in Java 7
When compiling for Java 7, AspectJ can compute an invalid StackMapTable. The verifier will throw a ClassNotFoundException when the generated class is loaded. Example: class Parent<T> {} class ChildA<T> extends Parent<T> {} class ChildB<T> extends Parent<T> {} public Object methodWithBadStackMapTable(boolean value) { re...
resolved fixed
fc55431
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-14T23:41:57Z
2012-11-13T23:40:00Z
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
/** * Uses asm to add the stack map attribute to methods in a class. The class is passed in as pure byte data and then a reader/writer * process it. The writer is wired into the world so that types can be resolved and getCommonSuperClass() can be implemented without * class loading using the context class loader. *...
394,234
Bug 394234 Invalid StackMapTable generated in Java 7
When compiling for Java 7, AspectJ can compute an invalid StackMapTable. The verifier will throw a ClassNotFoundException when the generated class is loaded. Example: class Parent<T> {} class ChildA<T> extends Parent<T> {} class ChildB<T> extends Parent<T> {} public Object methodWithBadStackMapTable(boolean value) { re...
resolved fixed
fc55431
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-14T23:41:57Z
2012-11-13T23:40:00Z
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
public AspectJClassVisitor(ClassVisitor classwriter) { super(Opcodes.ASM4, classwriter); } @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); return new ...
394,234
Bug 394234 Invalid StackMapTable generated in Java 7
When compiling for Java 7, AspectJ can compute an invalid StackMapTable. The verifier will throw a ClassNotFoundException when the generated class is loaded. Example: class Parent<T> {} class ChildA<T> extends Parent<T> {} class ChildB<T> extends Parent<T> {} public Object methodWithBadStackMapTable(boolean value) { re...
resolved fixed
fc55431
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-14T23:41:57Z
2012-11-13T23:40:00Z
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
private final World world; public AspectJConnectClassWriter(ClassReader cr, World w) { super(cr, ClassWriter.COMPUTE_FRAMES); this.world = w; } protected String getCommonSuperClass(final String type1, final String type2) { ResolvedType resolvedType1 = world.resolve(UnresolvedType.forName(type1.rep...
395,221
Bug 395221 weird error about unbound formals when mixing generics with annotation style
From the mailing list: I have following problem with following Aspect: @Aspect public class CounterAspect extends AbstractMoskitoAspect { @Around(value = "execution(* *(..)) && (@annotation(method))") public Object countMethod(ProceedingJoinPoint pjp, Count method) throws Throwable { return count(pjp, method.producerId...
resolved fixed
3e5af0f
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-27T22:52:33Z
2012-11-27T23:46:40Z
org.aspectj.matcher/src/org/aspectj/weaver/patterns/AndPointcut.java
/* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distri...
395,221
Bug 395221 weird error about unbound formals when mixing generics with annotation style
From the mailing list: I have following problem with following Aspect: @Aspect public class CounterAspect extends AbstractMoskitoAspect { @Around(value = "execution(* *(..)) && (@annotation(method))") public Object countMethod(ProceedingJoinPoint pjp, Count method) throws Throwable { return count(pjp, method.producerId...
resolved fixed
3e5af0f
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-27T22:52:33Z
2012-11-27T23:46:40Z
org.aspectj.matcher/src/org/aspectj/weaver/patterns/AndPointcut.java
Pointcut left, right; private int couldMatchKinds; public AndPointcut(Pointcut left, Pointcut right) { super(); this.left = left; this.right = right; this.pointcutKind = AND; setLocation(left.getSourceContext(), left.getStart(), right.getEnd()); couldMatchKinds = left.couldMatchKinds() & right.couldMatch...
395,221
Bug 395221 weird error about unbound formals when mixing generics with annotation style
From the mailing list: I have following problem with following Aspect: @Aspect public class CounterAspect extends AbstractMoskitoAspect { @Around(value = "execution(* *(..)) && (@annotation(method))") public Object countMethod(ProceedingJoinPoint pjp, Count method) throws Throwable { return count(pjp, method.producerId...
resolved fixed
3e5af0f
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-27T22:52:33Z
2012-11-27T23:46:40Z
org.aspectj.matcher/src/org/aspectj/weaver/patterns/AndPointcut.java
} public boolean equals(Object other) { if (!(other instanceof AndPointcut)) { return false; } AndPointcut o = (AndPointcut) other; return o.left.equals(left) && o.right.equals(right); } public int hashCode() { int result = 19; result = 37 * result + left.hashCode(); result = 37 * result + right.has...
395,221
Bug 395221 weird error about unbound formals when mixing generics with annotation style
From the mailing list: I have following problem with following Aspect: @Aspect public class CounterAspect extends AbstractMoskitoAspect { @Around(value = "execution(* *(..)) && (@annotation(method))") public Object countMethod(ProceedingJoinPoint pjp, Count method) throws Throwable { return count(pjp, method.producerId...
resolved fixed
3e5af0f
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2012-11-27T22:52:33Z
2012-11-27T23:46:40Z
org.aspectj.matcher/src/org/aspectj/weaver/patterns/AndPointcut.java
return Test.makeAnd(left.findResidue(shadow, state), right.findResidue(shadow, state)); } public Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) { AndPointcut ret = new AndPointcut(left.concretize(inAspect, declaringType, bindings), right.concretize(inAspect, declaringTy...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java
/******************************************************************************* * Copyright (c) 2012 Contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java
public void testInconsistentClassFile_pr389750_2() { runTest("inconsistent class file 2"); } public void testInconsistentClassFile_pr389750_3() { runTest("inconsistent class file 3"); } public void testInconsistentClassFile_pr389750_4() { runTest("inconsistent class file 4"); } public void testAnnotationVal...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
/* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribut...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
import java.util.StringTokenizer; import org.aspectj.apache.bcel.Constants; import org.aspectj.apache.bcel.classfile.ClassParser; import org.aspectj.apache.bcel.classfile.ConstantPool; import org.aspectj.apache.bcel.classfile.JavaClass; import org.aspectj.apache.bcel.generic.FieldInstruction; import org.aspectj.apache....
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
import org.aspectj.weaver.AnnotationOnTypeMunger; import org.aspectj.weaver.BCException; import org.aspectj.weaver.Checker; import org.aspectj.weaver.ICrossReferenceHandler; import org.aspectj.weaver.IWeavingSupport; import org.aspectj.weaver.Member; import org.aspectj.weaver.MemberImpl; import org.aspectj.weaver.Membe...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
private final ClassPathManager classPath; protected Repository delegate; private BcelWeakClassLoaderReference loaderRef; private final BcelWeavingSupport bcelWeavingSupport = new BcelWeavingSupport(); private boolean isXmlConfiguredWorld = false; private WeavingXmlConfig xmlConfiguration; private List<TypeDelegat...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
if (ak.getKey() == AdviceKind.Before.getKey()) { return IRelationship.Kind.ADVICE_BEFORE; } else if (ak.getKey() == AdviceKind.After.getKey()) { return IRelationship.Kind.ADVICE_AFTER; } else if (ak.getKey() == AdviceKind.AfterThrowing.getKey()) { return IRelationship.Kind.ADVICE_AFTERTHROWING; } else if...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
reportWeavingMessage(munger, shadow); } if (getModel() != null) { AsmRelationshipProvider.addAdvisedRelationship(getModelAsAsmManager(), shadow, munger); } } /* * 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 occ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
advice.lastReportedMonitorExitJoinpointLocation = shadow.getSourceLocation(); } else { if (areTheSame(shadow.getSourceLocation(), advice.lastReportedMonitorExitJoinpointLocation)) { advice.lastReportedMonitorExitJoinpointLocation = null; return; } advice.lastReportedMonitorExitJoinpo...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
} private boolean areTheSame(ISourceLocation locA, ISourceLocation locB) { if (locA == null) { return locB == null; } if (locB == null) { return false; } if (locA.getLine() != locB.getLine()) { return false; } File fA = locA.getSourceFile(); File fB = locA.getSourceFile(); if (fA == null) { ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
int takeFrom = isl.getSourceFile().getPath().lastIndexOf('/'); if (takeFrom == -1) { takeFrom = isl.getSourceFile().getPath().lastIndexOf('\\'); } int binary = isl.getSourceFile().getPath().lastIndexOf('!'); if (binary != -1 && binary < takeFrom) { String pathToBinaryLoc = isl.getSourceFile().g...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
classPath.addAll(getPathEntries(cp)); classPath.addAll(getPathEntries(ClassPath.getClassPath())); return classPath; } private static List<String> getPathEntries(String s) { List<String> ret = new ArrayList<String>(); StringTokenizer tok = new StringTokenizer(s, File.pathSeparator); while (tok.hasMoreTokens(...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
* @param loader * @param handler * @param xrefHandler */ public BcelWorld(ClassLoader loader, IMessageHandler handler, ICrossReferenceHandler xrefHandler) { classPath = null; loaderRef = new BcelWeakClassLoaderReference(loader); setMessageHandler(handler); setCrossReferenceHandler(xrefHandler); } ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
} static Type[] makeBcelTypes(UnresolvedType[] types) { Type[] ret = new Type[types.length]; for (int i = 0, len = types.length; i < len; i++) { ret[i] = makeBcelType(types[i]); } return ret; } static String[] makeBcelTypesAsClassNames(UnresolvedType[] types) { String[] ret = new String[types.length]; ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
String name = ty.getName(); ensureAdvancedConfigurationProcessed(); JavaClass jc = lookupJavaClass(classPath, name); if (jc == null) { if (typeDelegateResolvers != null) { for (TypeDelegateResolver tdr : typeDelegateResolvers) { ReferenceTypeDelegate delegate = tdr.getDelegate(ty); if (delega...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
return jc; } catch (ClassNotFoundException e) { if (trace.isTraceEnabled()) { trace.error("Unable to find class '" + name + "' in repository", e); } return null; } } ClassPathManager.ClassFile file = null; try { file = classPath.find(UnresolvedType.forName(name)); if (file == null) { ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
} public BcelObjectType addSourceObjectType(String classname, JavaClass jc, boolean artificial) { BcelObjectType ret = null; if (!jc.getClassName().equals(classname)) { throw new RuntimeException(jc.getClassName() + "!=" + classname); } String signature = UnresolvedType.forName(jc.getClassName()).getSignatu...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
} } else { ret = buildBcelDelegate(nameTypeX, jc, artificial, true); } return ret; } public BcelObjectType addSourceObjectType(String classname, byte[] bytes, boolean artificial) { BcelObjectType ret = null; String signature = UnresolvedType.forName(classname).getSignature(); ResolvedType fromTheMap = ...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
nameTypeX = new ReferenceType(signature, this); ret = buildBcelDelegate(nameTypeX, jc, artificial, true); typeMap.put(signature, nameTypeX); } } else { Object o = nameTypeX.getDelegate(); if (!(o instanceof BcelObjectType)) { throw new IllegalStateException("For " + classname + " should be BcelOb...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
return MemberImpl.field(fi.getClassName(cpg), (fi.opcode == Constants.GETSTATIC || fi.opcode == Constants.PUTSTATIC) ? Modifier.STATIC : 0, fi.getName(cpg), fi.getSignature(cpg)); } public Member makeJoinPointSignatureFromMethod(LazyMethodGen mg, MemberKind kind) { Member ret = mg.getMemberView(); if (ret...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
UnresolvedType ut = fromBcel(ot); ut = UnresolvedType.makeArray(ut, 1); retval = MemberImpl.method(ut, Modifier.PUBLIC, UnresolvedType.VOID, "<init>", new ResolvedType[] { INT }); } else if (i instanceof MULTIANEWARRAY) { MULTIANEWARRAY arrayInstruction = (MULTIANEWARRAY) i; UnresolvedType ut = null; s...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
public Member makeJoinPointSignatureForMethodInvocation(LazyClassGen cg, InvokeInstruction ii) { ConstantPool cpg = cg.getConstantPool(); String name = ii.getName(cpg); String declaring = ii.getClassName(cpg); UnresolvedType declaringType = null; String signature = ii.getSignature(cpg); int modifier = (ii i...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
} else { declaringType = UnresolvedType.forName(declaring); } } return MemberImpl.method(declaringType, modifier, name, signature); } @Override public String toString() { StringBuffer buf = new StringBuffer(); buf.append("BcelWorld("); buf.append(")"); return buf.toString(); } /** * Retriev...
398,588
Bug 398588 Using aspect 'requires' clause causes all aspects with 'requires' clauses not be loaded regardless
The usage of the 'requires' clause causes all aspects that have have 'requires' clauses not to be loaded regardless of whether the specified required class exists or not. Here is the scenario and why it happens: Let's assume we have a bunch of aspects (A1, A2, A3, etc.) - all with 'requires' clauses and all referencing...
resolved fixed
96ebaae
AspectJ
https://github.com/eclipse/org.aspectj
eclipse/org.aspectj
java
null
null
null
2013-01-21T18:46:15Z
2013-01-20T05:33:20Z
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
} } public void tidyUp() { classPath.closeArchives(); typeMap.report(); typeMap.demote(true); } public JavaClass findClass(String className) { return lookupJavaClass(classPath, className); } public JavaClass loadClass(String className) throws ClassNotFoundException { return lookupJavaClass(cl...