Dmitry Petrov
d324df7f20
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.
Original commit: 06101dba52
2016-10-03 11:50:29 +03:00
Zalim Bashorov
8e0160b876
JPS: don't consider that the module is not Kotlin JS until check all libraries.
...
#KT-14082 Fixed
Original commit: 797f7ab28e
2016-09-29 14:52:51 +03:00
Alexander Udalov
866ea672d7
Allow data classes to implement equals/hashCode/toString from base classes
...
#KT-11306 Fixed
Original commit: fea116f14e
2016-09-15 16:45:48 +03:00
Alexey Tsvetkov
8c9bb043a2
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
Original commit: 6ebb50751c
2016-09-14 13:52:56 +03:00
Yan Zhulanow
291bc0c42c
Kapt: Provide SourceRetentionAnnotationHandler for incremental compilation.
...
Collect annotations with the "SOURCE" retention.
(cherry picked from commit 6ef66e7)
Original commit: 975364b2ed
2016-09-10 17:36:15 +03:00
Nikolay Krasko
3ad7521a54
Drop kotlin-bare-plugin (KT-11859)
...
Original commit: 9a54aa99fa
2016-09-02 13:41:24 +03:00
Stanislav Erokhin
df295ddfc4
Set reference target and report custom error instead unresolved reference for cases: interface, generic parameter, object + invoke, class without companion.
...
#KT-2787 Fixed.
Original commit: bebc75c8ef
2016-09-01 18:01:55 +03:00
Yan Zhulanow
cd09fdd2be
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)
Original commit: 84d62f37eb
2016-08-29 16:31:16 +03:00
Ilya Chernikov
57224b81e6
Add settings to compiler to specify templates to load, add templates provider using the settings
...
Original commit: ce6966b486
2016-08-11 09:08:40 +02:00
Alexander Udalov
904ee98969
CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
...
Note that now "-no-stdlib" implies "-no-reflect".
#KT-13237 Fixed
Original commit: 0d26087040
2016-08-09 11:24:24 +03:00
Alexander Udalov
c22ccf58c0
Remove quotes around visibility in invisible member diagnostic
...
Original commit: 83000c50ff
2016-07-22 18:13:41 +03:00
Alexander Udalov
b3a54cff83
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
Original commit: b6b2303aa7
2016-07-22 18:13:40 +03:00
Dmitry Jemerov
39740c3411
delete work dir after each JPS test
...
Original commit: b315a07f0d
2016-07-18 16:52:16 +02:00
Alexander Udalov
b6b3454e26
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
Original commit: b44f060ffa
2016-07-04 15:42:35 +03:00
Michael Bogdanov
d525cd1581
Fix for KT-11964: No TABLESWITCH in when on enum bytecode if enum constant is imported
...
#KT-11964 Fixed
Original commit: 3b419e8ba3
2016-06-29 09:32:45 +03:00
Denis Zharkov
993493dcc4
Support type aliases in incremental compilation
...
#KT-12871 Fixed
Original commit: efe718602a
2016-06-28 16:22:08 +03:00
Alexey Andreev
fc54e12f27
KT-3008 Fix CLI and JPS tests related to JS translator
...
Original commit: a9ed789727
2016-06-27 15:33:28 +03:00
Mikhael Bogdanov
babb4ddf87
Inline properties support in incremental compilation
...
Original commit: a090133581
2016-06-24 17:05:53 +03:00
Zalim Bashorov
7e1baf1a69
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
Original commit: 0e428ca10c
2016-06-15 15:01:32 +03:00
Denis Zharkov
f5b81b7935
Preserve sources properly for coroutine parts
...
Otherwise incremental reporting leads to exception when inlining into coroutine body happens
Original commit: 07592398c1
2016-06-08 18:53:16 +03:00
Denis Zharkov
720c679184
Introduce coroutine-related API into built-ins
...
Original commit: e97376bb2c
2016-06-08 18:53:16 +03:00
Alexander Udalov
cfb2a41ad2
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)
Original commit: 3c81bb4bfc
2016-05-26 11:47:30 +03:00
Ilya Chernikov
b637dbf6c2
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
Original commit: 1614aca48e
2016-05-06 13:06:38 +02:00
Zalim Bashorov
26ed20a54b
Minor: add test for KT-11993 "NoSuchMethodError when testing internal symbols"
...
Original commit: c11d504a26
2016-05-05 20:45:29 +03:00
Zalim Bashorov
03cb2f04fd
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
Original commit: ed0fa2c26c
2016-04-29 18:23:26 +03:00
Valentin Kipyatkov
38e2b1c91e
Code cleanup: removed redundant semicolons
...
Original commit: b551886889
2016-04-29 11:26:25 +03:00
Denis Zharkov
de7c790c1d
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
Original commit: a1d4214a39
2016-04-25 17:41:08 +03:00
Alexander Udalov
f1fcde7670
Do not store project in JPS tests after they're executed
...
This saves a couple dozen megabytes currently
Original commit: 2df8e56b94
2016-04-18 17:26:59 +03:00
Nikolay Krasko
6666fa1c77
Workaround for building against jars from both JDK 6 and JDK 8 on TeamCity
...
Original commit: 0cf1c8d900
2016-04-12 14:53:20 +03:00
Zalim Bashorov
6e4d8d1670
IC: take into account added and removed classes when calculate affected names
...
Original commit: 51c6abdbed
2016-04-11 19:26:18 +03:00
Nikolay Krasko
e18a666440
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.
Original commit: 47c7181f2a
2016-04-08 17:40:38 +03:00
Zalim Bashorov
2b0487fe00
Minor: update testdata
...
Original commit: 441a442f34
2016-04-08 13:45:37 +03:00
Zalim Bashorov
72debcd1f2
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
Original commit: f5ca949f2c
2016-04-08 13:45:37 +03:00
Nikolay Krasko
b2f2fb1f18
Fix bad test modification
...
Original commit: 9e88db7e58
2016-04-06 21:46:02 +03:00
Nikolay Krasko
ea14bae514
Temporary ad-hock jps-tests enable with testdata modification
...
Original commit: 46a1028494
2016-04-06 21:46:00 +03:00
Nikolay Krasko
6329e6ed9b
Remove duplicate build-common dependency
...
Original commit: 4c81cc802b
2016-04-05 00:39:46 +03:00
Nikolay Krasko
72b18cd2e8
Extract jps-tests to separate module
...
Remove dependency to idea-full to build jps-plugin with Java 1.6
Original commit: 46b5305666
2016-04-05 00:39:46 +03:00
Nikolay Krasko
7e0a39e2d6
Prepare building plugins modules against 1.8 JDK
...
Original commit: ef13e8f5bb
2016-04-05 00:39:46 +03:00
Nikolay Krasko
c63eb0aec9
Set-up usage for kotlin-test lib
...
Original commit: 31da7662c5
2016-04-05 00:39:46 +03:00
Pavel V. Talanov
87dc2c92ca
Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics
...
#KT-9887 Fixed
Original commit: 7de171efda
2016-03-31 16:06:48 +03:00
Alexander Udalov
2d1d2b58f3
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.
Original commit: 8316953259
2016-03-30 21:41:43 +03:00
Alexey Tsvetkov
e679750102
Test: override build.log in gradle IC tests
...
Original commit: 61814eb23f
2016-03-30 03:40:53 +03:00
Alexey Tsvetkov
30f2dd0684
Test: use one function to find test's build log for jps and gradle
...
Original commit: c1a61b17c7
2016-03-30 03:40:53 +03:00
Alexey Tsvetkov
486b6cd2e0
Refactor: move allVersions() to jps-plugin since it is jps specific
...
Original commit: 4c782dbfcc
2016-03-30 03:40:53 +03:00
Zalim Bashorov
e0042d99c1
Minor: fix testdata
...
Original commit: 4b8c9c8b39
2016-03-24 22:28:40 +03:00
Zalim Bashorov
b2c79c0ff3
IC: add tests with moving files
...
Additionally added the ability to use directories in IC tests.
#KT-8002 Obsolete
Original commit: 9a9b863c9d
2016-03-24 22:28:40 +03:00
Alexey Tsvetkov
01aab0deda
Minor: removed experimental-ic-build.log duplicating build.log
...
Original commit: 33cd661aad
2016-03-24 14:57:17 +03:00
Zalim Bashorov
0f4f707b6c
Minor: source sources of SourceToOutputMap when dump it to make IC tests more stable
...
Original commit: f00615c00b
2016-03-16 14:42:13 +03:00
Alexey Tsvetkov
bf97307b38
Minor: add two accidentally deleted files to test case
...
Original commit: 52be775f28
2016-03-11 02:43:31 +03:00
Alexey Tsvetkov
a763af2ae0
Add incremental tests for parameters with default values
...
Original commit: d352905a72
2016-03-10 23:36:40 +03:00