protected String getDumpDir() {
if (dumpDirPerClassloader) {
StringBuffer dir = new StringBuffer();
- dir.append("_ajdump").append(File.separator).append(weavingContext.getClassLoaderName());
+ dir.append("_ajdump").append(File.separator).append(weavingContext.getId());
return dir.toString();
} else {
return super.getDumpDir();
if (shortName == null) {
shortName = getClassLoaderName().replace('$','.');
int index = shortName.lastIndexOf(".");
- shortName = shortName.substring(index + 1);
+ if (index!=-1) {
+ shortName = shortName.substring(index + 1);
+ }
}
return shortName;
}