summaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/zwobble')
-rw-r--r--src/main/java/org/zwobble/hobgoblin/compiler/output/generators/javatransient0/JavaTransient0Generator.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/javatransient0/JavaTransient0Generator.java b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/javatransient0/JavaTransient0Generator.java
index 52539ce..c1310f1 100644
--- a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/javatransient0/JavaTransient0Generator.java
+++ b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/javatransient0/JavaTransient0Generator.java
@@ -1035,7 +1035,9 @@ public class JavaTransient0Generator implements Generator {
}
case TypeParam _ -> {
- throw new UnsupportedOperationException("TODO");
+ // In theory, I think this should never happen: we should only
+ // be generating encode method refs for fully instantiated types.
+ throw new IllegalArgumentException("cannot generate encode method ref for type param");
}
};
}
@@ -1169,7 +1171,9 @@ public class JavaTransient0Generator implements Generator {
}
case TypeParam _ -> {
- throw new UnsupportedOperationException("TODO");
+ // In theory, I think this should never happen: we should only
+ // be generating decode method refs for fully instantiated types.
+ throw new IllegalArgumentException("cannot generate decode method ref for type param");
}
};
}