Denis Zharkov
3cfe43f83a
Add -Xsupport-compatqual-checker-framework-annotations flag
...
It's implemented through Jsr305State while it's not related
to jsr-305 becasue currently it's the most convenient way
to introduce the flag.
Probably, it's worth renaming Jsr305State to something more abstract
like NullabilityAnnotationsConfiguration
#KT-21982 Fixed
2018-01-10 17:02:46 +03:00
Alexander Udalov
c5c4c9cfcc
Support "-module-name" argument for common code compiler
...
#KT-20892 Fixed
2017-12-13 11:49:58 +01:00
Alexander Udalov
cc9ebb26de
Minor, improve "-module-name" argument description
2017-12-13 11:49:58 +01:00
Alexander Udalov
5092758acb
Improve help message on -Xjsr305 CLI argument
2017-12-11 18:02:04 +01:00
Yan Zhulanow
1f65f8bc97
Encode all compiler plugin arguments for Android Extensions in kapt
...
Commas in option values breaks the option parsing in daemon (KT-20235).
2017-12-01 22:53:16 +09:00
Alexey Andreev
5672e1f56e
JS: add DCE devmode. Fix mapping paths in source maps
...
See KT-20210, KT-21307
2017-11-29 20:08:30 +03:00
Alexey Andreev
ffdebfab45
JS: change the way how DCE resolves input paths
2017-11-29 20:08:29 +03:00
Alexey Andreev
8514a7706f
Remove json.org library, use own JSON parser to parse source maps
2017-11-29 20:08:29 +03:00
Dmitry Savvinov
440b6d9934
Add -Xeffect-system CLI argument which enables Effect System
2017-11-23 12:35:51 +03:00
Mikhail Glukhikh
078c27efa3
Add fallback flag for legacy var smart casts after try #KT-21377 Fixed
2017-11-22 18:31:04 +03:00
Mikhail Zarechenskiy
0b484771dd
Add compiler key to enable new inference
2017-11-13 16:24:34 +03:00
Dmitry Petrov
6c47b4a39c
Language feature for nullability assertions on enhanced nullability
2017-10-25 12:30:32 +03:00
Dmitry Petrov
68870a16bb
Remove CLI help on 'preserve-class-initialization' mode
...
See https://youtrack.jetbrains.com/issue/KT-19532#comment=27-2492178
2017-10-24 09:36:56 +03:00
Alexey Andreev
e0eea15a4c
Fix JS tests failing on Windows
2017-10-23 17:19:51 +03:00
Sergey Igushkin
9d62bb3561
(minor) Reorder args help in test data after the property was renamed
2017-10-13 14:02:42 +03:00
Alexander Udalov
5cbcbe4a9c
Support -Werror CLI argument to treat warnings as errors
...
The option is named "warningsAsErrors" in the Gradle plugin
#KT-10563 Fixed
2017-10-11 19:23:46 +03:00
Ilya Gorbunov
456c26cdae
Remove "EXPERIMENTAL" from 1.2 version description in tests and gradle options
2017-10-11 08:50:30 +03:00
Dmitry Petrov
a89f978597
Provide configurable constructor call normalization
...
Three modes:
- 'disable' (default): normalize constructor calls in coroutines only
(required because uninitialized objects can't be stored in fields),
don't insert additional code for forced class initialization;
- 'enable': normalize constructor calls,
don't insert additional code for forced class initialization;
- 'preserve-class-initialization': normalize constructor calls,
insert additional code for forced class initialization.
2017-10-10 08:49:19 +03:00
Leonid Stashevsky
a54c71eb30
Escape separator in jsr305 CLI tests
2017-10-06 15:34:33 +03:00
Alexey Andreev
9008791a54
JS: generate paths in source maps relative to .map file location
...
See KT-19818
2017-10-06 15:24:25 +03:00
e5l
cbaf38f793
Add CLI test on new jsr305 flag values
2017-10-03 16:44:02 +03:00
e5l
c512db8e1c
Validate -Xjsr305 value in CLI
2017-10-03 16:44:02 +03:00
Leonid Stashevsky
95d32d8d1e
Add @UnderMigration annotation and options for report level
2017-10-03 16:44:02 +03:00
Alexey Andreev
21e91c4052
JS: rename -source-map-source-roots to -source-map-base-dirs
...
See KT-19906
2017-10-03 14:26:37 +03:00
Mikhail Glukhikh
c0dd97b40d
Migration to expect/actual: fix CLI tests
2017-09-16 19:47:41 +03:00
Stanislav Erokhin
7982f3489e
Rename compiler key -Xno-check-impl to -Xno-check-actual
2017-09-16 19:47:39 +03:00
Denis Zharkov
6336ad874b
Get rid of ParametersAreNonnullByDefault copy in test data
2017-09-14 18:05:32 +03:00
Denis Zharkov
24b1f2ed1f
Minor. Update CliTestGenerated.Jvm::testExtraHelp test data
2017-09-14 18:05:32 +03:00
Denis Zharkov
4d95c30360
Restore -Xjsr305-annotations flag as a deprecated
2017-09-14 18:05:32 +03:00
Denis Zharkov
97fed6336b
Add cli tests on different options of -Xjsr305 flag
2017-09-14 18:05:32 +03:00
Denis Zharkov
363d345752
Make default value for -Xjsr305 flag to be WARN
2017-09-14 18:05:32 +03:00
Dmitry Petrov
179e720e4a
Provide fallback flag for KT-19174
...
-Xno-exception-on-explicit-equals-for-boxed-null
Also unify corresponding names.
2017-09-14 10:15:28 +03:00
Alexey Andreev
c66bc0b0e9
Remap source maps in JS DCE. Improve JS DCE error logging
...
See KT-19821
2017-09-08 18:27:41 +03:00
Mikhail Zarechenskiy
03440210ee
Introduce language version 1.3
2017-09-07 12:52:32 +03:00
Alexey Andreev
361d6dfca0
JS: rewrite source map generator to use specialized JSON writer
...
Fixes problems with string escaping. See KT-20005
2017-09-06 17:55:06 +03:00
Dmitry Petrov
5d44e095c8
Nullability assertions for extension receiver
...
In Kotlin 1.1 and before, there were no nullability assertions on
extension receivers, because receiver is resolved with NO_EXPECTED_TYPE.
So, if an expression of platform type is passed as an extension receiver
to a non-private function, it would fail with IllegalArgumentException.
However, if the function is private, then we generated no parameter
assertions under assumption that such function can be called from Kotlin
only, and all arguments are checked on the call site. Thus 'null' could
propagate indefinitely.
In Kotlin 1.2, we do the following:
- Generate nullability assertions for expression receivers.
NB nullability assertions are stored for ReceiverValue instances, not
for expressions: given expression can act as receiver in different
calls, each with an expected receiver type of its own.
- Generate nullability assertions for extension receivers of private
operator functions.
NB it still can throw NPE for some particular "optimized" cases, but at
least those nulls would not propagate indefinitely.
This behavior is disabled by an "advanced" command-line option
'-Xno-receiver-assertions'.
2017-09-01 09:49:21 +03:00
Alexander Udalov
fb4bf4e5b8
Report error if Java 9 module "kotlin.stdlib" is not found in the graph
...
Use "-Xallow-kotlin-package" to suppress this error
#KT-19176 Fixed
2017-08-30 15:47:54 +03:00
baratynskiy
67fdd9f76e
javac-wrapper: fixes after rebase and review
2017-08-29 18:01:36 +03:00
baratynskiy
8494e54608
javac-wrapper: -Xuse-javac -> -Xuse-javac and -Xcompile-java
2017-08-29 18:01:36 +03:00
e5l
5501cdf049
Add warnings for jsr305 nullable annotations
...
#KT-19115 Fixed
2017-08-15 11:01:08 +03:00
Alexey Sedunov
e6f1a3ccf3
Minor: Use Kotlin reflection in usage printing and update test data
2017-08-02 13:08:06 +03:00
Yan Zhulanow
3770786075
Minor: Fix test data for CLI test (defaultCacheImplementation option was added in Android Extensions)
2017-08-02 03:36:55 +03:00
Alexander Udalov
1e6850f198
CLI: improve error message if libraries are not found in Kotlin home
...
Also support the '-kotlin-home' argument in kotlinc-js
#KT-18859 Fixed
2017-07-28 14:16:46 +03:00
Alexander Udalov
224df7a1ea
Change -Xload-jsr305-annotations argument to -Xjsr305-annotations={ignore|enable}
...
See https://youtrack.jetbrains.com/issue/KT-19229 for a complete
explanation
#KT-19229 Fixed
#KT-10942
2017-07-26 11:45:25 +03:00
Yan Zhulanow
4851a83a83
Android Extensions: put new functionality under the flag
2017-07-18 18:10:30 +03:00
Alexander Udalov
c94b21edd5
Remove obsolete code about runtime versions conflict
2017-07-10 12:48:21 +03:00
Alexander Udalov
127cd1295e
Disable JSR-305 annotations by default, introduce CLI argument
...
No package annotations are going to be loaded, and
TypeQualifierDefault/TypeQualifierNickname are no longer recognized by
default. Use the CLI argument "-Xload-jsr305-annotations" to enable this
behavior back
#KT-10942
2017-07-07 22:08:50 +03:00
Alexander Udalov
55468735df
Rename -module argument to -Xbuild-file
...
To prevent confusion with Java 9 module-related arguments
#KT-18754 Fixed
2017-07-06 17:03:25 +03:00
Vladimir Koshelev
61e52f0bfe
Improve a reported message if -jdk-home path does not exist.
...
Fix KT-18794
2017-07-04 19:40:42 +03:00
Alexander Udalov
03d83db660
Support -Xmodule-path and -Xadd-modules command line arguments
...
#KT-18598 In Progress
#KT-18599 Fixed
2017-06-29 15:59:56 +03:00