Added a missing load()

removed unnecessary imports


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1277 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 24 years ago
parent 8f00154e64
commit 00448cfcbc
  1. 2
      jode/configure.in
  2. 5
      jode/jode/decompiler/TabbedPrintWriter.java
  3. 9
      jode/jode/expr/GetFieldOperator.java
  4. 8
      jode/jode/expr/PutFieldOperator.java

@ -78,7 +78,7 @@ AM_CONDITIONAL(HAVE_JIKES, test x"$JIKES" != x)
AC_ARG_WITH(javac, AC_ARG_WITH(javac,
[ --with-javac specify location of javac ], [ --with-javac specify location of javac ],
[ [
if test x$USER_SPECIFIED_JIKES == xtrue; then if test x$USER_SPECIFIED_JIKES = xtrue; then
AC_MSG_ERROR(You must only give one option --with-javac or --with-jikes) AC_MSG_ERROR(You must only give one option --with-javac or --with-jikes)
fi fi
if test ${withval} != "" || test ${withval} != "yes" || test ${withval} != "no"; then if test ${withval} != "" || test ${withval} != "yes" || test ${withval} != "no"; then

@ -659,6 +659,11 @@ public class TabbedPrintWriter {
} }
public String getClassString(ClassInfo clazz, int scopeType) { public String getClassString(ClassInfo clazz, int scopeType) {
try {
clazz.load(ClassInfo.OUTERCLASS);
} catch (IOException ex) {
clazz.guess(ClassInfo.OUTERCLASS);
}
if ((Options.options & Options.OPTION_INNER) != 0 if ((Options.options & Options.OPTION_INNER) != 0
&& clazz.getOuterClass() != null) { && clazz.getOuterClass() != null) {

@ -18,18 +18,9 @@
*/ */
package jode.expr; package jode.expr;
import jode.type.Type;
import jode.type.NullType;
import jode.type.ClassInterfacesType;
import jode.bytecode.FieldInfo;
import jode.bytecode.ClassInfo;
import jode.bytecode.Reference; import jode.bytecode.Reference;
import jode.decompiler.MethodAnalyzer; import jode.decompiler.MethodAnalyzer;
import jode.decompiler.ClassAnalyzer;
import jode.decompiler.MethodAnalyzer;
import jode.decompiler.FieldAnalyzer; import jode.decompiler.FieldAnalyzer;
import jode.decompiler.TabbedPrintWriter;
import jode.decompiler.Scope;
public class GetFieldOperator extends FieldOperator { public class GetFieldOperator extends FieldOperator {
public GetFieldOperator(MethodAnalyzer methodAnalyzer, boolean staticFlag, public GetFieldOperator(MethodAnalyzer methodAnalyzer, boolean staticFlag,

@ -18,17 +18,9 @@
*/ */
package jode.expr; package jode.expr;
import jode.type.Type;
import jode.type.NullType;
import jode.type.ClassInterfacesType;
import jode.bytecode.Reference; import jode.bytecode.Reference;
import jode.bytecode.ClassInfo;
import jode.bytecode.FieldInfo;
import jode.decompiler.MethodAnalyzer; import jode.decompiler.MethodAnalyzer;
import jode.decompiler.ClassAnalyzer;
import jode.decompiler.FieldAnalyzer; import jode.decompiler.FieldAnalyzer;
import jode.decompiler.TabbedPrintWriter;
import jode.decompiler.Scope;
public class PutFieldOperator extends FieldOperator public class PutFieldOperator extends FieldOperator
implements LValueExpression { implements LValueExpression {

Loading…
Cancel
Save