Alex Tkachman
eaf9a79420
correct handling of delegate properties #KT-2786 fixed
2012-09-20 17:54:40 +03:00
Alexander Udalov
dadc97d29f
Fix maven build
...
Do not create class objects for classes which come from Java.
2012-09-20 18:10:19 +04:00
Alexander Udalov
37fd9cea08
Place inner enum into its parent's class object
...
#KT-2771 In Progress
ClassifierCollector now collects all enum declarations inside non-static
classes. After all declarations are done, it processes these enums: creates
a class object if it's not present, reports errors on each enum if a class
object is not allowed, and puts every enum into this class object otherwise,
recording this fact to trace.
2012-09-20 15:02:13 +04:00
Svetlana Isakova
b081615e59
added tests for collections
2012-09-20 14:42:39 +04:00
Alex Tkachman
b022eec0fa
call correct methods String.valueOf/StringBuilder.append in case of byte/short. #KT-2794 fixed
2012-09-20 11:46:40 +03:00
Andrey Breslav
5eaa5b396b
Removing usages of tuples from test data
...
(KT-2358 Drop tuples)
#KT-2358 In progress
2012-09-18 20:27:09 +04:00
Andrey Breslav
dee5152f9b
Supporting Unit.VALUE, to replace #()
...
#KT-2358 In Progress
2012-09-18 20:27:09 +04:00
Alex Tkachman
0ffc8f355b
attempt to fix KT-2251
2012-09-18 14:25:09 +03:00
Alex Tkachman
8e463ac0ac
equals generation for data classes
2012-09-17 18:48:17 +03:00
Evgeny Gerashchenko
6e62212727
Replaced sure() invocations with '!!' operator in codegen tests.
2012-09-17 18:00:21 +04:00
Alex Tkachman
8c823486d7
hashCode generation for data classes
2012-09-17 15:52:23 +03:00
Alex Tkachman
a4e272d7c6
optimization of toString for primitive types and "$expr"
...
- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
2012-09-17 13:00:02 +03:00
Alex Tkachman
655a13aef6
IntrinsicsTest regenerated
2012-09-17 09:45:37 +03:00
Alex Tkachman
3b96624c81
small optimizaton of toString for primitive types (no boxing needed)
2012-09-17 09:07:08 +03:00
Alex Tkachman
58af365eb2
toString() method for data classes and fake implementation for hashCode/equals
2012-09-16 15:56:48 +03:00
Alex Tkachman
e317764a88
correct access flags for package private (coming from java) #KT-2781 fixed
2012-09-16 10:08:36 +03:00
Natalia.Ukhorskaya
c5db89e534
Generated field for classObject is now final
...
EA-38323 Fixed - Illegal field modifiers in class
2012-09-14 16:41:13 +04:00
Evgeny Gerashchenko
c33b880a57
EA-39177 - CCE: ArrayIterator.generate
...
If local variable is auto-casted to array, it should be iterated as array.
2012-09-14 16:12:16 +04:00
Svetlana Isakova
0d1790a4f4
alternative signature applies for names
...
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Alex Tkachman
a8627a56ef
test for obsolete KT-2663
2012-09-13 16:28:00 +03:00
Alex Tkachman
0a2f808ec0
test case and fixes for object and classes inner for enum entry
2012-09-12 20:48:12 +03:00
Alex Tkachman
ca65574bce
no need for context lookup of enclosing singletons #KT-2695 fixed
2012-09-12 19:41:26 +03:00
Alex Tkachman
6c4102bf23
simple case (no closures) of class level objects #KT-2398 fixed
2012-09-12 17:35:51 +03:00
Alex Tkachman
79c04038fb
accessor for private constructors #KT-2716 fixed
...
also on the way done small refactoring of JetTypeMapper
- few code duplicates replace by methods
- mapToCallableMethod(ConstructorDescriptor) introduced
2012-09-12 10:31:48 +03:00
Alex Tkachman
fb4d6610a8
unification of accessable descriptor lookup between functions and properties
2012-09-12 09:20:10 +03:00
Alex Tkachman
6a0e4d1593
name clash when several files of the same package has different paths but the same name #KT-2713 Fixed
2012-09-11 17:05:23 +03:00
Alex Tkachman
ec549895e8
fix for NPE when lookup names in objects/closure in constructors #KT-2719 Fixed
2012-09-11 16:16:09 +03:00
Alex Tkachman
4eea0cafb9
test for obsolete KT-2626
2012-09-11 15:51:16 +03:00
Alex Tkachman
53f145b533
optimization of delegates by val property
2012-09-08 09:34:02 +03:00
Alexander Udalov
2c84389a45
Codegen for "componentN" functions for data classes
2012-09-07 19:00:02 +04:00
Andrey Breslav
b46187a560
KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
...
#KT-2739 Fixed
2012-09-07 18:24:22 +04:00
Andrey Breslav
7b01ce5acb
Test for KT-2532 Exception on trying to override delegated member.
...
#KT-2532 Fixed
2012-09-07 14:49:02 +04:00
Kirill Berezin
6e951685de
KT-2657 Fixed incorrect stack values order in delegation methods codegen #KT-2657 Fixed
2012-09-06 23:54:14 +04:00
Kirill Berezin
82a5beddea
do not copy overrides for the delegated methods, it causes failure of delegation to traits which extend other traits
2012-09-06 20:27:43 +04:00
Kirill Berezin
1061e1ef69
do not generate delegates when the class already has such method either declared or delegated (report an ambiguity in this case)
...
Merge conflict resolved by committer
2012-09-06 20:27:43 +04:00
Svetlana Isakova
e72c3d79f8
changed ConfigurationKind in tests
...
from JDK_ONLY to JDK_AND_ANNOTATIONS
(after collections mapping added)
2012-09-05 18:55:18 +04:00
Svetlana Isakova
02cf0258cb
move test
2012-09-05 18:55:17 +04:00
Svetlana Isakova
7d37df5f38
tests changes after collections mapping
2012-09-05 18:55:16 +04:00
Andrey Breslav
6de633d0cb
Fixing compilation on some versions of javac
2012-09-05 14:39:37 +04:00
Andrey Breslav
4dd0b27e93
JVM Back-end does not handle complex patterns any more
...
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Andrey Breslav
a7f62a7d6e
Test uncommented and fixed
2012-09-05 14:18:40 +04:00
Andrey Breslav
fbc0ca1b77
Gererated tests now check that all the relevant directories are present
...
We only checked test data files before
2012-09-05 14:18:40 +04:00
Alex Tkachman
a54776196a
fixed bug with compilation of this/outer. no need to check context hierarchy for superclasses except case of super call.
2012-08-31 17:42:35 +03:00
Alex Tkachman
737b794935
fix for KT-2711 wrong check on descriptor being integral range
...
method added to JetStandardLibrary to get all integral range descriptors
#KT-2711 fixed
2012-08-31 13:49:20 +03:00
Andrey Breslav
ce1320bab3
Multi-declarations supported in all flavours of for loops
...
(KT-2635 Support iteration with multiple range variable in JVM back-end)
#KT-2635 Fixed
2012-08-31 12:52:47 +04:00
Andrey Breslav
f1c4ab7188
Fix for RangeTo intrinsic for the case of LongRange
2012-08-31 12:52:46 +04:00
Andrey Breslav
e8e5d3a87d
Val-capturing tests for for-loops over arrays
2012-08-31 12:52:46 +04:00
Andrey Breslav
2a1307e040
For-loop over long range test
2012-08-31 12:52:46 +04:00
Alex Tkachman
bf892870e1
fix for multiple evaluation of expression on multi var declaration
2012-08-31 11:45:56 +03:00
Alex Tkachman
5038c906b2
fixed critical bug with receiver used in constructor, field initializer
2012-08-31 08:20:51 +03:00