From 62b57827c83a59f5b72b4ed8518db8534ddca61d Mon Sep 17 00:00:00 2001 From: Sam Blackshear Date: Wed, 23 Sep 2015 11:04:15 -0600 Subject: [PATCH] [Infer][java] Fixing bug where passing -deprecation flag to javac broke compilation Summary: The python parser for '-d ' interpreted '-deprecation' as '-d eprecation', which is not desirable. Fixed it by teaching the parser to parse '-deprecation' as a boolean flag. --- infer/bin/jwlib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/infer/bin/jwlib.py b/infer/bin/jwlib.py index 8dd94f77b..8dc618dcc 100644 --- a/infer/bin/jwlib.py +++ b/infer/bin/jwlib.py @@ -20,6 +20,7 @@ parser = argparse.ArgumentParser() current_directory = os.getcwd() parser.add_argument('-version', action='store_true') +parser.add_argument('-deprecation', action='store_true') parser.add_argument('-cp', '-classpath', type=str, dest='classpath') parser.add_argument('-bootclasspath', type=str) parser.add_argument('-d', dest='classes_out', default=current_directory)