for (ClassFile.CPInfo fieldRef : fieldReferences){
if (AllowFieldRef(fieldRef,classfile)){
if (WebLoader.Debug){
String bclass = fieldRef.getClass(classfile);
String bname = fieldRef.getName(classfile);
String btype = fieldRef.getType(classfile);
System.err.println(String.format("%s: allowed class '%s' with field-ref cl '%s' na '%s' ty '%s'.",Thread.currentThread().getName(),classfile.getName(),bclass,bname,btype));
}
continue;
}
else {
dropped = file.delete();
if (WebLoader.Test){
String bclass = fieldRef.getClass(classfile);
String bname = fieldRef.getName(classfile);
String btype = fieldRef.getType(classfile);
System.err.println(String.format("%s: dropped class '%s' with field-ref cl '%s' na '%s' ty '%s'.",Thread.currentThread().getName(),classfile.getName(),bclass,bname,btype));
for (ClassFile.CPInfo methodRef : methodReferences){
if (AllowMethodRef(methodRef,classfile)){
if (WebLoader.Debug){
String bclass = methodRef.getClass(classfile);
String bname = methodRef.getName(classfile);
String btype = methodRef.getType(classfile);
System.err.println(String.format("%s: allowed class '%s' with method-ref cl '%s' na '%s' ty '%s'.",Thread.currentThread().getName(),classfile.getName(),bclass,bname,btype));
}
continue;
}
else {
dropped = file.delete();
if (WebLoader.Test){
String bclass = methodRef.getClass(classfile);
String bname = methodRef.getName(classfile);
String btype = methodRef.getType(classfile);
System.err.println(String.format("%s: dropped class '%s' with method-ref cl '%s' na '%s' ty '%s'.",Thread.currentThread().getName(),classfile.getName(),bclass,bname,btype));
System.err.println(String.format("%s: allowed class '%s' with field name '%s' type '%s'.",Thread.currentThread().getName(),classfile.getName(),name,signature));
System.err.println(String.format("%s: dropped class '%s' for field name '%s' type '%s'.",Thread.currentThread().getName(),classfile.getName(),name,signature));
System.err.println(String.format("%s: allowed class '%s' with method name '%s' type '%s'.",Thread.currentThread().getName(),classfile.getName(),name,signature));
System.err.println(String.format("%s: dropped class '%s' for method name '%s' type '%s'.",Thread.currentThread().getName(),classfile.getName(),name,signature));
}
}
}
}
}
}
}
}
else {
file.delete();
if (WebLoader.Test){
System.err.println(String.format("%s: dropped file '%s' for superclass.",Thread.currentThread().getName(),file.getPath()));
}
}
}
catch (Exception any){
file.delete();
if (WebLoader.Test){
System.err.println(String.format("%s: dropped file '%s' for error '%s'.",Thread.currentThread().getName(),file.getPath(),any.toString()));