Commit Graph

1811 Commits

Author SHA1 Message Date
Evgeny Gerashchenko eb7dc87225 Ignore SAM adapters when finding abstract members. 2013-06-25 20:17:42 +04:00
Evgeny Gerashchenko d78f36a780 Minor. Renamed test. 2013-06-25 20:17:42 +04:00
Evgeny Gerashchenko ee9fcff9ca Supported non-literal arguments for SAM adapters. 2013-06-25 20:17:42 +04:00
Evgeny Gerashchenko be02943675 Considering SAM interface FQ name in hash. 2013-06-25 20:17:41 +04:00
Evgeny Gerashchenko 7ef4c8cfa8 Generating SAM wrapper class per source file. 2013-06-25 20:17:41 +04:00
Evgeny Gerashchenko fe77c3edb9 Replaced signed decimal with hex. Eliminated querying canonical path. 2013-06-25 20:16:21 +04:00
Evgeny Gerashchenko cfc99b941a Added test for ambiguous SAM adapters within one class. 2013-06-25 20:16:20 +04:00
Evgeny Gerashchenko 4980dacd33 Supported calls of SAM adapters for constructors. 2013-06-25 20:16:20 +04:00
Evgeny Gerashchenko 5e2c3fcb50 Loading SAM adapters for constructors. 2013-06-25 20:16:20 +04:00
Alexander Udalov 356c32893b Don't use 'iinc' instruction on byte/short/char variables
Android run-time verifier complains when there's any possibility that a
byte/short/char local variable could contain a value not fitting into the
type's limits.
2013-06-25 18:48:28 +04:00
Alexander Udalov 68b0ad53c4 Regression test for KT-24
#KT-24 Obsolete
2013-06-25 18:48:20 +04:00
Alexander Udalov 53cc582040 Minor, use incrementType in for-progression codegen
This doesn't fix anything, just makes it easier to figure out values of what
types are used where. Progression increment is of its own type, which may be
different from asmElementType in case of Byte, Char, Short progressions
2013-06-20 22:23:02 +04:00
Alexander Udalov 8a14b62a23 KT-3574 Assertion error when using ?: in for range
#KT-3574 Fixed

Do not assert that resolvedCall is non-null, since getRangeAsBinaryCall can
return a BinaryCall that doesn't represent a range at all (as specified by the
comment in getRangeAsBinaryCall)
2013-06-20 16:03:00 +04:00
Alexander Udalov ee80e0b8ca Fix loops over progressions near to MAX_VALUE/MIN_VALUE
#KT-492 Fixed

For Byte, Char and Short ranges, promote the type of the loop parameter to int
to avoid overflows. For Int and Long ranges at the end of the loop over a
progression we now check if the new (incremented) value of the loop parameter
is greater than the old value iff increment > 0
2013-06-20 16:03:00 +04:00
Alexander Udalov 33d6347876 Fix loop over a range literal up to MAX_VALUE
#KT-492 In Progress

For Byte, Char and Short explicit casting from Int is removed -- loop parameter
is already stored in an Int anyway. For Int and Long comparison "i < end" at
the beginning of the loop is replaced to "i != end" at the end of the loop + a
special check for an empty loop
2013-06-20 16:02:59 +04:00
Alexander Udalov f1a6d27d35 Minor, prevent infinite loops in range tests 2013-06-20 16:02:59 +04:00
Svetlana Isakova 041505f5b8 report UNRESOLVED_REFERENCE_WRONG_RECEIVER
mentioning candidates with wrong receiver
2013-06-20 13:43:03 +04:00
Svetlana Isakova 342e9ebe7a KT-3563 Compiler requiring java.io.File, and it's unclear why
#KT-3563 fixed
2013-06-20 13:43:02 +04:00
Svetlana Isakova 3cf133bff7 changed local extensions priority
local extensions aren't longer chosen before members
2013-06-20 13:43:01 +04:00
Mikhael Bogdanov 132d74200b Partial fix for KT-3698: properly write field initializer 2013-06-19 17:02:28 +04:00
Mikhael Bogdanov 86f2a6dc69 Tests for not reproduced KT-1770, KT-3001 and KT-3414
#KT-3414 Can't Reproduced
 #KT-3001 Can't Reproduced
 #KT-1770 Can't Reproduced
2013-06-18 14:46:14 +04:00
Mikhael Bogdanov 79cf02ffb9 Fix for KT-3546: Exception when delegating to ArrayList
#KT-3546 Fixed
2013-06-18 13:23:54 +04:00
Mikhael Bogdanov 8ac8798266 Fix for KT-3684: IllegalAccess on a private property of the outer class
#KT-3684 Fixed
2013-06-18 11:20:44 +04:00
Mikhael Bogdanov 52ead7a350 Fix for static - write NEED_SYNTHETIC flag on original descriptor 2013-06-17 17:25:40 +04:00
Mikhael Bogdanov 76d4dcef7f Tests for renamed fields 2013-06-17 15:20:42 +04:00
Mikhael Bogdanov 4feb395dcc Test for static 2013-06-17 15:20:41 +04:00
Mikhael Bogdanov 47fe81471a Synthetic accessors for class object private members
#KT-3338 Fixed
2013-06-17 15:20:34 +04:00
Mikhael Bogdanov 4ef2f997ed Test for not reproduced KT-2700
#KT-2700 Can't Reproduce
2013-06-17 10:39:23 +04:00
Andrey Breslav 325946154b Fix and test RecursiveDescriptorProcessor 2013-06-11 22:09:35 +04:00
Andrey Breslav 77261a5922 Render properties in builtin-classes.txt 2013-06-10 15:33:10 +04:00
Andrey Breslav 3e8031acbd Properly load objects nested into class objects from Java 2013-06-10 15:33:10 +04:00
Nikolay Krasko 27baad64c0 Fix recursion of checking type is supertype during resolving list of supertypes 2013-06-07 17:24:18 +04:00
Nikolay Krasko 994107ee0a Mix class object scope to member resolution scope in lazy resolve 2013-06-07 17:24:17 +04:00
Nikolay Krasko 37cd7eb1ba Allow resolve class declarations in class objects
Use INACCESSIBLE_OUTER_CLASS_EXPRESSION error for marking already resolved elements

 #KT-3261 Fixed
2013-06-07 17:24:17 +04:00
Evgeny Gerashchenko 5965904c0f Fixed filename case. 2013-06-06 21:59:37 +04:00
Evgeny Gerashchenko 203dd93a7a Not loading SAM adapters from compiled Kotlin classes. 2013-06-06 21:35:02 +04:00
Svetlana Isakova ca88a01e1d no 'dangling function literal' check for nested calls 2013-06-06 17:20:10 +04:00
Svetlana Isakova 4e6ec64d9a changed resolution candidates order
for foo()
first try 'this.foo()', then 'foo()'
2013-06-06 17:20:10 +04:00
Svetlana Isakova f41584c7ab tests added
for inference for delegated properties
2013-06-06 16:31:06 +04:00
Alexey Sedunov 3a2e30152a Improve parser recovery for list of value parameters/arguments 2013-06-05 15:49:33 +04:00
Alexey Sedunov 3a635c537e Move JetPsiMatcher with tests to plugin module 2013-06-05 15:03:17 +04:00
Svetlana Isakova 7e564de71a added constraint for package level delegated property 2013-06-04 22:11:43 +04:00
Svetlana Isakova 2337f4b948 bug fix
do not combine receiverInfo with error selectorInfo
2013-06-04 22:11:43 +04:00
Svetlana Isakova ecec6acde8 use explicit type of delegated property as expected
while resolving constraint system for delegated expression
2013-06-04 22:11:43 +04:00
Svetlana Isakova f05f616230 KT-2422 Invalid warning "Condition is always true"
#KT-2422 fixed
2013-05-31 16:29:07 +04:00
Sergey Rostov bcc2c46e99 KDoc wiki links pair matcher and @tags highlighter 2013-05-28 13:05:29 +04:00
Sergey Rostov 12e20378a2 KDoc lexer refactored (got rid of hacks and separate tokens for words). Fixed bug with isInComment(element) detection. 2013-05-28 13:05:28 +04:00
Sergey Rostov 5ff1f746d4 KT-1545, KT-3161 KDoc lexer & parser 2013-05-28 13:05:28 +04:00
Mikhael Bogdanov e96cf045dd KT-3652: Char is converted to Int when used inside string interpolation
#KT-3652 Fixed
2013-05-27 19:33:49 +04:00
Evgeny Gerashchenko de6d5a4a96 Fixed loading SAM interfaces when they inherit abstract methods. 2013-05-21 17:52:15 +04:00