Mikhail Glukhikh
d9e4b445b9
Add extra information for EA-76201
2017-05-26 15:39:24 +03:00
Alexey Tsvetkov
3de679fb23
Minor: add comment for CompilerMessageSeverity.OUTPUT
2017-05-26 15:16:41 +03:00
Alexey Tsvetkov
afa1e901a7
Ensure output directory exists when adding it to classpath
...
Otherwise a warning is reported:
"Сlasspath entry points to a non-existent location".
Currently it only affects Maven + IC.
2017-05-26 15:16:41 +03:00
Alexey Tsvetkov
fd9e42a233
Do not print OUTPUT message as warning in Maven
...
Before the change Maven + IC had been reporting OUTPUT
messages as warnings since OUTPUT was removed
from CompilerMessageSeverity.VERBOSE
2017-05-26 15:16:41 +03:00
Zalim Bashorov
13aeb171bd
Provide more info for EA-89216
2017-05-26 15:06:32 +03:00
Dmitry Neverov
753b714544
Report cases when class member can be private
2017-05-26 13:29:01 +02:00
Dmitry Petrov
c83b764c73
Update testData after changes in diagnostics
2017-05-26 13:58:46 +03:00
Dmitry Petrov
2c83718452
Prohibit having duplicate parameter names in functional types
...
#KT-15804 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
9908212c99
Report VIRTUAL_MEMBER_HIDDEN on declaration name
...
#KT-13749 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
96f7a2d38a
Fix message for EXTERNAL_DECLARATION_CANNOT_BE_INLINED
...
#KT-10164 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
a86fe89aae
Include file name for package-level members in diagnostics
2017-05-26 13:58:46 +03:00
Dmitry Petrov
7979663e6c
Update testData for changed diagnostic messages
2017-05-26 13:58:46 +03:00
Dmitry Petrov
17eab2865d
Include containing declaration name in message for JVM signature clashes
...
#KT-9359 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
d850f01c39
Fix diagnostic for uninitialized extension property without accessors
...
#KT-8612 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
902d3af280
Prohibit extending kotlin.Enum directly
...
#KT-7773 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
b9e45bcd54
Fix diagnostic message for INACCESSIBLE_OUTER_CLASS_EXPRESSION
...
Diagnostic messages should describe a problem,
and should not suggest taking actions.
That's a prerogative of quick fixes in IDE.
#KT-5511 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov
7518119bff
Fix diagnostic message for abstract member not implemented
...
Diagnostic messages should describe a problem,
and should not suggest taking actions.
That's a prerogative of quick fixes in IDE.
#KT-5066 Fixed
2017-05-26 13:58:46 +03:00
Mikhael Bogdanov
3f7bf8467a
Process non-aload0 outer access in constructor during inline
...
#KT-17972 Fixed
2017-05-26 09:24:10 +02:00
Ilya Zorin
5e265b3d17
Convert intention "a..b-1 -> a until b" into weak warning inspection
...
So #KT-17895 Fixed
2017-05-26 09:48:04 +03:00
Dmitry Neverov
0fd42bc747
Don't suggest cast when !! is possible #KT-18033 Fixed
2017-05-26 09:47:57 +03:00
Mikhail Glukhikh
af3a123c15
Report WRONG_MODIFIER_CONTAINING_DECLARATION for vararg in setter
2017-05-26 09:47:51 +03:00
Dmitry Petrov
30182c38ce
Fix toString and hashCode for array members of data classes
...
Generate them as special intrinsics that would be mapped to proper
platform-specific calls by BEs.
#KT-16945 Fixed
2017-05-26 09:32:29 +03:00
Dmitry Petrov
1420926a9b
Generate receivers for callable references in the same way as for calls
...
Properly handle callable members imported from objects
and other related corner cases.
#KT-18084 Fixed
2017-05-26 09:32:29 +03:00
Yan Zhulanow
7220183912
Kapt: Write @kotlin.Metadata annotation to Java stubs #KT-17937
2017-05-25 21:28:47 +03:00
Yan Zhulanow
141f12e71b
Minor: Commit forgotten kapt test data
2017-05-25 21:28:40 +03:00
Mikhail Zarechenskiy
4e38ff3b72
Exclude several tests about inner generic signature on Android
...
There is no information about inner generic class in the middle of signature
on android.
For example, on JVM we can get signature:
`FirstInner$SecondInner<A>.ThirdInnner;`
But on Android it would be
`FirstInner$SecondInner$ThirdInnner;`
2017-05-25 16:46:07 +03:00
Mikhail Zarechenskiy
d0e26c6527
Support underscores in non local destructuring declarations
2017-05-25 16:46:06 +03:00
Mikhail Zarechenskiy
47f2386212
Generate non-local destructuring declarations as properties
...
#KT-5620 Fixed
#KT-15810 Fixed
2017-05-25 16:46:05 +03:00
Mikhail Zarechenskiy
400ecd5e13
Support destructuring declarations in scripts and REPL
...
#KT-5620 In Progress
#KT-15810 In Progress
2017-05-25 16:46:04 +03:00
Alexey Andreev
0e31c14a86
Implement inlining of default parameters in JS BE
...
Fix KT-17910
2017-05-25 14:38:53 +03:00
Valentin Kipyatkov
40bbf82a41
Hint action to update usages on cut/paste of top-level declarations
2017-05-24 16:49:37 +03:00
nd
cb5459b7d7
Don't suggest adding replaceWith in DeprecationLevel.HIDDEN ( #1094 )
...
#KT-17917 Fixed
2017-05-24 15:06:51 +02:00
nd
8d6d228bb8
Move property to constructor preserves vararg keyword ( #1095 )
...
#KT-18035 Fixed
2017-05-24 14:58:30 +02:00
Alexander Udalov
965b4199f4
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
2017-05-24 15:46:57 +03:00
Alexander Udalov
f8dabc79c3
Use environment variable JDK_19 instead of JDK_9
...
JDK_19 is set on TeamCity agents, not JDK_9.
Also do not invoke getJreHome() because Java 9 distribution does not
have a "jre" subdirectory
2017-05-24 15:46:57 +03:00
shiraji
c8e58ce9ab
Fix WrapWithSafeLetCallFix ignore extension method
...
Related to KT-17726
2017-05-24 14:02:01 +03:00
Mikhail Glukhikh
bd73916d99
Minor cleanup
2017-05-24 14:01:59 +03:00
Dmitry Neverov
46aaee5d05
Fix nullability quick-fixes with implicit receiver #KT-17726 Fixed
2017-05-24 14:01:58 +03:00
Ilya Chernikov
9d2ae54d2c
Introduce other JVM options inheritance for daemon
2017-05-24 10:52:38 +02:00
Ilya Chernikov
6190b1ec2e
Fix daemon selection on the memory settings
2017-05-24 10:52:37 +02:00
Ilya Chernikov
f8ef48f03e
minor: log daemon client registration
2017-05-24 10:52:37 +02:00
Ilya Chernikov
f00149ad05
Reuse daemon launching logic for out-of-process compilation in gradle
2017-05-24 10:52:36 +02:00
Ilya Chernikov
61570fc4b8
Improve daemon client diagnostic and run failure detection
...
Removing prefiltering of the daemon client reporting - filtering should
be performed on the receiver site. And put daemon process output during
executioninto INFO category. May make daemon usage more talkative,
but will not eat important error messages anymore.
Add test with failure condition.
Also failed daemon start should not cause timeout anymore.
2017-05-24 10:52:35 +02:00
Ilya Chernikov
bec2ae7cab
Refactor daemon tests, some minor fixes in the client and daemon
...
Tests refactored for better readability and code reuse
Some shutdown livelock is fixed
Some logging added
2017-05-24 10:52:35 +02:00
Dmitry Petrov
7600b6de52
Allow top-level type aliases in scripts
2017-05-24 11:20:22 +03:00
Dmitry Petrov
425c66b0cd
Separate stub generation for external dependencies from PSI2IR
2017-05-24 11:18:52 +03:00
Dmitry Petrov
952f53d37c
Use DeclarationStubGenerator for built-ins initialization
2017-05-24 11:18:52 +03:00
Dmitry Petrov
ec9427a36b
Minor: make DeepCopySymbolsRemapper open
2017-05-24 11:18:52 +03:00
Dmitry Petrov
e7eb078c3f
Minor: remove always true is-check
2017-05-24 11:18:52 +03:00
Dmitry Petrov
6fd762cfce
Provide DeclarationStubGenerator as a separate class in IR utilities
2017-05-24 11:18:52 +03:00