aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2010-05-05 16:51:49 +0000
committeraclement <aclement>2010-05-05 16:51:49 +0000
commit09917832851764deb4de33cc8ed97d30d50996cf (patch)
tree8f0faef2e1932520defd6e4f940160978656af70 /weaver
parent84226fc188d2e5deb532d0d49841ffbd019670b1 (diff)
downloadaspectj-09917832851764deb4de33cc8ed97d30d50996cf.tar.gz
aspectj-09917832851764deb4de33cc8ed97d30d50996cf.zip
311762
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java b/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java
index 127dd6339..261621495 100644
--- a/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java
+++ b/weaver/src/org/aspectj/weaver/bcel/ExtensibleURLClassLoader.java
@@ -19,6 +19,7 @@ import java.net.URLClassLoader;
import java.security.CodeSource;
import org.aspectj.util.FileUtil;
+import org.aspectj.weaver.BCException;
import org.aspectj.weaver.UnresolvedType;
public abstract class ExtensibleURLClassLoader extends URLClassLoader {
@@ -64,7 +65,16 @@ public abstract class ExtensibleURLClassLoader extends URLClassLoader {
protected byte[] getBytes(String name) throws IOException {
byte[] b = null;
- ClassPathManager.ClassFile classFile = classPath.find(UnresolvedType.forName(name));
+ UnresolvedType unresolvedType = null;
+ try {
+ unresolvedType = UnresolvedType.forName(name);
+ } catch (BCException bce) {
+ if (bce.getMessage().indexOf("nameToSignature") == -1) {
+ bce.printStackTrace(System.err);
+ }
+ return null;
+ }
+ ClassPathManager.ClassFile classFile = classPath.find(unresolvedType);
if (classFile != null) {
try {
b = FileUtil.readAsByteArray(classFile.getInputStream());