Index: mojo/public/tools/bindings/generators/mojom_java_generator.py |
diff --git a/mojo/public/tools/bindings/generators/mojom_java_generator.py b/mojo/public/tools/bindings/generators/mojom_java_generator.py |
index c091a5ffe579a712540853f4885725168b05c6ae..5edaf94284efd9f83ab8cc754ac36425939c1023 100644 |
--- a/mojo/public/tools/bindings/generators/mojom_java_generator.py |
+++ b/mojo/public/tools/bindings/generators/mojom_java_generator.py |
@@ -503,6 +503,10 @@ class Generator(generator.Generator): |
'%s.java' % GetConstantsMainEntityName(self.module)) |
def GenerateFiles(self, unparsed_args): |
+ # TODO(rockot): Support variant output for Java. |
+ if self.variant: |
+ raise Exception("Variants not supported in Java bindings.") |
+ |
parser = argparse.ArgumentParser() |
parser.add_argument('--java_output_directory', dest='java_output_directory') |
args = parser.parse_args(unparsed_args) |