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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | throwIaxIfNull(o, name);
if (null != c) {
Class actualClass = o.getClass();
if (!c.isAssignableFrom(actualClass)) {
String message = name + " not assignable to " + c.getName();
throw new IllegalArgumentException(message);
}
}
}
/**
*/
}
}
}
/**
* Shorthand fo... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | public static final void throwIaxIfFalse(final boolean test, final String message) {
if (!test) {
throw new IllegalArgumentException(message);
}
}
}
public static boolean isEmpty(String s) {
return ((null == s) || (0 == s.length()));
}
public static boolean isEmpty(Object[] ra) {
return ((n... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | /**
* Splits <code>input</code> at commas, trimming any white space.
*
* @param input <code>String</code> to split.
* @return List of String of elements.
*/
public static List commaSplit(String input) {
return anySplit(input, ",");
}
/**
* Split string as classpath, delimited at File.pathSeparator. En... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | /**
* Get System property as boolean, but use default value where the system
* property is not set.
*
* @return true if value is set to true, false otherwise
*/
public static boolean getBoolean(String propertyName, boolean defaultValue) {
if (null != propertyName) {
try {
String value = System.getP... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | if (null == input) {
return Collections.EMPTY_LIST;
}
ArrayList result = new ArrayList();
if (LangUtil.isEmpty(delim) || (-1 == input.indexOf(delim))) {
result.add(input.trim());
} else {
StringTokenizer st = new StringTokenizer(input, delim);
while (st.hasMoreTokens()) {
result.add(st.nextToken... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
public static List safeList(List list) {
return (null == list ? Collections.EMPTY_LIST : Collections.unmodifiableList(list));
}
/**
*/
}
}
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
}
break;
}
}
}
}
/**
*/
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
}
}
/**
* copy non-null two-dimensional String[][]
*
* @see extractOptions(String[], String[][])
*/
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.arra... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | * String[] args = extractOptions(args, options);
* boolean verbose = null != options[0][0];
* boolean classpath = options[1][1];
* </pre>
*
* @param args the String[] input options
* @param options the String[][]options to find in the input args - not null
* for each String[] component the fir... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | final int MAX = j + doMore;
if (MAX >= args.length) {
String s = "expecting " + doMore + " args after ";
throw new IllegalArgumentException(s + args[j]);
}
for (int k = 1; k < option.length; k++) {
option[k] = args[++j];
}
}
}
}
if (!found) {
result[result... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | /**
*/
}
}
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
}
}
}
}
break;
}
}
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
}
}
}
break;
}
}
}
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
break;
}
}
}
}
/**
*/ |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
}
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
}
}
}
}
}
/**
*/ |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53: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 with the same component type a... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
if (0 < resultSize) {
sink = result.toArray(sink);
}
return sink;
}
/**
* @return a String with the unqualified class name of the class (or "null")
*/
public static String unqualifiedClassName(Class c) {
if (null == c) {
return "null";
}
String name = c.getName();
int loc = name.lastIndexOf... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | return in;
}
StringBuffer result = new StringBuffer();
final int len = sought.length();
int start = 0;
int loc;
while (-1 != (loc = in.indexOf(sought, start))) {
result.append(in.substring(start, loc));
if (!LangUtil.isEmpty(replace)) {
result.append(replace);
}
start = loc + len;
}
resu... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
i++;
j++;
break;
}
}
} |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
/**
* @return "({UnqualifiedExceptionClass}) {message}"
*/
public static String renderExceptionShort(Throwable e) {
if (null == e)
return "(Throwable) null";
return "(" + LangUtil.unqualifiedClassName(e) + ") " + e.getMessage();
}
/**
* Renders exception <code>t</code> after unwrapping and eliding an... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | t = unwrapException(t);
StringBuffer stack = stackToString(t, false);
if (elide) {
elideEndingLines(StringChecker.TEST_PACKAGES, stack, 100);
}
return stack.toString();
}
/**
* Trim ending lines from a StringBuffer, clipping to maxLines and further
* removing any number of trailing lines accepted by ch... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | break;
} else {
elided++;
lines.removeLast();
}
}
if ((elided > 0) || (maxLines < 1)) {
final int EOL_LEN = EOL.length();
int totalLength = 0;
while (!lines.isEmpty()) {
totalLength += EOL_LEN + ((String) lines.getFirst()).length();
lines.removeFirst();
}
if (stack.length() > to... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
throwable.printStackTrace(writer);
try {
buf.close();
} catch (IOException ioe) {
} ignored
return buf.getBuffer();
}
public static Throwable unwrapException(Throwable t) {
Throwable current = t;
Throwable next = null;
while (current != null) {
if (current instanceof InvocationTargetExc... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | if (null == next) {
break;
} else {
current = next;
next = null;
}
}
return current;
}
/**
* Replacement for Arrays.asList(..) which gacks on null and returns a List
* in which remove is an unsupported operation.
*
* @param array the Object[] to convert (may be null)
* @return the Lis... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | static StringChecker TEST_PACKAGES = new StringChecker(new String[] { "org.aspectj.testing",
"org.eclipse.jdt.internal.junit", "junit.framework.",
"org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" });
String[] infixes;
StringChecker(String[] infixes) {
this.infixes = infixes;
}
pub... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
/**
* Gen classpath.
*
* @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 Str... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
sink.append(input);
if (!LangUtil.isEmpty(delimiter)) {
sink.append(delimiter);
}
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... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
controller.init(command, mainClass);
return controller;
}
/**
*/
}
}
/**
* 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 javaHo... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | try {
javaHome = System.getProperty("java.home");
} catch (Throwable t) {
ignore
}
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++) {
... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
}
/**
* Sleep until a particular time.
*
* @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 IllegalArgume... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | * main thread to wait for the process and pipes streams (in child threads)
* through to the corresponding streams (e.g., the process System.err to
* this System.err). This can complete normally, by exception, or on demand
* by a client. Clients can implement <code>doCompleting(..)</code> to get
* notice when th... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | /*
* XXX not verified thread-safe, but should be. Known problems: - user
* stops (completed = true) then exception thrown from destroying
* process (stop() expects !completed) ...
*/
private String[] command;
private String[] envp;
private String label;
private boolean init;
private boolean starte... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
/**
* Permit re-running using the same command if this is not started or if
* completed. Can also call this when done with results to release
* references associated with results (e.g., stack traces).
*/
public final void reinit() {
if (!init) {
throw new IllegalStateException("must init(..) be... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | ArrayList cmd = new ArrayList();
cmd.add(java.getAbsolutePath());
cmd.add("-classpath");
cmd.add(classpath);
cmd.add(mainClass);
if (!LangUtil.isEmpty(args)) {
cmd.addAll(Arrays.asList(args));
}
init((String[]) cmd.toArray(new String[0]), mainClass);
}
public final void init(String[] comman... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
public final void setOutSnoop(ByteArrayOutputStream snoop) {
outSnoop = snoop;
if (null != outStream) {
outStream.setSnoop(outSnoop);
}
}
/**
* Start running the process and pipes asynchronously.
*
* @return Thread started or null if unable to start thread (results
* available ... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | if (null != errSnoop) {
errStream.setSnoop(errSnoop);
}
outStream = new FileUtil.Pipe(process.getInputStream(), System.out);
if (null != outSnoop) {
outStream.setSnoop(outSnoop);
}
inStream = new FileUtil.Pipe(System.in, process.getOutputStream());
Runnable processRunner = new Runnable() {... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | }
/**
* Destroy any process, stop any pipes. This waits for the pipes to
* clear (reading until no more input is available), but does not wait
* for the input stream for the pipe to close (i.e., not waiting for
* end-of-file on input stream).
*/
public final synchronized void stop() {
if (complete... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | return userStopped;
}
/**
* Get any Throwable thrown. Note that the process can complete normally
* (with a valid return value), at the same time the pipes throw
* exceptions, and that this may return some exceptions even if the
* process is not complete.
*
* @return null if not complete or Throw... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53:20Z | util/src/org/aspectj/util/LangUtil.java | * @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_VALUE
*/
priv... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53: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... |
288,198 | Bug 288198 LangUtils JVM version detection cannot handle Java 7 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: 1.6.4 The JVM detection in LangUtils is currently unable to handle Java7, whilst this is naturally an unreleased version of the JVM, the fix is trivial. Reproducible: Always Steps to Reproduce: ... | resolved fixed | b29f839 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-04T16:36:07Z | 2009-09-01T01:53: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 !... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | 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... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | import java.util.Map;
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;
impo... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | 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... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | 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 static Trace tra... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | this(makeDefaultClasspath(cp), IMessageHandler.THROW, null);
}
public IRelationship.Kind determineRelKind(ShadowMunger munger) {
AdviceKind ak = ((Advice) munger).getKind();
if (ak.getKey() == AdviceKind.Before.getKey())
return IRelationship.Kind.ADVICE_BEFORE;
else if (ak.getKey() == AdviceKind.After.getKey... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | ((Advice) munger).hasDynamicTests()
);
}
if (!getMessageHandler().isIgnoring(IMessage.WEAVEINFO)) {
reportWeavingMessage(munger, shadow);
}
if (getModel() != null) {
AsmRelationshipProvider.addAdvisedRelationship(getModelAsAsmManager(), shadow, munger);
}
}
/*
* Report a message about the advi... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | if (shadow.getKind() == Shadow.SynchronizationUnlock) {
if (advice.lastReportedMonitorExitJoinpointLocation == null) {
advice.lastReportedMonitorExitJoinpointLocation = shadow.getSourceLocation();
} else {
if (areTheSame(shadow.getSourceLocation(), advice.lastReportedMonitorExitJoinpointLocation)) {
... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
getMessageHandler().handleMessage(msg);
}
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.getSourceF... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
int binary = isl.getSourceFile().getPath().lastIndexOf('!');
if (binary != -1 && binary < takeFrom) {
String pathToBinaryLoc = isl.getSourceFile().getPath().substring(0, binary + 1);
if (pathToBinaryLoc.indexOf(".jar") != -1) {
int lastSlash = pathToBinaryLoc.lastIndexOf('/');
if (l... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | List<String> ret = new ArrayList<String>();
StringTokenizer tok = new StringTokenizer(s, File.pathSeparator);
while (tok.hasMoreTokens()) {
ret.add(tok.nextToken());
}
return ret;
}
public BcelWorld(List classPath, IMessageHandler handler, ICrossReferenceHandler xrefHandler) {
this.classPath = new Cla... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | classPath = null;
loaderRef = new BcelWeakClassLoaderReference(loader);
setMessageHandler(handler);
setCrossReferenceHandler(xrefHandler);
}
public void ensureRepositorySetup() {
if (delegate == null) {
delegate = getClassLoaderRepositoryFor(loaderRef);
}
}
public Repository getClassLoaderReposit... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
return ret;
}
static String[] makeBcelTypesAsClassNames(UnresolvedType[] types) {
String[] ret = new String[types.length];
for (int i = 0, len = types.length; i < len; i++) {
ret[i] = types[i].getName();
}
return ret;
}
public static UnresolvedType fromBcel(Type t) {
return UnresolvedType.forSignat... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | } else {
return buildBcelDelegate(ty, jc, false);
}
}
public BcelObjectType buildBcelDelegate(ReferenceType resolvedTypeX, JavaClass jc, boolean exposedToWeaver) {
BcelObjectType ret = new BcelObjectType(resolvedTypeX, jc, exposedToWeaver);
return ret;
}
private JavaClass lookupJavaClass(ClassPathManager c... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | } catch (IOException ioe) {
return null;
}
}
public BcelObjectType addSourceObjectType(JavaClass jc) {
BcelObjectType ret = null;
String signature = UnresolvedType.forName(jc.getClassName()).getSignature();
Object fromTheMap = typeMap.get(signature);
if (fromTheMap != null && !(fromTheMap instanceof Refe... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
} else {
ret = buildBcelDelegate(nameTypeX, jc, true);
}
return ret;
}
void deleteSourceObjectType(UnresolvedType ty) {
typeMap.remove(ty.getSignature());
}
public static Member makeFieldJoinPointSignature(LazyClassGen cg, FieldInstruction fi) {
ConstantPool cpg = cg.getConstantPool();
return Membe... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
public Member makeJoinPointSignatureForMonitorExit(LazyClassGen cg, InstructionHandle h) {
return MemberImpl.monitorExit();
}
public Member makeJoinPointSignatureForArrayConstruction(LazyClassGen cg, InstructionHandle handle) {
Instruction i = handle.getInstruction();
ConstantPool cpg = cg.getConstantPool();... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | } else if (i.opcode == Constants.NEWARRAY) {
Type ot = i.getType();
UnresolvedType ut = fromBcel(ot);
retval = MemberImpl.method(ut, Modifier.PUBLIC, ResolvedType.VOID, "<init>", new ResolvedType[] { ResolvedType.INT });
} else {
throw new BCException("Cannot create array construction signature for th... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | declaringType = method.getDeclaringType();
break;
}
}
}
}
if (declaringType == null) {
if (declaring.charAt(0) == '[')
declaringType = UnresolvedType.forSignature(declaring);
else
declaringType = UnresolvedType.forName(declaring);
}
return MemberImpl.method(declaringType, modifie... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
if (!(concreteAspect instanceof ReferenceType)) {
return null;
}
ReferenceTypeDelegate rtDelegate = ((ReferenceType) concreteAspect).getDelegate();
if (rtDelegate instanceof BcelObjectType) {
return (BcelObjectType) rtDelegate;
} else {
return null;
}
}
public void tidyUp() {
classPath... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
public JavaClass loadClass(Class clazz) throws ClassNotFoundException {
throw new RuntimeException("Not implemented");
}
public void clear() {
delegate.clear();
}
/**
* The aim of this method is to make sure a particular type is 'ok'. Some operations on the delegate for a type modify it and
* this met... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
/**
* Apply a single declare parents - return true if we change the type
*/
private boolean applyDeclareParents(DeclareParents p, ResolvedType onType) {
boolean didSomething = false;
List newParents = p.findMatchingNewParents(onType, true);
if (!newParents.isEmpty()) {
didSomething = true;
BcelObjec... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | * Apply a declare @type - return true if we change the type
*/
private boolean applyDeclareAtType(DeclareAnnotation decA, ResolvedType onType, boolean reportProblems) {
boolean didSomething = false;
if (decA.matches(onType)) {
if (onType.hasAnnotation(decA.getAnnotation().getType())) {
return false;
... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | }
}
return true;
}
protected void weaveInterTypeDeclarations(ResolvedType onType) {
List<DeclareParents> declareParentsList = getCrosscuttingMembersSet().getDeclareParents();
if (onType.isRawType()) {
onType = onType.getGenericType();
}
onType.clearInterTypeMungers();
List<DeclareParents> dec... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | for (Iterator i = getCrosscuttingMembersSet().getDeclareAnnotationOnTypes().iterator(); i.hasNext();) {
DeclareAnnotation decA = (DeclareAnnotation) i.next();
boolean typeChanged = applyDeclareAtType(decA, onType, true);
if (typeChanged) {
anAnnotationChangeOccurred = true;
}
}
while ((aParentChange... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | public IWeavingSupport getWeavingSupport() {
return bcelWeavingSupport;
}
@Override
public void reportCheckerMatch(Checker checker, Shadow shadow) {
IMessage iMessage = new Message(checker.getMessage(), shadow.toString(), checker.isError() ? IMessage.ERROR
: IMessage.WARNING, shadow.getSourceLocation(), null... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | *
* @param xmlFiles list of File objects representing any aop.xml files passed in to configure the build process
*/
public void setXmlFiles(List<File> xmlFiles) {
if (!isXmlConfiguredWorld && !xmlFiles.isEmpty()) {
raiseError("xml configuration files only supported by the compiler when -xmlConfigured option ... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | return xmlConfiguration;
}
@Override
public boolean isAspectIncluded(ResolvedType aspectType) {
if (!isXmlConfigured()) {
return true;
}
return xmlConfiguration.specifiesInclusionOfAspect(aspectType.getName());
}
@Override
public TypePattern getAspectScope(ResolvedType declaringType) {
return xmlConfig... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | public WeavingXmlConfig(BcelWorld bcelWorld) {
this.world = bcelWorld;
}
public void add(Definition d) {
definitions.add(d);
}
public void ensureInitialized() {
if (!initialized) {
try {
resolvedIncludedAspects = new ArrayList<String>();
for (Definition definition : definitions) {
... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | world.getMessageHandler().handleMessage(
MessageUtil.info("Aspect '" + name
+ "' is scoped to apply against types matching pattern '"
+ scopePattern.toString() + "'"));
}
} catch (Exception e) {
world.getMessageHandler().handleMessage(
... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | if (excludePatterns.size() > 0) {
excludedPatterns = new ArrayList<TypePattern>();
excludedFastMatchPatterns = new ArrayList<String>();
}
for (String excludePattern : excludePatterns) {
if (excludePattern.endsWith("..*")) {
excludedFastMatchPatterns.add(excludePa... |
289,816 | Bug 289816 Potentially unclosed stream in org.aspectj.weaver.bcel.BcelWorld | null | resolved fixed | 67ffda8 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:05:59Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/BcelWorld.java | return scopes.get(name);
}
public boolean excludesType(ResolvedType type) {
String typename = type.getName();
boolean excluded = false;
for (String excludedPattern : excludedFastMatchPatterns) {
if (typename.startsWith(excludedPattern)) {
excluded = true;
break;
}
}
... |
289,818 | Bug 289818 Unclosed stream in org.aspectj.weaver.bcel.ExtensibleURLClassLoader | null | resolved fixed | 4d200d1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:07:29Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java | /* *******************************************************************
* Copyright (c) 2004 IBM Corporation
* 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
* h... |
289,818 | Bug 289818 Unclosed stream in org.aspectj.weaver.bcel.ExtensibleURLClassLoader | null | resolved fixed | 4d200d1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:07:29Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java | private ClassPathManager classPath;
public ExtensibleURLClassLoader (URL[] urls, ClassLoader parent) {
super(urls,parent);
try {
classPath = new ClassPathManager(FileUtil.makeClasspath(urls),null);
}
catch (ExceptionInInitializerError ex) {
ex.printStackTrace(System.out);
throw ex;
}
}
protected... |
289,818 | Bug 289818 Unclosed stream in org.aspectj.weaver.bcel.ExtensibleURLClassLoader | null | resolved fixed | 4d200d1 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-09-18T23:07:29Z | 2009-09-18T07:46:40Z | weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java | }
}
protected Class defineClass(String name, byte[] b, CodeSource cs) throws IOException {
return defineClass(name, b, 0, b.length, cs);
}
protected byte[] getBytes (String name) throws IOException {
byte[] b = null;
ClassPathManager.ClassFile classFile = classPath.find(UnresolvedType.forName(name));
if (cl... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | /*******************************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | import org.aspectj.apache.bcel.classfile.ConstantUtf8;
import org.aspectj.apache.bcel.classfile.Field;
import org.aspectj.apache.bcel.classfile.JavaClass;
import org.aspectj.apache.bcel.classfile.LocalVariable;
import org.aspectj.apache.bcel.classfile.LocalVariableTable;
import org.aspectj.apache.bcel.classfile.Method;... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | import org.aspectj.weaver.ReferenceType;
import org.aspectj.weaver.ResolvedMember;
import org.aspectj.weaver.ResolvedPointcutDefinition;
import org.aspectj.weaver.ResolvedType;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.WeaverMessages;
import org.aspectj.weaver.World;
import org.aspectj.weaver.... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | private final static List<AjAttribute> NO_ATTRIBUTES = Collections.emptyList();
private final static String[] EMPTY_STRINGS = new String[0];
private final static String VALUE = "value";
private final static String ARGNAMES = "argNames";
private final static String POINTCUT = "pointcut";
private final static String... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | /**
* The list of AjAttribute.XXX that we are populating from the @AJ read
*/
List<AjAttribute> ajAttributes = new ArrayList<AjAttribute>();
/**
* The resolved type (class) for which we are reading @AJ for (be it class, method, field annotations)
*/
final ResolvedType enclosingType;
final ISourceCon... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | private String[] m_argumentNamesLazy = null;
public String unparsedArgumentNames = null;
final Method method;
final BcelMethod bMethod;
public AjAttributeMethodStruct(Method method, BcelMethod bMethod, ResolvedType type, ISourceContext sourceContext,
IMessageHandler messageHandler) {
super(type, s... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | final Field field;
final BcelField bField;
public AjAttributeFieldStruct(Field field, BcelField bField, ResolvedType type, ISourceContext sourceContext,
IMessageHandler messageHandler) {
super(type, sourceContext, messageHandler);
this.field = field;
this.bField = bField;
}
}
/**
* Annotations ar... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | /**
* Extract class level annotations and turn them into AjAttributes.
*
* @param javaClass
* @param type
* @param context
* @param msgHandler
* @return list of AjAttributes
*/
public static List readAj5ClassAttributes(AsmManager model, JavaClass javaClass, ReferenceType type, ISourceContext context,
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
if ("Lorg/aspectj/lang/annotation/Pointcut;".equals(constantValue)) {
containsPointcut = true;
}
}
}
}
}
if (!containsAnnotationClassReference) {
return NO_ATTRIBUTES;
}
AjAttributeStruct struct = new AjAttributeStruct(type, context, msgHandler);
Attribute[] attributes = ja... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
if (hasAtPrecedenceAnnotation && !hasAtAspectAnnotation) {
msgHandler.handleMessage(new Message("Found @DeclarePrecedence on a non @Aspect type '" + type.getName() + "'",
IMessage.WARNING, null, type.getSourceLocation()));
return NO_ATTRIBUTES;
}
if (!(hasAtAspectAnnotation || isCodeStyl... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | for (int i = 0; i < javaClass.getMethods().length; i++) {
Method method = javaClass.getMethods()[i];
if (method.getName().startsWith(NameMangler.PREFIX)) {
continue;
}
AjAttributeMethodStruct mstruct = null;
boolean processedPointcut = false;
Attribute[] mattributes = method.getAttributes... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | mstruct = new AjAttributeMethodStruct(method, null, type, context, msgHandler);
processedPointcut = handlePointcutAnnotation((RuntimeAnnos) mattribute, mstruct);
if (!processedPointcut) {
processedPointcut = handleDeclareMixinAnnotation((RuntimeAnnos) mattribute, mstruct);
}
break;
}... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | for (int j = 0; j < fattributes.length; j++) {
Attribute fattribute = fattributes[j];
if (acceptAttribute(fattribute)) {
RuntimeAnnos frvs = (RuntimeAnnos) fattribute;
if (handleDeclareErrorOrWarningAnnotation(model, frvs, fstruct)
|| handleDeclareParentsAnnotation(frvs, fstruct)) {
... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | */
public static List<AjAttribute> readAj5MethodAttributes(Method method, BcelMethod bMethod, ResolvedType type,
ResolvedPointcutDefinition preResolvedPointcut, ISourceContext context, IMessageHandler msgHandler) {
if (method.getName().startsWith(NameMangler.PREFIX)) {
return Collections.emptyList();
}
Aj... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | hasAtAspectJAnnotationMustReturnVoid = hasAtAspectJAnnotationMustReturnVoid
|| handleAfterReturningAnnotation(rvs, struct, preResolvedPointcut, bMethod);
hasAtAspectJAnnotationMustReturnVoid = hasAtAspectJAnnotationMustReturnVoid
|| handleAfterThrowingAnnotation(rvs, struct, preResolvedPointcut, bMet... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | }
if (hasAtAspectJAnnotation && struct.method.isStatic()) {
msgHandler.handleMessage(MessageUtil.error("Advice cannot be declared static '" + methodToString(struct.method) + "'",
type.getSourceLocation()));
}
if (hasAtAspectJAnnotationMustReturnVoid && !Type.VOID.... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | * @return list of AjAttributes, always empty for now
*/
public static List readAj5FieldAttributes(Field field, BcelField bField, ResolvedType type, ISourceContext context,
IMessageHandler msgHandler) {
return Collections.EMPTY_LIST;
}
/**
* Read @Aspect
*
* @param runtimeAnnotations
* @param st... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | if (!extendsAspect) {
perClause = new PerSingleton();
} else {
perClause = new PerFromSuper(struct.enclosingType.getSuperclass().getPerClause().getKind());
}
} else {
String perX = aspectPerClause.getValue().stringifyValue();
if (perX == null || perX.length() <= 0) {
perClause = new Pe... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | aspectAttribute.setResolutionScope(binding);
return true;
}
}
return false;
}
/**
* Read a perClause, returns null on failure and issue messages
*
* @param perClauseString like "pertarget(.....)"
* @param struct for which we are parsing the per clause
* @return a PerClause instance
*/
private... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | perClause = new PerCflow(pointcut, true);
} else if (perClauseString.startsWith(PerClause.KindAnnotationPrefix.PERTARGET.getName())) {
pointcutString = PerClause.KindAnnotationPrefix.PERTARGET.extractPointcut(perClauseString);
pointcut = parsePointcut(pointcutString, struct, false);
perClause = new PerObject... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | return perClause;
}
/**
* Read @DeclarePrecedence
*
* @param runtimeAnnotations
* @param struct
* @return true if found
*/
private static boolean handlePrecedenceAnnotation(RuntimeAnnos runtimeAnnotations, AjAttributeStruct struct) {
AnnotationGen aspect = getAnnotation(runtimeAnnotations, AjcMemberMa... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | /**
* Read @DeclareParents
*
* @param runtimeAnnotations
* @param struct
* @return true if found
*/
private static boolean handleDeclareParentsAnnotation(RuntimeAnnos runtimeAnnotations, AjAttributeFieldStruct struct) {
AnnotationGen decp = getAnnotation(runtimeAnnotations, AjcMemberMaker.DECLA... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | ResolvedType fieldType = UnresolvedType.forSignature(struct.field.getSignature()).resolve(
struct.enclosingType.getWorld());
if (fieldType.isInterface()) {
TypePattern parent = parseTypePattern(fieldType.getName(), struct);
FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];... |
279,298 | Bug 279298 AspectJ LTW with Cobertura | null | resolved fixed | 35a9649 | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2009-10-22T23:26:14Z | 2009-06-05T19:26:40Z | weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | defaultImplClassName = UnresolvedType.forSignature(defaultImpl.getClassString()).getName();
if (defaultImplClassName.equals("org.aspectj.lang.annotation.DeclareParents")) {
defaultImplClassName = null;
} else {
ResolvedType impl = struct.enclosingType.getWorld().resolve(defaultImplClas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.