clazz string doesn't contain quotes anymore

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@441 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent e7a1201110
commit 0e1e5a6830
  1. 4
      jode/jode/expr/ComplexExpression.java

@ -574,11 +574,13 @@ public class ComplexExpression extends Expression {
&& param instanceof ConstOperator && param instanceof ConstOperator
&& param.getType().equals(Type.tString)) { && param.getType().equals(Type.tString)) {
String clazz = ((ConstOperator)param).getValue(); String clazz = ((ConstOperator)param).getValue();
clazz = clazz.substring(1, clazz.length()-1);
if (put.getFieldName() if (put.getFieldName()
.equals("class$" + clazz.replace('.', '$')) .equals("class$" + clazz.replace('.', '$'))
|| put.getFieldName() || put.getFieldName()
.equals("class$L" + clazz.replace('.', '$'))) { .equals("class$L" + clazz.replace('.', '$'))) {
/* XXX analyzed is set too late, the field
* is already printed.
*/
put.getField().analyzedSynthetic(); put.getField().analyzedSynthetic();
return new ClassFieldOperator(Type.tClass(clazz)); return new ClassFieldOperator(Type.tClass(clazz));
} }

Loading…
Cancel
Save