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.getType().equals(Type.tString)) {
String clazz = ((ConstOperator)param).getValue();
clazz = clazz.substring(1, clazz.length()-1);
if (put.getFieldName()
.equals("class$" + clazz.replace('.', '$'))
|| put.getFieldName()
.equals("class$L" + clazz.replace('.', '$'))) {
/* XXX analyzed is set too late, the field
* is already printed.
*/
put.getField().analyzedSynthetic();
return new ClassFieldOperator(Type.tClass(clazz));
}

Loading…
Cancel
Save