Commit Graph

94656 Commits

Author SHA1 Message Date
Jinseong Jeon d4efc8d81d SLC: use partition to distinguish ctor properties from regular members 2022-09-09 14:38:11 +02:00
Jinseong Jeon 4859524115 SLC: account for upperbounds when computing nullability of type parameter 2022-09-09 14:38:11 +02:00
Alexander Udalov e83819e682 Minor, remove obsolete directives from jvm-abi-gen tests
Language version 1.6 was needed in these tests to enable annotation
instantiation, but that feature is now enabled by default.
2022-09-09 14:32:36 +02:00
Alexander Udalov 6e1cddd039 Disable @SourceDebugExtension generation in jvm-abi-gen tests
In these two tests, contents of the annotation differ by design, and
that does not constitute a difference in ABI.
2022-09-09 14:32:35 +02:00
Alexander Udalov 7dad47cd76 Add -X argument to disable generation of @SourceDebugExtension
This will be used in tests in the subsequent commit.
2022-09-09 14:32:35 +02:00
Alexander Udalov 87d3ce6ded Write a copy of SMAP to a new annotation
To make it available for dynamically attached JVMTI agents.

`@SourceDebugExtension` annotation value is equal to the
SourceDebugExtension attribute value, which is checked now for all box
tests. The difference is that the annotation stored in the constant
pool, which is available for dynamically attached JVMTI agents.

 #KT-53438 Fixed
2022-09-09 14:32:35 +02:00
Igor Chevdar 1e6f7f6d58 [K/N] Fixed problem with non-empty output directory 2022-09-09 12:23:05 +00:00
Artem Kobzar da367a467d [K/JS] chore: stop unnecessary defineProperties generating. 2022-09-09 11:14:26 +00:00
Sergej Jaskiewicz 9176ba5b2d [JS IR] Don't set fileIdentity when embedding sources into sourcemaps
(see the comment)
2022-09-09 11:02:26 +00:00
Sergej Jaskiewicz 64465480a3 [JS] J2K for SourceMap3Builder 2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz 660e8ff4da Rename .java to .kt 2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz 7874b1fcad [JS] Rename JsLocation.identityObject to fileIdentity 2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz b9cac8a4ca [JS IR] Support the sourceMapEmbedSources setting (partially)
This doesn't work with external libraries yet (including stdlib).
2022-09-09 11:02:25 +00:00
Rick Clephas b406722e20 [K/N] Prohibit empty ObjCNames 2022-09-09 12:31:36 +02:00
Anna Kozlova 0290f09ac2 ensure changes in getters/setters modifiers are not treated as local 2022-09-09 12:07:35 +02:00
Yahor Berdnikau 920fc2b8af Set minimal supported Gradle version to 6.8.3
^KT-53885 Fixed
2022-09-09 08:26:52 +00:00
Vladimir Dolzhenko e0c2813a37 Increment version due to externalId change
#KT-53781
2022-09-09 08:17:50 +00:00
Nikolay Krasko 496058c7e1 Forbid handling dashed in KotlinToolingVersion parsing 2022-09-08 14:45:59 +00:00
Nikolay Krasko ff04918125 Allow any classifiers for DEV maturity
Allow to have personal builds with custom versioning.

KTI-922
2022-09-08 14:45:58 +00:00
Nikolay Krasko a47377e214 Refactoring: utilities for checking build and classifier numbers 2022-09-08 14:45:58 +00:00
Nikolay Krasko 1df9882aed Refactoring: simplify maturity testing in KotlinToolingVersionTest 2022-09-08 14:45:58 +00:00
Abduqodiri Qurbonzoda 0db9326105 Introduce a deprecated StringBuilder.append(CharArray, Int, Int) in Common #KT-52336 2022-09-08 14:34:38 +00:00
Abduqodiri Qurbonzoda faedd76b32 Remove deprecation from ConcurrentModificationException constructors #KT-53927
The constructors were introduced in jdk7,
thus their usage was prohibited in Common code.
Now that jvmTarget is 1.8 and jdk8+ is used to compile stdlib,
these constructors are available on all platforms.
2022-09-08 14:01:09 +00:00
Dmitry Gridin 7102be7720 [lc] KotlinAsJavaSupportBase: introduce LightClassCachedValue
to extract common logic with cached values

^KT-50241
2022-09-08 13:47:41 +00:00
Dmitry Gridin 2611be0436 [lc] KotlinAsJavaSupportBase: make ifValid inline
^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin aa31ca67e2 [lc] KotlinAsJavaSupportBase: make librariesTracker abstract
^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin e6bb97d490 [lc] KotlinAsJavaSupportBase: suppress visibility warnings
methods can be used from the plugin for tests

^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin b618855e2c [lc] KotlinAsJavaSupportBase: add more lightweight checks for facades
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin ec1b6f4f3e [lc] KotlinAsJavaSupportBase: reduce number of findModule calls
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin acc880fe25 [slc] SymbolKotlinAsJavaSupport: drop redundant checks
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin e58b98bb5c [lc] KotlinAsJavaSupportBase: implement getLightClassForScript
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin 46548e5443 [lc] KotlinAsJavaSupportBase: implement getLightClass
add more caching

^KT-50241
2022-09-08 13:47:38 +00:00
Abduqodiri Qurbonzoda 2d0e95cea0 Remove StringBuilder functions with nonnull parameter type in K/N and JS #KT-53864 2022-09-08 12:16:55 +00:00
Pavel Kunyavskiy 2a36c08e1f [K/N] Fix nan tests on mips 2022-09-08 12:13:43 +00:00
Abduqodiri Qurbonzoda 0208246094 Remove StringBuilder functions with renamed parameters in K/N #KT-53864 2022-09-08 12:02:37 +00:00
Abduqodiri Qurbonzoda 73a65c1bb1 Promote top-level kotlin.math.cbrt() to stable #KT-53277 2022-09-08 12:00:58 +00:00
Abduqodiri Qurbonzoda 0763ab7bc1 Promote DurationUnit.toTimeUnit() and TimeUnit.toDurationUnit() to stable #KT-53277 2022-09-08 11:59:24 +00:00
Mikhail Glukhikh 596ad7d7d3 FE: make EnumEntries unstable feature to poison binaries 2022-09-08 09:03:05 +00:00
Igor Chevdar d8fb9560d1 [K/N] Used compiler_interface.bc instead of runtime.bc 2022-09-08 07:56:15 +03:00
Toshiaki Kameyama 26d4e02b7c Allow KtPsiFactory#createModifierList to create fun modifier
#KTIJ-16332
2022-09-07 18:03:51 +00:00
Mikhail Glukhikh a742c126c2 FIR2IR: check for @JvmStatic also on property accessors 2022-09-07 17:05:13 +00:00
Pavel Mikhailovskii 0b453ee328 KT-41670 Check for default property accessors in SAM interfaces 2022-09-07 13:37:38 +00:00
Yahor Berdnikau 59a052a615 Add '@NormalizeLineEndings' annotation to task inputs
Excluding '@Classpath' inputs due to the bug in Gradle:
https://github.com/gradle/gradle/issues/20708.

Also MacOs only tasks are excluded.

^KT-50673 Fixed
2022-09-07 13:24:25 +00:00
Pavel Mikhailovskii 85ab8b4ce1 KT-53783 Prohibit "expect data object" syntax 2022-09-07 12:53:24 +00:00
Artem Kobzar a6d1f30e89 chore: generate extra files. 2022-09-07 12:46:45 +00:00
Nikolay Lunyak 45619ab390 [FIR] KT-53435: Fix false positive ANNOTATION_ARGUMENT_MUST_BE_CONST
Otherwise, `FirNamedArgumentExpression` are not considered
const expr despite the value.

Merge-request: KT-MR-7052
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
2022-09-07 12:34:26 +00:00
Rick Clephas ff1adf596d [FIR] Implement ObjCName checkers 2022-09-07 11:00:51 +00:00
Rick Clephas 115db22c12 [FE 1.0] Extract NativeObjCNameOverridesChecker from NativeObjCNameChecker 2022-09-07 11:00:51 +00:00
Dmitriy Novozhilov 77bfe542c3 Advance bootstrap to 1.8.0-dev-2843 2022-09-07 10:27:25 +00:00
Artem Kobzar 24d73e5cb8 fix: test case for js name. 2022-09-07 09:04:07 +00:00