Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Nov 3, 2024
1 parent 2580e98 commit 85ed378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static KmsClient KeyManagementService(IKeyManagementServiceClient dafnyVa
return ((Shim) dafnyValue).impl();
}
public static RuntimeException Error(Error_Opaque dafnyValue) {
public static RuntimeException Error(Error_OpaqueWithText dafnyValue) {
// While the first two cases are logically identical,
// there is a semantic distinction.
// An un-modeled Service Error is different from a Java Heap Exhaustion error.
Expand All @@ -157,8 +157,8 @@ public static RuntimeException Error(Error dafnyValue) {
if (dafnyValue.is_DependencyTimeoutException()) {
return ToNative.Error((Error_DependencyTimeoutException) dafnyValue);
}
if (dafnyValue.is_Opaque()) {
return ToNative.Error((Error_Opaque) dafnyValue);
if (dafnyValue.is_OpaqueWithText()) {
return ToNative.Error((Error_OpaqueWithText) dafnyValue);
}
// TODO This should indicate a codegen bug; every error Should have been taken care of.
return new IllegalStateException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,6 @@ public void generate() {
final Path actualPath = actual.keySet().toArray(temp)[0];
assertEquals(expectedPath, actualPath);
final String actualSource = actual.get(actualPath).toString();
System.err.println("*******");
System.err.println(actualSource);
System.err.println("*******");
System.err.println(ToNativeConstants.KMS_A_STRING_OPERATION_JAVA_FILE);
System.err.println("*******");
tokenizeAndAssertEqual(
ToNativeConstants.KMS_A_STRING_OPERATION_JAVA_FILE,
actualSource
Expand Down

0 comments on commit 85ed378

Please sign in to comment.