Alexey Sedunov
7e0bb089e2
Kotlin Facet: Suppress selection on plugin options tab
...
#KT-17046 Fixed
2017-04-04 14:35:11 +03:00
Alexey Sedunov
746ec48176
Move: Fix internal reference processing on moving multiple files
...
#KT-17211 Fixed
2017-04-04 14:35:10 +03:00
Alexey Sedunov
a8a9c3bbf4
Kotlin Facet: Fix platform detection in android-gradle projects
...
Sort candidate library names by descending length.
Suppress common library if platform-specific one is also present
#KT-16827 Fixed
2017-04-04 14:35:08 +03:00
Mikhail Glukhikh
7a53b2f4c8
Introduce UNUSED_ANONYMOUS_PARAMETER for anonymous functions
...
It is not reported for 1.0 language version because
renaming to _ is not possible. It has weak warning severity
So #KT-8813 Fixed
So #KT-16875 Fixed
2017-04-04 14:23:30 +03:00
Nikolay Krasko
110fc103de
Run tests with JDK 1.8 and remove hack with downloading libraries from previous ide
2017-04-04 13:22:43 +03:00
Dmitry Jemerov
fe8e02f4cf
Use LibraryJarDescriptor for refreshing jars on plugin update
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
78844dd4aa
Use new path for stdlib sources jar
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
38abc0ca8e
Get rid of RuntimeLibraryFiles and its remaining uses
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
09fbbb369a
Use LibraryJarDescriptor in CustomLibraryDescriptorWithDeferredConfig
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
2bb1b670f7
CustomLibraryDescriptorWithDeferredConfig: J2K
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
ff985314cf
CustomLibraryDescriptorWithDeferredConfig: rename to .kt
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
f9aff3be13
Rewrite configureModuleWithLibrary() based on LibraryJarDescriptor
...
Also remove duplicated logic for identifying Kotlin libraries.
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
06e8f8e5be
Remove obsolete logic for updating source root URL
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
291e888802
Encapsulate library search in LibraryJarDescriptor
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
f9495aa0d7
Introduce and use KotlinPaths.getStdlibPath()
...
Also support renaming .jar file when updating an existing library
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
344f372327
KotlinJavaModuleConfigurator: J2K
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
16c2dec60a
KotlinJavaModuleConfigurator: rename to .kt
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
00d3141ba2
KotlinWithLibraryConfigurator: J2K
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
2059a052c9
KotlinWithLibraryConfigurator: rename to .kt
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
296fe698b8
KotlinAnnotatedElementsSearcher optimization
...
When possible, try to resolve references in types using only the PSI
without building the full resolve session.
2017-04-04 11:14:09 +02:00
Pavel V. Talanov
b9809566e6
Workaround for KotlinJpsBuiltTest js tests
...
Caused by problems with classloading (having two copies of DefaultImplementation class)
2017-04-03 21:44:43 +03:00
Mikhael Bogdanov
16d95d803f
Use jdk 1.8 to run android tests
2017-04-03 19:20:52 +02:00
Nikolay Krasko
d9c57728e2
Try to avoid null exception in getCommandProvider() in debugger tests
2017-04-03 19:05:22 +03:00
Nikolay Krasko
b4ebd6074c
Restore quick doc for it parameter and this of extension function
2017-04-03 19:05:22 +03:00
Nikolay Krasko
eb4e6e6c1a
Ad hoc solution to avoid resolution in language injection by receiver (KT-16995)
...
#KT-16995 Fixed
2017-04-03 19:05:22 +03:00
Yoshinori Isogai
f16736285a
Update JAVA_HOME path to JDK8 ( #1043 )
2017-04-03 17:52:51 +02:00
Alexander Udalov
b5ea6d3e25
Upgrade maven-shade-plugin to 3.0.0
...
A critical bug related to Java 8 bytecode (default/static methods in
interfaces) was fixed in maven-shade-plugin in 3.0.0, which reproduces
for kotlin-compiler-embeddable on Java 9 because the verifier in Java 9
started to check consistency of constant pool references to methods in
interfaces
#KT-17112 Fixed
2017-04-03 18:37:22 +03:00
Alexander Udalov
dc4c8c40bf
Fix Java6BuiltInsWithJDKMembersTest on Linux
...
PathUtil.getJdkClassesRoots() takes the path to the JRE. On macOS, this
is the same as the path to the JDK (for Java 6), so the test worked
there. However for OpenJDK on Linux, there's a separate directory named
"jre" in the JDK root. See JavaSdkUtil.getJdkClassesRoots for more
information on how the JDK roots are found
2017-04-03 18:30:59 +03:00
Alexander Udalov
b368da8456
Do not warn on non-JAR files in classpath
...
#KT-17140 Fixed
2017-04-03 18:18:40 +03:00
Alexander Udalov
64dfa6d33d
Do not add current directory to "kotlin" classpath
...
As "java" does, do not include the current directory to the classpath if
the explicit classpath is specified. This is more stable than always
adding the current directory, and users can easily add the ".:" to the
beginning of the explicit classpath themselves
#KT-17100 Fixed
2017-04-03 18:17:27 +03:00
Alexander Udalov
3b8110f51c
Minor, use "use" to automatically close JarFile
...
JarFile extends Closeable on JDK 8, so we can use "use" here now
2017-04-03 18:05:04 +03:00
Alexander Udalov
cbc893ed17
Minor, drop useless class in cli-runner
...
Use a simple List<URL> instead of Classpath
2017-04-03 18:05:04 +03:00
Alexander Udalov
93d5f6e635
Fix NPE on equals/hashCode of local function references
...
Anonymous classes for local function references implement their
getOwner() as "return null" currently (KT-14291). To avoid NPE in this
case, we now consider two local functions the same if their name and
signature are equal. This is incorrect in general, but unlikely to cause
major problems and is going to be fixed by KT-14291 eventually anyway
#KT-17055
2017-04-03 18:05:04 +03:00
Alexander Udalov
8dc4fa62ac
Minor, drop unused directive and test
...
The directive was only used in this test and it had no effect on the
behavior of the test. The test is removed because it's equivalent to
simple.kt in the same directory
2017-04-03 18:05:04 +03:00
Mikhail Zarechenskiy
bff9ebc0d5
Fix check for instance for types with compatible upper bounds
...
#KT-5246 Fixed
2017-04-03 16:25:32 +03:00
Mikhail Zarechenskiy
1e56815b3b
Do not show warning about useless elvis for error function types
...
#KT-17214 Fixed
#KT-12112 Fixed
2017-04-03 16:25:32 +03:00
Mikhail Zarechenskiy
3cdf6c898a
Warn for unnecessary (!!) assertion after method with generics
...
#KT-12276 Fixed
2017-04-03 16:25:32 +03:00
Mikhail Zarechenskiy
4aa808b250
Fix warning about useless elvis when generics are involved
...
#KT-13648 Fixed
2017-04-03 16:25:32 +03:00
Alexander Udalov
0badc686ca
Minor, inline FunctionCodegen.getSignatureMapper
2017-04-03 14:51:19 +03:00
Alexander Udalov
78e278ec4c
Remove redundant type arguments for Java 8+ in compiler modules
2017-04-03 14:51:18 +03:00
Alexander Udalov
d440f07111
Use Java 7+ diamond operator in compiler modules
2017-04-03 14:51:15 +03:00
Alexander Udalov
37f435da93
Use List.sort instead of Collections.sort
2017-04-03 14:50:33 +03:00
Alexander Udalov
a9f35ae898
Replace Map operations with computeIfAbsent
2017-04-03 14:50:32 +03:00
Alexander Udalov
5ebee6ceca
Use Java 8 lambdas instead of anonymous classes in compiler modules
2017-04-03 14:49:23 +03:00
Alexander Udalov
6aa0f7bb65
Use multi-catch when possible
2017-04-03 14:26:53 +03:00
Alexander Udalov
34f0576135
Invoke "remove unnecessary final" intention in compiler modules
2017-04-03 14:26:52 +03:00
Alexander Udalov
463bbbd386
Use try-with-resources instead of manual try/finally
2017-04-03 14:26:51 +03:00
Alexander Udalov
08b50cab08
Use java.util.function.Predicate instead of Guava
2017-04-03 14:26:50 +03:00
Alexander Udalov
f723ad76f7
Use java.util.function.Predicate instead of Guava in JS modules
2017-04-03 14:26:49 +03:00
Mikhael Bogdanov
7c3ad97df5
Test for obsolete KT-17134: java.lang.VerifyError: Bad type on operand stack
...
#KT-17134 Obsolete
2017-04-01 15:34:56 +02:00