Commit Graph

885 Commits

Author SHA1 Message Date
Alexey Sedunov 6a7cd7c6e3 Add tests for mutability annotation support in type resolver 2013-03-29 18:42:47 +04:00
Alexey Sedunov 393ebf44aa Implement mutability annotation support in type resolver 2013-03-29 18:42:43 +04:00
Evgeny Gerashchenko b7527101cd Always using "SAM interface" term. 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 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 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 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 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 2718f7698c Basic support for resolving top-level SAM interfaces. 2013-03-27 19:19:53 +04:00
Evgeny Gerashchenko eefdf5790a Rendering Unit as jet.Unit (uniformity). 2013-03-22 16:38:26 +04:00
Evgeny Gerashchenko 93f8d572fc Renamed runtime Tuple0 class to Unit. 2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko f181907b9c Got rid of code depending on Unit aliasing. 2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko ca27637ef2 Removed usages of getTuple() and isTupleType() 2013-03-22 16:38:23 +04:00
Evgeny Gerashchenko 6e623c57e1 Removed "worst code in Kotlin project".
Nothing changed after removing.
2013-03-22 16:38:23 +04:00
Evgeny Gerashchenko d9b6a5c2ba Removed JetTupleType. 2013-03-22 16:37:17 +04:00
Mikhael Bogdanov 86f5114b7d Properly resolve descriptors from compiled kotlin
Added protected flag for annotation
2013-03-20 20:50:05 +04:00
Alexander Udalov 7368ca09b9 Resolve static enum members from compiled Java
For static members, a corresponding package is now created for every enum, as
it's done for every other class. All static members of enum classes are
resolved into the package, EXCEPT its enum entries, valueOf() and values()
methods, which are put into the enum's class descriptor.
2013-03-15 16:00:56 +04:00
Alexander Udalov 68844131b0 Fix broken isEnumClassObject methods
Out of three methods, two were incorrect
2013-03-15 16:00:55 +04:00
Evgeny Gerashchenko fa5fcbbad1 Removed isVar field & constructor parameter from ValueParameterDescriptorImpl, since it's always false. 2013-03-14 20:49:44 +04:00
Evgeny Gerashchenko ec5331057a Removed unnecessary final on local variables. 2013-03-13 14:12:50 +04:00
Evgeny Gerashchenko 2eb15039a4 Added namespace classes to Java static member scope. 2013-03-12 19:31:47 +04:00
Evgeny Gerashchenko 6508f88552 Removed redundant code. 2013-03-12 19:31:47 +04:00
Natalia.Ukhorskaya 6f31fd7bd4 EA-43630 - assert: JavaAnnotationResolver.resolveAnnotation 2013-03-07 15:34:40 +04:00
Andrey Breslav 7107288f88 Injectors regenerated 2013-03-06 12:53:14 +04:00
Evgeny Gerashchenko 578503c4cd EA-41980 - assert: SignaturesPropagationData.getSuperFunctionsForMethod 2013-03-05 13:33:11 +04:00
Evgeny Gerashchenko e67e992bb0 Loading from Java: inner subclass of super's inner. 2013-03-04 17:33:58 +04:00
Evgeny Gerashchenko 3c7d413456 Disabled super functions checking on error types. 2013-03-04 17:33:58 +04:00
Mikhael Bogdanov b3ec87f956 ClassObject instance field refactoring 2013-03-04 16:42:55 +04:00
Andrey Breslav c5d1e04d41 EA-36903 - ISE: JavaTypeTransformer$.visitClassType
Using error types as type arguments when there's an error in a type instantiation in Java code
2013-02-25 16:14:07 +04:00
Andrey Breslav ec33f90f89 Rename getQualifiedName() -> getFqName() 2013-02-19 18:52:12 +04:00
Evgeny Gerashchenko 1a54e42eb7 Minor. Fixed method name. 2013-02-19 17:45:16 +04:00
Evgeny Gerashchenko bb64e43ee1 Better error logging. 2013-02-19 17:45:16 +04:00
Evgeny Gerashchenko 626d9f988c Logging error instead of throwing exception. 2013-02-19 17:45:16 +04:00
Evgeny Gerashchenko 543a2821e4 Disabled assertion when return types are incompatible (incomplete/invalid Java code).
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:45:15 +04:00
Evgeny Gerashchenko 70030b208d Extracted PropagationHeuristics utility class. 2013-02-19 17:25:36 +04:00
Evgeny Gerashchenko 8d101ad5fa Substituted super functions from mapped classes. 2013-02-19 17:25:35 +04:00
Evgeny Gerashchenko 30afc99ccf Extracted method. 2013-02-19 17:25:35 +04:00
Evgeny Gerashchenko 48113f036f Fixing signature when overriding with erased signature.
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:25:35 +04:00
Evgeny Gerashchenko cd06bdedfe Added propagation error message when array of subtype is used in return type of sub method.
EA-43482 - ISE: JavaFunctionResolver.checkFunctionsOverrideCorrectly
2013-02-19 17:25:34 +04:00