Allow numbers for Java compat attribute (#1899)

Force the java "compat" parameter as a string.
This commit is contained in:
DigitalDan05 2017-01-24 13:51:29 -06:00 committed by Thomas Nagy
parent ed3b943803
commit 90719cf63a
1 changed files with 1 additions and 1 deletions

View File

@ -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)]