Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,25 +125,6 @@ public static BytecodeNode handleNullValue(
.ifTrue(isNull);
}

public static BytecodeNode boxPrimitive(Class<?> type)
{
BytecodeBlock block = new BytecodeBlock().comment("box primitive");
if (type == long.class) {
return block.invokeStatic(Long.class, "valueOf", Long.class, long.class);
}
if (type == double.class) {
return block.invokeStatic(Double.class, "valueOf", Double.class, double.class);
}
if (type == boolean.class) {
return block.invokeStatic(Boolean.class, "valueOf", Boolean.class, boolean.class);
}
if (type.isPrimitive()) {
throw new UnsupportedOperationException("not yet implemented: " + type);
}

return NOP;
}

public static BytecodeNode unboxPrimitive(Class<?> unboxedType)
{
BytecodeBlock block = new BytecodeBlock().comment("unbox primitive");
Expand Down Expand Up @@ -354,7 +335,7 @@ else if (type == ConnectorSession.class) {
lambdaArgumentIndex++;
break;
default:
throw new UnsupportedOperationException(format("Unsupported argument conventsion type: %s", invocationConvention.getArgumentConvention(realParameterIndex)));
throw new UnsupportedOperationException(format("Unsupported argument convention type: %s", invocationConvention.getArgumentConvention(realParameterIndex)));
}
realParameterIndex++;
}
Expand Down