Skip to content

Commit

Permalink
Bad format error.
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Haltom <[email protected]>
  • Loading branch information
wasabii authored May 8, 2023
1 parent 4c7ff16 commit 27d9a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IKVM.ByteCode/Parsing/TypeAnnotationRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static bool TryReadTypeAnnotation(ref ClassFormatReader reader, out TypeA
TypeAnnotationTargetType.MethodInvocationTypeArgument => TypeAnnotationTypeArgumentTargetRecord.TryRead(ref reader, out targetInfo),
TypeAnnotationTargetType.ConstructorReferenceTypeArgument => TypeAnnotationTypeArgumentTargetRecord.TryRead(ref reader, out targetInfo),
TypeAnnotationTargetType.MethodReferenceTypeArgument => TypeAnnotationTypeArgumentTargetRecord.TryRead(ref reader, out targetInfo),
_ => throw new ByteCodeException($"Invalid type annotation target type: '0x{targetType:XX}'."),
_ => throw new ByteCodeException($"Invalid type annotation target type: '0x{targetType:X}'."),
};

/// <summary>
Expand Down

0 comments on commit 27d9a02

Please sign in to comment.