Stop parsing argument in argfile when quote ends

There are two visible effects of this change:
1) If an empty argument is passed in quotes, it will be parsed as an
   empty string and handled by the compiler, which will report an error
   later. The specific error is not very important because it's an edge
   case anyway; at the moment, "source file or directory not found:" is
   reported which is no better than the "invalid flag:" error reported
   by javac in the similar case
2) It's no longer possible to split an argument into several parts and
   quote them separately, such as:

       "-langu"ag"e-"ver'sio'n 1.2

   No test added for this change in behavior since it's an even edgier
   case. Note that javac also prohibits this.

 #KT-27226 Fixed
This commit is contained in:
Alexander Udalov
2018-09-28 12:34:12 +02:00
parent 16dd6ebe61
commit 088cd4b5e3
5 changed files with 15 additions and 1 deletions
@@ -0,0 +1 @@
@$TESTDATA_DIR$/argfileWithEmptyArgument.argfile