missed a white method

bug fixes


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@828 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 873fcef956
commit a8d6ca1e9a
  1. 9
      jode/jode/obfuscator/ConstantRuntimeEnvironment.java

@ -61,6 +61,8 @@ public class ConstantRuntimeEnvironment extends SimpleRuntimeEnvironment {
addWhite(Reference.getReference addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "<init>", ("Ljava/lang/StringBuffer;", "<init>",
"(Ljava/lang/String;)V")); "(Ljava/lang/String;)V"));
addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "<init>", "()V"));
addWhite(Reference.getReference addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append", ("Ljava/lang/StringBuffer;", "append",
"(Ljava/lang/String;)Ljava/lang/StringBuffer;")); "(Ljava/lang/String;)Ljava/lang/StringBuffer;"));
@ -282,15 +284,16 @@ public class ConstantRuntimeEnvironment extends SimpleRuntimeEnvironment {
throw new InterpreterException throw new InterpreterException
("Class "+ex.getMessage()+" not found"); ("Class "+ex.getMessage()+" not found");
} }
return obj != null && !clazz.isInstance(obj); return obj != null && clazz.isInstance(obj);
} }
public Object newArray(String type, int[] dimensions) public Object newArray(String type, int[] dimensions)
throws InterpreterException, NegativeArraySizeException { throws InterpreterException, NegativeArraySizeException {
if (type.length() == 1) { if (type.length() == dimensions.length + 1) {
Class clazz; Class clazz;
try { try {
clazz = Class.forName(type); clazz = Type.tType(type.substring(dimensions.length))
.getTypeClass();
} catch (ClassNotFoundException ex) { } catch (ClassNotFoundException ex) {
throw new InterpreterException throw new InterpreterException
("Class "+ex.getMessage()+" not found"); ("Class "+ex.getMessage()+" not found");

Loading…
Cancel
Save