From 09917832851764deb4de33cc8ed97d30d50996cf Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 5 May 2010 16:51:49 +0000 Subject: [PATCH] 311762 --- .../weaver/bcel/ExtensibleURLClassLoader.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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()); -- 2.39.5