skylot/jadx · error · JadxRuntimeException

Unexpected type: {}

Error message

Unexpected type: {}

What it means

Error "Unexpected type: {}" thrown in skylot/jadx.

Source

Thrown at jadx-gui/src/main/java/jadx/gui/device/debugger/DebugController.java:247

		if (type == ArgType.INT) {
			return RuntimeType.INT;
		}
		if (type == ArgType.STRING) {
			return RuntimeType.STRING;
		}
		if (type == ArgType.LONG) {
			return RuntimeType.LONG;
		}
		if (type == ArgType.FLOAT) {
			return RuntimeType.FLOAT;
		}
		if (type == ArgType.DOUBLE) {
			return RuntimeType.DOUBLE;
		}
		if (type == ArgType.OBJECT) {
			return RuntimeType.OBJECT;
		}
		throw new JadxRuntimeException("Unexpected type: " + type);
	}

	protected static RuntimeType castType(String type) {
		RuntimeType rt = null;
		if (!StringUtils.isEmpty(type)) {
			rt = TYPE_MAP.get(type);
		}
		if (rt == null) {
			rt = POSSIBLE_TYPES[0];
		}
		return rt;
	}

	private void checkType(ArgType type, Object value) {
		if (!(type == ArgType.INT && value instanceof Integer)
				&& !(type == ArgType.STRING && value instanceof String)
				&& !(type == ArgType.LONG && value instanceof Long)
				&& !(type == ArgType.FLOAT && value instanceof Float)

View on GitHub (pinned to e738a26571)

Solutions

  1. Guard the type dispatch with an explicit default branch that throws a descriptive exception including the offending type value.
  2. Restrict inputs to the RuntimeType enum values actually supported by the debugger before reaching this switch.

When it happens

Trigger: Thrown at jadx-gui/src/main/java/jadx/gui/device/debugger/DebugController.java:247 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of skylot/jadx@e738a26571 (2026-08-14). Data as JSON: /api/errors/7455e0350ff5b07e. Report an issue: GitHub.