Commit Graph

371 Commits

Author SHA1 Message Date
Alexey Tsvetkov 450022e5fd Add JS specific proto comparison test
Original commit: 239943867b
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov d36907bc8f Add proto comparison tests where members annotations are changed
Original commit: 0d3b882852
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 6c03741ed3 Treat SEALED_SUBCLASS_FQ_NAME_LIST change as a class signature change
#KT-19580

Original commit: 6354d9d54f
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 2d35732e94 Treat JS class annotation list change as class signature change
Original commit: 856276328e
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov dd2719ade1 Add raw ProtoCompareGenerated output to proto comparison test data
Original commit: e0ef08cf18
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 32af858914 Minor: rename js.result.out->result-js.out
This way result.out and result-js.out are closer in
a list of files (e.g. in Intellij project view).

Original commit: 642c5414a3
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 309bca8861 Add JS lookup tracker tests
Original commit: 82c977f2d2
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov cc025e5eb1 Extract JVM lookup tracker tests
Original commit: 6cfd090b20
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov f2837bd230 Show in lookup tracker log if there is no lookups in file
Original commit: f3f7ca4b95
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 519036b28e Decouple lookup tracker tests from JPS
Original commit: 485e2345a9
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov db6a1de155 Remove .touch actions for lookup test cases that fail to compile
It is useless to touch and recompile, because the first compilation
has failed anyway

Original commit: a4c7dbd693
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov bf22bdadc1 Do not print NONE changes in proto tests
otherwise MainKt: NONE is added in all js tests

Original commit: 61b3c1c429
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 8ffde5fa69 Implement JS proto comparison
Original commit: ed5b6e07aa
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 1b34503d35 Minor tweak to proto test data format
Original commit: 8ffd141d17
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 772224fb63 Always print class id in proto comparison test
A name of class file was used for added and removed classes
before the change.
The change is required for reusing the test data in js proto comparison
tests (there is no classfiles in js, so it is hard to
emulate jvm classfiles names for inner/nested classes).

Original commit: cc24b9f4ad
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov dbbfed2ce2 Move JVM specific proto comparison tests to separate dir
Original commit: 5dd4e4cdd4
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov e93497e995 Avoid marking dirty dependencies from already compiled chunks
#KT-17397 fixed

Original commit: 5ce3a436c7
2017-07-31 19:34:59 +03:00
Alexey Tsvetkov a7db839ba0 Minor: add dummy.kt to some IC tests
This makes it impossible to pass the tests
by rebuilding everything.

Original commit: 3f471d1ac6
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov 380d3563eb Remove old IC: remove experimental cache version
Original commit: 534db2d45b
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov 66fbde0df0 Remove old IC: fix constant search test
The tests were not run with the new IC before

Original commit: aea5293288
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov 5a3ef0bfc1 Remove old IC: update on-off tests
Original commit: 8143ca158b
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov 8a030b302a Remove old IC: remove experimental-expected-kotlin-caches.txt
Original commit: e7afb073d9
2017-07-31 19:34:58 +03:00
Alexey Tsvetkov 1b94afaedc Remove old IC: remove experimental-ic-build.log
This commit moves each experimental-ic-build.log
into a corresponding build.log file.

Original commit: 5af9d29cbe
2017-07-31 19:34:58 +03:00
Mikhael Bogdanov 45628a15fb Properly generate inner classes when compiling source for inline
KT-19175: Compiler generates different bytecode when classes are compiled separately or together

 #KT-19175 Fixed

Original commit: ff676c050f
2017-07-26 20:31:14 +02:00
Mikhail Zarechenskiy f6eb56c4cc Simplify diagnostic when there are wrong number of type arguments
#KT-12767 Fixed

Original commit: ee173077c0
2017-07-12 14:37:27 +03:00
Mikhail Zarechenskiy 157729b31d Do not propose to specify constructor invocation in diagnostics
#KT-17188 Fixed

Original commit: 0579604653
2017-06-22 15:02:10 +03:00
Alexey Andreev 524001e97e Add support for relative JS source map paths in JPS
Original commit: 1d6f01ee6c
2017-06-20 17:40:33 +03:00
Alexander Udalov c27636cf3a CLI: fix non-XML rendering of argument parse error, simplify code
If the compiler is invoked through JPS, an instance of
XmlMessageRenderer is used and the output should be a valid XML.
Previously, we reported the argument parse error (and the note to try
"-help") before calling messageRenderer.renderPreamble, which resulted
in invalid XML. The same was happening for the usage printed on "-help".
Both of these problems are fixed

 #KT-14848 Fixed

Original commit: a802e7fb71
2017-06-06 19:52:04 +03:00
Alexey Tsvetkov c70d749476 Set destination to null when module is set in JPS
This fixes the warning "The '-d' option with a directory destination
is ignored because '-module' is specified", when a project imported
from Gradle is built with JPS.

    #KT-17665 fixed

Original commit: b06b18de07
2017-05-31 16:59:03 +03:00
Dmitry Petrov 8077289242 Update testData after changes in diagnostics
Original commit: c83b764c73
2017-05-26 13:58:46 +03:00
Dmitry Petrov cb8ab93160 Update testData for changed diagnostic messages
Original commit: 7979663e6c
2017-05-26 13:58:46 +03:00
Alexander Udalov 7231c777c1 Fix compilation against JRE 9 on JPS
Write the modular JDK (9+) path to the module.xml file passed to the
compiler from the JPS plugin. This path is then recorded in the compiler
configuration in KotlinToJVMBytecodeCompiler.configureSourceRoots. This
is needed because in JPS plugin, we pass "-no-jdk" and thus no JDK home
path was recorded in the compiler configuration in
K2JVMCompiler.setupJdkClasspathRoots. Presence of JDK home path in the
configuration is crucial for JDK 9 support (see
KotlinCoreEnvironment.Companion.createApplicationEnvironment), because
classes there can only be loaded with the special "jrt" file system, not
as .class files in .jar files

 #KT-17801 Fixed

Original commit: 965b4199f4
2017-05-24 15:46:57 +03:00
Valentin Kipyatkov 0fbb7719c5 Fixed error message to quote parameter name
Original commit: 1fe6886a33
2017-05-20 23:44:20 +03:00
Dmitry Petrov 8f05bad893 Fix incremental compilation problems related to type alias constructors
1. Determine source element for descriptors with NO_SOURCE recursively.

2. Always provide type abbreviation for type alias constructor
return type.

 #KT-15495 Fixed

Original commit: a2db4dc0d5
2017-05-18 10:55:16 +03:00
Dmitry Petrov ab26de17eb Update test for incremental compilation after new DCE
Previous test had an inline setter that didn't produce any effect,
thus, corresponding code was removed by new DCE.
Make sure that changes made in the inline property are caught up by IC.

Original commit: 8903504334
2017-05-16 17:28:43 +03:00
Anton Bannykh 48328f7989 JS: support internal visibility from friend modules
Friend modules should be provided using the -Xfriend-modules flag
in the same format as -libraries. No manual configuration required for
JPS, Gradle and Maven plugins.

Friend modules could be switched off using the -Xfriend-modules-disabled
flag. Doing that will
  * prevent internal declarations from being exported,
  * values provided by -Xfriend-modules ignored,
  * raise a compilation error on attemps to use internal declarations from other modules

Fixes #KT-15135 and #KT-16568.

Original commit: 2e9a59819a
2017-05-04 21:44:17 +03:00
Alexey Tsvetkov ce22d1cf9b Fix internal visibility check for deserialized typealiases
#KT-15495 fixed

Original commit: 50085722d1
2017-04-25 16:27:23 +03:00
Zalim Bashorov 6bedbfb67f Add tests for KT-12199 to prevent regression
#KT-12199 Obsolete

Original commit: 712b2c8117
2017-04-11 15:46:13 +03:00
Alexander Udalov 2208b46941 Support nested classes in KotlinCliJavaFileManagerImpl.findClass
findClass(String, GlobalSearchScope) is invoked for example when we're
resolving supertypes of classes in Java libraries. Previously, it never
found nested classes and falled back to CoreJavaFileManager's
implementation, which lacks a fix for the original issue (KT-12664,
which was fixed in JvmDependenciesIndex in ff783f1f and 2c344635)

 #KT-16931 Fixed

Original commit: c67eb84369
2017-03-27 17:19:24 +03:00
Nikolay Krasko 0548ec683d ! (TODO) Update build test data in 171
Original commit: 1d29c81346
2017-03-20 18:45:40 +01:00
Alexey Tsvetkov efc1164489 JPS: implement tracking of null annotations
#KT-12933 fixed
    #KT-14266 fixed

Original commit: 05f278ce20
2017-03-20 18:45:21 +01:00
Anton Bannykh 07691e369a JPS JS: simplified the code and added tests for the missing meta.js case (e.g. empty sourceroot; fixed by yole in 00ed0248d9a23701dbef52da02259d174a9999e7)
Original commit: 6608e97d35
2017-02-28 16:05:16 +03:00
Alexey Andreev b4086fe033 JS: drop support of old library format
Original commit: 7192529733
2017-02-10 21:04:50 +03:00
Stanislav Erokhin 4cb5e8a919 Do not force resolve descriptors for explicit imports. Create lazy scope instead.
Original commit: b616ef0a40
2017-02-09 15:42:30 +03:00
Alexander Udalov d323c39b7d Do not import "kotlin.comparisons" by default for language version 1.0
#KT-16199 Fixed

Original commit: b780e6d374
2017-02-07 10:15:57 +03:00
Anton Bannykh 81ab76ade8 JPS: fixed duplicate meta.js in case of multiple source roots in the same module.
Original commit: f0e3c87b84
2017-02-03 13:03:12 +03:00
Anton Bannykh 36035c789a JS: fixed support for test source roots (KT-6627)
Original commit: 289a7a9cc3
2017-02-03 13:03:12 +03:00
Denis Zharkov 78391cd97c Move coroutine-related runtime parts to kotlin.coroutines.experimental package
#KT-15975 Fixed

Original commit: 8fa8ba7055
2017-01-27 23:24:13 +03:00
Alexey Tsvetkov 9f8ba45853 Rebuild all kotlin files when EAP flag is changed
Original commit: b9dbe69232
2017-01-26 13:38:52 +03:00
Alexey Tsvetkov 84691965cb Save JvmBuildMetaInfo to file after build
Original commit: 4a63e47aa0
2017-01-26 13:38:52 +03:00