Commit Graph

25741 Commits

Author SHA1 Message Date
Mikhail Glukhikh 1667f18d7c Receiver of a safe call is not null inside the call also for extension functions + a pair of tests #KT-9033 Fixed 2015-09-16 15:04:41 +03:00
Mikhail Glukhikh 22229af930 Annotation / modifier checking for setter parameters / for variables / multi declarations, tests, relevant test changes #KT-9145 Fixed 2015-09-16 09:51:37 +03:00
Mikhail Glukhikh f1fcb14f44 Suppress warning intention fix: now multi declaration is not a possible intention target but its initializer is, relevant test fixes 2015-09-16 09:51:31 +03:00
Alexander Udalov 9feb82c268 Do not decompile old incompatible package parts
Fix the test by reverting 282727b
2015-09-16 03:27:11 +03:00
Alexander Udalov 2b269b2652 Improve ABI version error reporting in the compiler
- only report ABI errors if there's at least one other error
- append additional helpful information to the "unresolved reference" error
2015-09-16 01:44:27 +03:00
Alexander Udalov d98b3433eb Fix ABI version diagnostic for old package facades
Restore the test data that was erroneously replaced in 84649e4
2015-09-16 01:44:27 +03:00
Alexander Udalov 4bc257bd73 Minor refactoring in LazyJavaPackageScope 2015-09-16 01:44:27 +03:00
Alexander Udalov 8e83e1c17a Fix testIncompleteHierarchyInKotlin on Windows 2015-09-15 19:58:25 +03:00
Dmitry Jemerov 6f902823d5 Merge branch 'rr/yole/verify-ignore-perf' 2015-09-15 17:18:48 +02:00
Dmitry Jemerov 81d0b6c109 verify.groovy: ignore PERF output 2015-09-15 16:24:18 +02:00
Michael Nedzelsky d5f9382d56 fix for EA-68992 (JS) IPBE: UninitializedMessageException.asInvalidProtocolBufferException. 2015-09-15 16:08:13 +03:00
Michael Nedzelsky bd67a2a9ff Minor: get rid of warnings: KotlinJavaScriptLibraryManager, KotlinJavaScriptMetaFileSystem 2015-09-15 16:08:10 +03:00
Michael Nedzelsky ff73388cf3 tests for EA-68992 (JS) IPBE: UninitializedMessageException.asInvalidProtocolBufferException. 2015-09-15 16:08:07 +03:00
Alexander Udalov 296212eab1 Merge two JetTypeMapper#mapToCallableMethod methods 2015-09-15 15:55:20 +03:00
Alexander Udalov 7c0780455a Remove unused parameter of JetTypeMapper#mapOwner, simplify lots of code 2015-09-15 15:55:20 +03:00
Alexander Udalov 90cef6553c Delete all references to removed package 'kotlin.modules' 2015-09-15 15:55:19 +03:00
Alexander Udalov c7c9ec35cf Improve LoadBuiltinsTest, load built-ins from dist/kotlin-runtime.jar 2015-09-15 15:55:19 +03:00
Dmitry Jemerov 35d9880266 don't initialize Kotlin caches if there is no Kotlin code to compile 2015-09-15 14:21:01 +02:00
Alexander Udalov 296512ffc4 Minor, remove useless code and fix warnings 2015-09-15 13:11:17 +03:00
Alexander Udalov 949144e0c0 Report incomplete hierarchy error for deserialized types
#KT-5129 Fixed

Delete a JPS test that was specifically testing that we would not fail in this
situation; now there's a compilation error
2015-09-15 13:11:17 +03:00
Alexander Udalov b1d9e5c961 Minor, improve exception message for reflection on built-ins 2015-09-15 13:11:16 +03:00
Alexander Udalov b4470de713 Improve inline diagnostics, report "nothing to inline" on the modifier 2015-09-15 13:11:16 +03:00
Alexander Udalov a946f787bc Fix exception from data class codegen for light classes
EA-66827
2015-09-15 13:11:16 +03:00
Dmitry Petrov 47b8853051 Generate light classes for single-file facades using PackageCodegen. 2015-09-15 10:25:40 +03:00
Dmitry Jemerov d499103468 fix JetSafeDeleteTest 2015-09-14 21:46:23 +02:00
Dmitry Petrov b63eed44fe Advance ABI version (due to stdlib binary layout changes) 2015-09-14 21:58:01 +03:00
Dmitry Petrov ef6da03db2 Do not generate facade for single-file light classes 2015-09-14 21:26:33 +03:00
Pavel V. Talanov d6a9551392 Do not generate parts of multifile facade when building light classes
Building facade class is enough for this purpose
2015-09-14 19:40:11 +03:00
Pavel V. Talanov 54bcbc7a02 Introduce ClsJavaStubByVirtualFileCache
Avoid caching in user data of virtual file because it leads to project leaking
2015-09-14 19:40:10 +03:00
Alexey Sedunov 708f7fc51f Change Signature: Fix processing of top-level declarations usages in Java (old/new package facades are supported) 2015-09-14 18:05:06 +02:00
Dmitry Jemerov 9e6c0e7ee2 code review 2015-09-14 18:05:00 +02:00
Dmitry Jemerov 3cf6395750 move supports new facades 2015-09-14 18:04:58 +02:00
Dmitry Jemerov d67fb670b7 safe delete supports new facades 2015-09-14 18:04:58 +02:00
Dmitry Jemerov c81f1d314c call hierarchy supports new facades 2015-09-14 18:03:57 +02:00
Dmitry Jemerov 35de13a6b2 update Java references to file class when a file is renamed 2015-09-14 18:03:55 +02:00
Dmitry Jemerov ab58dc3586 allow returning multiple PsiMethod wrappers for a JetFunction or JetPropertyAccessor; use that for handling Java usages through old-style and new-style facades
#KT-9102 Fixed
2015-09-14 18:03:55 +02:00
Dmitry Jemerov 4d09280aa8 LightClassUtil: J2K 2015-09-14 18:03:54 +02:00
Dmitry Jemerov 043c961b57 LightClassUtil: rename to .kt 2015-09-14 18:03:53 +02:00
Dmitry Petrov f4e9d9a7a0 Fix navigation to decompiled multifile class members. 2015-09-14 17:59:17 +03:00
Dmitry Petrov 50ff2a3ad2 Multifile facade should contain reflection data,
otherwise callable references to stdlib functions will not work in the migration scheme.
2015-09-14 17:47:49 +03:00
Dmitry Petrov 5d0243d46f Fix incremental compilation tests 2015-09-14 17:47:49 +03:00
Valentin Kipyatkov 08e7a9d826 Made methods generated from declarations marked with @HiddenDeclaration synthetic in JVM 2015-09-14 17:42:40 +03:00
Valentin Kipyatkov aec661aeff Fixed assertion in j2k on updating external usages 2015-09-14 17:26:52 +03:00
Mikhail Glukhikh 67f714434f Error message on JVM repeated annotation changed 2015-09-14 16:20:07 +03:00
Alexander Udalov dcd7464ae1 Fix NPE from REPL initialization 2015-09-14 13:23:17 +03:00
Mikhail Glukhikh b4399b8b8b AnnotationTarget.CLASSIFIER and KotlinTarget.CLASSIFIER both dropped (second step) 2015-09-14 12:51:11 +03:00
Dmitry Petrov 1586a2df8e Make stdlib work with -Xmultifile-package-facades.
Fixed wrong owner mapping in presence of -Xmultifile-package-facades.
Fixed backing field mapping issue.
Added more tests.
2015-09-14 11:26:29 +03:00
Dmitry Petrov 838433ba8a - call multifile class members (compiling against binaries)
- inline multifile class members
HACK? scope-based part/facade resolution
2015-09-14 11:25:42 +03:00
Dmitry Petrov 50f83da6da - call multifile class members (compiling against binaries)
- inline multifile class members
2015-09-14 11:25:42 +03:00
Dmitry Petrov 5f9a59d655 - bytecodeTextMultifile - framework for bytecode text tests
with multiple Kotlin source files
- bytecodeTextMultifile/partMembersCall, initial import
2015-09-14 11:25:42 +03:00