From fcb95f4532a4427c52c06f24ae0e853116f1afe7 Mon Sep 17 00:00:00 2001 From: DigitalDan05 Date: Tue, 24 Jan 2017 13:51:29 -0600 Subject: [PATCH] Allow numbers for Java compat attribute (#1899) Force the java "compat" parameter as a string. --- waflib/Tools/javaw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/javaw.py b/waflib/Tools/javaw.py index 764a0b1a..a17e302d 100644 --- a/waflib/Tools/javaw.py +++ b/waflib/Tools/javaw.py @@ -95,7 +95,7 @@ def apply_java(self): tsk.srcdir = tmp if getattr(self, 'compat', None): - tsk.env.append_value('JAVACFLAGS', ['-source', self.compat]) + tsk.env.append_value('JAVACFLAGS', ['-source', str(self.compat)]) if hasattr(self, 'sourcepath'): fold = [isinstance(x, Node.Node) and x or self.path.find_dir(x) for x in self.to_list(self.sourcepath)]