Commit Graph

91489 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov 8a20df1a97 Build: Remove allowUntrustedServer & allowInsecureProtocol
#KTI-791
2022-02-24 19:54:00 +03:00
Jinseong Jeon 1b276a3c59 AA: allow enum generated declarations for psi retrieval 2022-02-24 17:51:51 +01:00
Jinseong Jeon 1b6ded6005 FIR/LC: create synthetic members of enum class
^KTIJ-17414 In Progress
^KTIJ-17444 In Progress
2022-02-24 17:51:50 +01:00
Jinseong Jeon 790f2d13ae RAW FIR: record non-null value parameter of Enum#valueOf upfront 2022-02-24 17:51:50 +01:00
Jinseong Jeon 476e65f934 Utilize MemberScope.findFirstFunction with name and predicate 2022-02-24 17:51:49 +01:00
Jinseong Jeon 26e7fc9da3 FIR LC: avoid hardcoded annotation name 2022-02-24 17:51:49 +01:00
Jinseong Jeon 2599c1dbb6 FIR: use StandardNames (instead of hardcoded constants) 2022-02-24 17:51:48 +01:00
Jinseong Jeon 3651c4984a PSI2IR: use StandardNames (instead of hardcoded constants) 2022-02-24 17:51:48 +01:00
Jinseong Jeon f49a42895f FIR LC: use StandardNames (instead of hardcoded constants) 2022-02-24 17:51:47 +01:00
Alexander Udalov b443848ea0 Fix type table serialization in DescriptorSerializer
Always serialize type table (and version requirement table) after
everything else, to prevent bugs like KT-51446 where inline class
underlying type was added to the type table after it has already been
serialized.

 #KT-51446 Fixed
2022-02-24 16:34:25 +01:00
Alexander Udalov c53d91bae1 JVM IR: adjust generation of linenumber for try-finally
Do not generate linenumber for the start of the finally block, because
that is usually where the only word 'finally' is located. Instead,
generate linenumber for the first expression inside the finally block.

Not generating this linenumber fixes an issue in code coverage tools
which would consider such finally uncovered. Although this might be
technically considered as designed, it makes more sense to NOT detect it
as uncovered because semantics of the finally block shouldn't really
differ whether it's executed normally or because an exception happened.
It's also beneficial for the tool support to behave like javac, which
doesn't generate the linenumber either.

 #KT-50973 Fixed
2022-02-24 16:33:40 +01:00
Igor Chevdar 838743bf07 [box-tests] Ignored test for K/N
It will fail in Kotlin 1.7
2022-02-24 15:20:14 +03:00
Igor Chevdar 46f448b5d1 [K/N][tests] Fixed ObjC invalid identifiers test
Some identifiers will be invalid in Kotlin 1.7
2022-02-24 15:20:14 +03:00
Igor Chevdar d51eb32c62 [IR] Fixed IrType.classifierOrNull
Supported IrDefinitelyNotNullType explicitly for now
(later it will be better to handle it at the call sites)

Co-authored-by: Svyatoslav Scherbina <svyatoslav.scherbina@jetbrains.com>
2022-02-24 15:20:13 +03:00
Dmitry Petrov 287d988301 JVM minor simplification in CCE 2022-02-24 10:06:48 +00:00
Dmitry Petrov 872b81ac8a JVM prune exception edges in DFA in some cases 2022-02-24 10:06:47 +00:00
Sergey Bogolepov 817f9f13b7 [K/N] Drop androidNativeActivity sample
This sample uses custom API that is not supported and documented.
Thus, it creates wrong impression on how to use Kotlin/Native for NDK.
2022-02-23 17:25:47 +00:00
Sergey Bogolepov 2ecde3e831 [K/N] Enable AndroidProgramType.Standalone by default
^KT-49144 fixed.
2022-02-23 17:25:47 +00:00
Dmitriy Novozhilov faba9c4272 [CLI] Don't register classpath roots twice
There are two ways how content roots are registered in compiler configuration
  in JVM CLI compiler:
1. Directly from arguments
2. From Module, which build from arguments

And there was a problem that both ways used at the same time in some
  circumstances (regular compilation without .xml module file) which
  caused duplication of all content roots.

Ideal solution for this problem is removal of Module usages at all,
  because it looks like redundant abstraction which just complicate
  things, but it's too scary to remove it, because it hove some none
  trivial usages inside compiler. So to fix problem with duplicated
  roots this commit just removes registration of roots from arguments
  if Module is used
2022-02-23 19:33:51 +03:00
Egor 6d1fe3a962 Fixing merge of script fragments + UT 2022-02-23 18:58:29 +03:00
Ivan Kochurkin f751f13c4d [FIR] Fix incompatible KClass<Any> and callable reference Collection::class, ^KT-51272 Fixed 2022-02-23 14:21:59 +03:00
Ivan Kochurkin 31d9313c51 [FIR] Fix "Expected some types" exception, ^KT-51274 Fixed 2022-02-23 14:21:59 +03:00
Ivan Kochurkin 6a3b7a9f91 [FIR] Ignore fake functions in FirExposedVisibilityDeclarationChecker ^KT-51229 Fixed 2022-02-23 14:21:58 +03:00
Ivan Kochurkin 73b45a1254 [FIR] Report UNSUPPORTED on array literals not from annotation classes ^KT-50750 Fixed 2022-02-23 14:21:57 +03:00
Ivan Kochurkin 19285d0569 [FIR] Fix false positive EXPOSED_PARAMETER_TYPE on internal val in constructor of sealed class ^KT-51200 Fixed 2022-02-23 14:21:57 +03:00
Artem Kobzar 9c5c31bdcb build: change the logic for building ts files before js tests run. 2022-02-23 10:28:02 +00:00
Dmitry Gridin 261cac7514 [light classes] avoid resolve in equals
^KTIJ-21209
2022-02-23 11:13:44 +07:00
Ilmir Usmanov 8811f62300 Fix mapping of nullable generic underlying types of inline classes
#KT-32162 Fixed
2022-02-23 01:23:07 +03:00
Mikhail Glukhikh 981f8b1871 FIR: implement resolve of unqualified enum references in when
See KT-16768
2022-02-22 22:13:06 +03:00
Nikolay Krasko f35b4b7515 Update junit to 4.13.1 in kotlin-maven-plugin-test 2022-02-22 21:43:29 +03:00
dependabot[bot] ba45f29959 Bump junit in kotlin-maven-plugin-test
Bumps [junit](https://github.com/junit-team/junit4) from 4.9 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.9...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 21:43:29 +03:00
Nikolay Krasko 82e3ec2eaa Update junit 4.12 -> 4.13.1 in js archetype 2022-02-22 21:43:28 +03:00
dependabot[bot] b5e258b3cf Bump junit 4.12 -> 4.13.1 in maven jvm archetype
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 21:43:27 +03:00
Nikolay Krasko a2cef5c930 Update shadow plugin to 7.1.2
^KTI-728 Fixed
2022-02-22 21:43:27 +03:00
Nikolay Krasko 40482229bd Minor: add md5 signatures 2022-02-22 21:43:26 +03:00
Nikolay Krasko cd08b26518 Drop KannotatorJpsTest.java 2022-02-22 21:43:25 +03:00
Yahor Berdnikau d0ee0d8c38 Migrate KotlinJsLibraryGradlePluginIT tests to new dsl
^KT-45745 In Progress
2022-02-22 18:59:19 +01:00
Ilya Goncharov 637d45c539 [IR] Disable rename of inline symbols
Merge-request: KT-MR-5801
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>
2022-02-22 15:59:02 +00:00
Sergey Bogolepov f010c33958 [K/N] Fix compilation of static libraries for Android
^KT-49145 fixed
2022-02-22 15:37:41 +00:00
Yahor Berdnikau bd6480e7e5 Removed plugin api dependency from 'android-test-fixes' plugin
^KT-49227 In progress
2022-02-22 12:35:06 +00:00
Yahor Berdnikau b87075c344 Add separate test project for warn on different classloaders test
After this update  to have different classpath hash in subprojects,
they should have different sets of plugins applied. But KGP could be
in all of them.

^KT-49227 In Progress
2022-02-22 12:35:06 +00:00
Yahor Berdnikau 9f0df8f6b5 Migrate sam-with-receiver plugin configuration
This change should also trigger proper publishing of this plugin to
Gradle plugin portal.

^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau d7122bc52a Move kotlinGradleFragmentConsistencyChecker to be a part of class
Fixes 'NoSuchMethodException' on running
'KpmCompilerPluginIT.testTransientPluginOptions' test.

^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau d0790bb2cb Gradle plugin will publish shadowed jar.
^KT-49227 In Progress
2022-02-22 12:35:05 +00:00
Yahor Berdnikau ab564d371e Remove old code used to configure Gradle plugin publication.
^KT-49227 In Progress
2022-02-22 12:35:04 +00:00
Yahor Berdnikau 4c2434ecf0 Migrate kotlin-lombok configuration
^KT-49227 In Progress
2022-02-22 12:35:04 +00:00
Yahor Berdnikau f8ec91f549 Migrate atomicfu plugin configuration
^KT-49227 In Progress
2022-02-22 12:35:03 +00:00
Yahor Berdnikau 572285cb3b Migrate kotlin-allopen configuration
^KT-49227 In Progress
2022-02-22 12:35:03 +00:00
Yahor Berdnikau 0488924edb Migrate kotlin-noarg configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00
Yahor Berdnikau 539826e611 Migrate kotlin-serialization configuration
^KT-49227 In Progress
2022-02-22 12:35:02 +00:00