Commit Graph

314 Commits

Author SHA1 Message Date
Alex Tkachman 0ecb02cc25 KT-2260 test for non reproducable (probably obsolete) issue 2012-08-04 19:23:41 +03:00
Alex Tkachman 3ca1cbf5a0 KT-1845 test for obsolete issue 2012-08-04 19:17:36 +03:00
Alex Tkachman e1e8c65a71 KT-2257 fix. private namespace visibility becomes protected in java land 2012-08-04 18:58:45 +03:00
Alex Tkachman e848e5502b KT-2291: test for obsolete issue 2012-08-04 16:46:27 +03:00
Alex Tkachman 34a0b0dcd4 KT-2334 partly fix: boolean to object coercion 2012-08-04 12:46:49 +03:00
Alex Tkachman 301b55788e KT-2269 fix: hashCode & equals for primitives 2012-08-04 08:55:38 +03:00
Alex Tkachman bcec8b7c36 KT-2331 fix: proper dealing with privite property setters 2012-08-04 08:10:38 +03:00
Alex Tkachman e8debde256 test for unreproducable KT-2288 2012-08-03 12:03:36 +03:00
Alex Tkachman 0e4a8660fd KT-2416 fix contains for ranges with primitive parameters 2012-08-03 09:15:53 +03:00
Alex Tkachman 8ba9e9f51b even more exact test for KT-2509 2012-08-03 08:08:03 +03:00
Alex Tkachman 4f385e89d3 test for unreproducable KT-2509 2012-08-03 08:01:25 +03:00
Alex Tkachman abee22ccca KT2482 fix - empty if codegen 2012-08-03 07:53:12 +03:00
Alex Tkachman 2df30416cd KT-2485 fix - coercion boolean to Any? etc. 2012-08-03 07:00:25 +03:00
Alex Tkachman d6e614a2d4 KT-2566 fix - accessors naming 2012-08-02 19:07:55 +03:00
Alexander Udalov dcd5cad427 KT-2280 Recursive function declared in function results in VerifyError
#KT-2280 Fixed

A closure's constructor should not take an instance of itself as an
argument, because it would require caller to pass yet uninitialized
value. Instead it should initialize a corresponding field with 'this'
2012-07-31 19:38:14 +04:00
Alexander Udalov a286c475e4 test for KT-1939
#KT-1939 fixed
2012-07-30 19:20:04 +04:00
Alexander Udalov cb9c18b7ad KT-2498 Bridge method is not generated for method when generic parameters are substituted in superclass
#KT-2498 Fixed

generateBridgeIfNeeded() now works as follows: for a given method, find
which declared methods does this method override via breadth-first search.
For each such declared method, generate a bridge if and only if its
signature is different. Keep different methods' signatures in a set to
avoid duplicated bridge signatures.
2012-07-30 18:27:01 +04:00
Alex Tkachman 0b327d29bc fix KT-2481: no bridge for supercall 2012-07-28 14:17:42 +03:00
Alexander Udalov fe1e6fc0d3 KT-2541 VerifyError on substituting type after inheritance from trait
#KT-2541 Fixed
2012-07-27 19:43:14 +04:00
Alexander Udalov 6eb4cf5aa5 KT-2423 Jump after condition check in inner loop is to the wrong label
#KT-2423 Fixed
2012-07-23 20:11:27 +04:00
Svetlana Isakova eb82eba121 tests for type inference
#KT-1800 fixed
 #KT-1029 fixed
 #KT-1031 fixed
 #KT-1558 fixed
 #KT-1944 fixed
 #KT-2179 fixed
 #KT-2294 fixed
 #KT-2320 fixed
 #KT-2324 fixed
2012-07-20 19:34:51 +04:00
Alexander Udalov 2ac70ee35f KT-2457 Verify error when comparing not null value with null in when
backend-side changes
2012-07-20 17:43:38 +04:00
Dmitry Jemerov 40e4e32eab object declarations need trait methods to be generated too (KT-2399) 2012-07-12 17:45:41 +02:00
Dmitry Jemerov de3f5d0e2d avoid coercing 'this' to a supertype; cleaner handling of stackvalues for 'this' and 'super' (KT-2395) 2012-07-11 16:59:01 +02:00
Alex Tkachman 8012725d38 KT-2060 fix 2012-07-11 13:10:54 +03:00
Dmitry Jemerov 1fe9c291f1 ugly and incomplete solution for using correct bytecode instruction when accessing properties inherited from traits (KT-2391) 2012-07-10 21:21:16 +02:00
Dmitry Jemerov 57c1b05684 generate correct cast for arguments of bridge methods (KT-2390) 2012-07-10 19:59:33 +02:00
Alexander Udalov a07954eaac load 'this' instead of $classobj if we're inside class object's constructor
#KT-2384 Fixed
2012-07-09 22:16:19 +04:00
Alexander Udalov 06f2cbc891 object literals now capture expressions from 'by' delegate specifier
#KT-2224 Fixed
2012-07-09 14:51:10 +04:00
Alex Tkachman b989c701e9 patch from audalov for KT-1959 2012-07-05 15:49:24 +03:00
Evgeny Gerashchenko 77df57c150 Replaced jdk-headers with jdk-annotations everywhere. 2012-07-03 13:36:58 +04:00
Andrey Breslav ac06825f08 jet.Any: modality and constructor straightened 2012-06-26 23:13:53 +02:00
Evgeny Gerashchenko 95249099eb KT-2279 Setter generated for abstract var is not abstract
#KT-2279 fixed
2012-06-20 19:15:41 +04:00
Evgeny Gerashchenko 86c8e4bf18 Tests for KT-1714 Reference to function is generated with private getter method
#KT-1714 fixed
2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko 9f45e7cc08 Fixed visibility generated by backend for internal members. Now they are public in JVM, but have special flag in annotation. 2012-06-16 14:36:06 +04:00
Natalia.Ukhorskaya 4826723c78 Add check for syntactic errors when analyzing files with error checking 2012-06-14 17:38:42 +04:00
Dmitry Jemerov ba76e1467c correct argument index for object that has outer this and closure arguments
#KT-1737 Fixed
2012-06-09 16:20:11 +02:00
Dmitry Jemerov 0a05197454 remove attempt to optimize using 'if' statement as the last one in a loop which created far more problems that it fixed
#KT-1978 Fixed
2012-06-09 15:14:33 +02:00
Dmitry Jemerov c9125d3f59 correctly call properties on annotation classes
#KT-1932 Fixed
2012-06-09 14:48:04 +02:00
Dmitry Jemerov 102f5c60be generating the body of the finally clause _four_ times is one time too many
#KT-1688 Fixed
2012-06-08 19:21:41 +02:00
Dmitry Jemerov 9eb2dd4bfe test for fixed KT-1721 2012-06-08 18:51:03 +02:00
Dmitry Jemerov 803a5e5b65 test for fixed KT-1891 2012-06-08 18:45:42 +02:00
Dmitry Jemerov 2e14454391 test for fixed KT-1439 2012-06-08 18:45:42 +02:00
Dmitry Jemerov f945ec6a27 return value of try/catch/finally changed according to frontend changes
#KT-910 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 8baae95531 if a shared variable is a result of the block, release it only after it has been put
#KT-2151 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 56310599a5 for completely empty if statement, put on stack the Tuple0 instance, not its condition (KT-2062)
#KT-2062 Fixed
2012-06-08 18:45:40 +02:00
Dmitry Jemerov 5c21564b05 test for already fixed KT-1611 2012-06-08 18:45:39 +02:00
Dmitry Jemerov 5b987ccc15 when calling function stored in local variable as unary operation, don't forget to push function instance (KT-1953)
I'm sure that there are similar cases that still don't work;  please let me know if you find any
#KT-1953 fixed
2012-06-06 17:17:44 +02:00
Dmitry Jemerov 6b84f5d31a correctly coerce values in StackValue.store() (KT-1397)
#KT-1397 fixed
2012-06-06 13:43:34 +02:00
Stepan Koltsov 9a71cb5e72 CodeGenTest: check result and print code in any blackbox
... and fix test
2012-06-05 22:56:25 +04:00