Dmitry Petrov
06101dba52
KT-13961 REDECLARATION not reported on private-in-file 'foo' vs public 'foo' in different file
...
Private-in-file declarations conflict with public overload-equivalent declarations
in other files in the same package.
Move functions for grouping possible redeclarations to OverloadResolver
(since they are used only there).
Refactor redeclarations / conflicting overloads reporting.
2016-10-03 11:50:29 +03:00
Zalim Bashorov
797f7ab28e
JPS: don't consider that the module is not Kotlin JS until check all libraries.
...
#KT-14082 Fixed
2016-09-29 14:52:51 +03:00
Alexander Udalov
fea116f14e
Allow data classes to implement equals/hashCode/toString from base classes
...
#KT-11306 Fixed
2016-09-15 16:45:48 +03:00
Alexey Tsvetkov
6ebb50751c
Remove source annotations when copy class with kapt2
...
Writing source annotations enables incremental compilation for kapt2.
However they are not needed in bytecode, so we remove them when
copying classes.
# Conflicts:
# compiler/cli/src/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.kt
# compiler/frontend.java/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java
2016-09-14 13:52:56 +03:00
Yan Zhulanow
975364b2ed
Kapt: Provide SourceRetentionAnnotationHandler for incremental compilation.
...
Collect annotations with the "SOURCE" retention.
(cherry picked from commit 6ef66e7)
2016-09-10 17:36:15 +03:00
Nikolay Krasko
9a54aa99fa
Drop kotlin-bare-plugin (KT-11859)
2016-09-02 13:41:24 +03:00
Stanislav Erokhin
bebc75c8ef
Set reference target and report custom error instead unresolved reference for cases: interface, generic parameter, object + invoke, class without companion.
...
#KT-2787 Fixed.
2016-09-01 18:01:55 +03:00
Yan Zhulanow
84d62f37eb
Kapt: Analyze sources again if the received analysis result is 'RetryWithAdditionalJavaRoots'. ->
...
Add additional Java roots to Java source roots and clear diagnostic messages before the next analysis round.
(cherry picked from commit 17ad807)
2016-08-29 16:31:16 +03:00
Alexander Udalov
0d26087040
CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
...
Note that now "-no-stdlib" implies "-no-reflect".
#KT-13237 Fixed
2016-08-09 11:24:24 +03:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
b6b2303aa7
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
2016-07-22 18:13:40 +03:00
Dmitry Jemerov
b315a07f0d
delete work dir after each JPS test
2016-07-18 16:52:16 +02:00
Alexander Udalov
b44f060ffa
Do not consider fake variables for objects in :: resolution
...
The main change is in
NewResolutionOldInference.ResolutionKind.CallableReference, where
createVariableProcessor creates a processor which no longer lists objects
#KT-12322 Fixed
2016-07-04 15:42:35 +03:00
Michael Bogdanov
3b419e8ba3
Fix for KT-11964: No TABLESWITCH in when on enum bytecode if enum constant is imported
...
#KT-11964 Fixed
2016-06-29 09:32:45 +03:00
Denis Zharkov
efe718602a
Support type aliases in incremental compilation
...
#KT-12871 Fixed
2016-06-28 16:22:08 +03:00
Alexey Andreev
a9ed789727
KT-3008 Fix CLI and JPS tests related to JS translator
2016-06-27 15:33:28 +03:00
Mikhael Bogdanov
a090133581
Inline properties support in incremental compilation
2016-06-24 17:05:53 +03:00
Zalim Bashorov
0e428ca10c
JPS: don't consider that production target of module "B" is depends on test target of module "A" when "B" depends on "A"
...
#KT-12595 Fixed
2016-06-15 15:01:32 +03:00
Denis Zharkov
07592398c1
Preserve sources properly for coroutine parts
...
Otherwise incremental reporting leads to exception when inlining into coroutine body happens
2016-06-08 18:53:16 +03:00
Denis Zharkov
e97376bb2c
Introduce coroutine-related API into built-ins
2016-06-08 18:53:16 +03:00
Alexander Udalov
3c81bb4bfc
Add MessageCollector#hasErrors, get rid of MessageSeverityCollector
...
Also fix duplicated wrapping of a message collector into a message severity
collector (in CLICompiler and in the beginning of doExecute in
K2JVMCompiler/K2JSCompiler)
2016-05-26 11:47:30 +03:00
Ilya Chernikov
1614aca48e
Implement graceful connection failure behavior on daemon connect and cancellation check
...
Should fix (or actually - behave gracefully on) #EA-74003, #EA-74493, #EA-76032, #EA-76529, #EA-81295
Tests added
2016-05-06 13:06:38 +02:00
Zalim Bashorov
c11d504a26
Minor: add test for KT-11993 "NoSuchMethodError when testing internal symbols"
2016-05-05 20:45:29 +03:00
Zalim Bashorov
ed0fa2c26c
Fix NoSuchMethodError when try to access in test to internal member from production for gradle projects imported into IDEA 16 or higher
...
#KT-11993 Fixed
2016-04-29 18:23:26 +03:00
Valentin Kipyatkov
b551886889
Code cleanup: removed redundant semicolons
2016-04-29 11:26:25 +03:00
Denis Zharkov
a1d4214a39
Use fq-names instead of descriptors when computing ambigious names
...
Because there can be different descriptors that are essentially equal
(from different modules)
See J2K test: testNullableField
2016-04-25 17:41:08 +03:00
Alexander Udalov
2df8e56b94
Do not store project in JPS tests after they're executed
...
This saves a couple dozen megabytes currently
2016-04-18 17:26:59 +03:00
Nikolay Krasko
0cf1c8d900
Workaround for building against jars from both JDK 6 and JDK 8 on TeamCity
2016-04-12 14:53:20 +03:00
Zalim Bashorov
51c6abdbed
IC: take into account added and removed classes when calculate affected names
2016-04-11 19:26:18 +03:00
Nikolay Krasko
47c7181f2a
Extract tests-common module without any actual tests
...
The main reasoning for the module is to avoid running any compiler tests while executing run configuration that searches tests across module dependencies.
2016-04-08 17:40:38 +03:00
Zalim Bashorov
441a442f34
Minor: update testdata
2016-04-08 13:45:37 +03:00
Zalim Bashorov
f5ca949f2c
IC: improve logging in tests and fix DataContainerVersionChangedTestGenerated#testWithError
...
Test logging improvements:
* print which chunk building in the round for multimodule projects
* print actions after cache changed
2016-04-08 13:45:37 +03:00
Nikolay Krasko
9e88db7e58
Fix bad test modification
2016-04-06 21:46:02 +03:00
Nikolay Krasko
46a1028494
Temporary ad-hock jps-tests enable with testdata modification
2016-04-06 21:46:00 +03:00
Nikolay Krasko
4c81cc802b
Remove duplicate build-common dependency
2016-04-05 00:39:46 +03:00
Nikolay Krasko
46b5305666
Extract jps-tests to separate module
...
Remove dependency to idea-full to build jps-plugin with Java 1.6
2016-04-05 00:39:46 +03:00
Nikolay Krasko
ef13e8f5bb
Prepare building plugins modules against 1.8 JDK
2016-04-05 00:39:46 +03:00
Nikolay Krasko
31da7662c5
Set-up usage for kotlin-test lib
2016-04-05 00:39:46 +03:00
Pavel V. Talanov
7de171efda
Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics
...
#KT-9887 Fixed
2016-03-31 16:06:48 +03:00
Alexander Udalov
8316953259
Fix double quotes in diagnostic messages
...
For diagnostics without any parameters, the given text is simply rendered as a
String, so no symbols should be escaped.
For diagnostics with parameters, the format in java.text.MessageFormat is used,
so one single quote is erased and two single quotes become one single quote in
the rendered text.
2016-03-30 21:41:43 +03:00
Alexey Tsvetkov
61814eb23f
Test: override build.log in gradle IC tests
2016-03-30 03:40:53 +03:00
Alexey Tsvetkov
c1a61b17c7
Test: use one function to find test's build log for jps and gradle
2016-03-30 03:40:53 +03:00
Alexey Tsvetkov
4c782dbfcc
Refactor: move allVersions() to jps-plugin since it is jps specific
2016-03-30 03:40:53 +03:00
Zalim Bashorov
4b8c9c8b39
Minor: fix testdata
2016-03-24 22:28:40 +03:00
Zalim Bashorov
9a9b863c9d
IC: add tests with moving files
...
Additionally added the ability to use directories in IC tests.
#KT-8002 Obsolete
2016-03-24 22:28:40 +03:00
Alexey Tsvetkov
33cd661aad
Minor: removed experimental-ic-build.log duplicating build.log
2016-03-24 14:57:17 +03:00
Zalim Bashorov
f00615c00b
Minor: source sources of SourceToOutputMap when dump it to make IC tests more stable
2016-03-16 14:42:13 +03:00
Alexey Tsvetkov
52be775f28
Minor: add two accidentally deleted files to test case
2016-03-11 02:43:31 +03:00
Alexey Tsvetkov
d352905a72
Add incremental tests for parameters with default values
2016-03-10 23:36:40 +03:00
Alexey Tsvetkov
a3893a3c2e
Test IC for adding private inline function
...
#KT-9681 fixed
2016-03-04 15:11:27 +03:00