Commit Graph

5137 Commits

Author SHA1 Message Date
Evgeny Gerashchenko dcb95fc5ac Fixed priorities for synthetic functions. 2013-03-29 13:10:31 +04:00
Natalia.Ukhorskaya 73bbda5b93 AndroidTests: do not run test which use file system 2013-03-29 11:47:05 +04:00
Evgeny Gerashchenko 13d856db8e Moved max priority constant to PriorityProvider. 2013-03-28 20:08:35 +04:00
Evgeny Gerashchenko 0fee69fe07 Prioritized synthetic and not synthetic functions. 2013-03-28 20:07:47 +04:00
Evgeny Gerashchenko 2e678a94f1 Replaced predicate strategy with priority-returning strategy. 2013-03-28 18:27:35 +04:00
Evgeny Gerashchenko 0bc65321c2 KT-1547 Wrong layout of closure classes
#KT-1547 fixed
2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko b7527101cd Always using "SAM interface" term. 2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko c619685dc8 Added test with overridden j.l.Object methods in trait. 2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko 8130c813e9 Not looking for super methods which are Object methods in interfaces, because they are not loaded by JDR. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko d8ccfe55b6 Removed redundant checking for test mode. Exceptions will be thrown anyway. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 3917f11b12 Updated test data. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 4fc1148d59 Added dummy methods to avoid loading test interfaces as SAM. 2013-03-27 19:19:59 +04:00
Evgeny Gerashchenko 8f079f6d41 Added tests for ignoring Object methods when loading interface. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko ecf882fc21 Removed method which had never been used. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 3761dc051e Generating ACC_SUPER for closures.
Removed commented.
2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 4e0d408178 Minor. Annotated with @Nullable/@NotNull. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko a2b4f446b5 Removed useless ACC_PUBLIC flags from closure classes. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko fb18e5ab39 Removed recording function twice. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 56d2bb2639 Removed volatile flag from bridge method.
Actually, volatile flag is equal to bridge flag, which is already there.
2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 288dbe70c6 Got rid of adding constant on each call site. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko d5031e60ad Prepared code for supporting SAM conversions. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko b891d6d87f Loading SAM constructor functions for nested interfaces. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 17cc055152 Loading deeply nested static method correctly. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 81381a206c Simplified code. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 7a136eae5b Extracted method. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko 0422253943 Loading generic interfaces with upper bounds. 2013-03-27 19:19:57 +04:00
Evgeny Gerashchenko dea7ef77ec If interface method has generic parameters, interface is not functional. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 91282b992d Supported functional interfaces with generic parameters in codegen. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 3b558d575c Loading functional interfaces with generic parameters. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 526cc3ce15 Renamed method. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 933a455f6c Capable of changing owner. 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 45d638cc51 Loading interface with only one method inherited from Object as not functional.
#KT-1242 fixed
2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko e6c047b2e0 Added tests with FilenameFilter (several arguments). 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 461bfec45d Added FileFilter to mock JDK. 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko 835c0f85c7 Supported SAM constructors in codegen (simplest case). 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko 8f34dea4c8 Saving mapping from SAM constructor to trait. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko a96a461e61 Calculating interface function name in constructor. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 0add163467 Asserting right after reading. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 73823260be Removed redundant code. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko f4551da18b Moved SAM function creation to JavaFunctionResolver. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko dad2ba34aa Removed redundant field in JavaPackageScope. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko f43631377b Updated test data. 2013-03-27 19:19:53 +04:00
Evgeny Gerashchenko 2718f7698c Basic support for resolving top-level SAM interfaces. 2013-03-27 19:19:53 +04:00
Mikhael Bogdanov ad4eeb3f8a Properly capture local functions
Local functions in local classed wasn't captured properly
2013-03-27 15:57:27 +04:00
Mikhael Bogdanov 771bce99fa Android test update to support new Idea 2013-03-27 12:24:32 +04:00
Evgeny Gerashchenko 3ae0448c3e Generating public flag for local functions/properties. 2013-03-26 18:46:19 +04:00
Mikhael Bogdanov 932c1444a2 Fix for local closures 2013-03-26 15:43:25 +04:00
Natalia.Ukhorskaya 9091becbea Implement Class Hierarchy View
#KT-3419
2013-03-25 17:39:57 +04:00
Natalia.Ukhorskaya c6e934169f Add method isLocalClass to JetPsiUtil 2013-03-25 17:39:55 +04:00
Natalia.Ukhorskaya 74bd843d1b Move method 2013-03-25 17:39:54 +04:00