Skip to content

Commit

Permalink
core: suppress type error exception
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Nov 9, 2014
1 parent 988628a commit fcb120a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jadx-core/src/main/java/jadx/core/codegen/TypeGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import jadx.core.utils.Utils;
import jadx.core.utils.exceptions.JadxRuntimeException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TypeGen {
private static final Logger LOG = LoggerFactory.getLogger(TypeGen.class);

private TypeGen() {
}
Expand Down Expand Up @@ -59,7 +63,8 @@ public static String literalToString(long lit, ArgType type) {
case OBJECT:
case ARRAY:
if (lit != 0) {
throw new JadxRuntimeException("Wrong object literal: " + type + " = " + lit);
LOG.warn("Wrong object literal: " + lit + " for type: " + type);
return Long.toString(lit);
}
return "null";

Expand Down

0 comments on commit fcb120a

Please sign in to comment.