Validate -Xjsr305 value in CLI

This commit is contained in:
e5l
2017-09-11 13:31:02 +06:00
committed by Leonid Stashevsky
parent 95d32d8d1e
commit c512db8e1c
5 changed files with 64 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
$TESTDATA_DIR$/simple.kt
-d
$TEMP_DIR$
-Xjsr305=enable
-Xjsr305=under-migration\:stct
-Xjsr305=@hello\:warning
-Xjsr305=@hello\:warn
-Xjsr305=@hello\:ignore
-Xjsr305=strict
-Xjsr305=ignore
-Xjsr305=under-migration\:ignore
-Xjsr305=under-migration\:strict
+8
View File
@@ -0,0 +1,8 @@
warning: option 'enable' for -Xjsr305 flag is deprecated. Please use 'strict' instead
error: unrecognized -Xjsr305 value: under-migration:stct
error: unrecognized -Xjsr305 value: @hello:warning
error: conflict duplicating -Xjsr305 value: @hello:warn, @hello:ignore
error: conflict duplicating -Xjsr305 value: strict, strict
error: conflict duplicating -Xjsr305 value: strict, ignore
error: conflict duplicating -Xjsr305 value: under-migration:ignore, under-migration:strict
COMPILATION_ERROR