Commit Graph

122 Commits

Author SHA1 Message Date
Alexander Udalov bcfb5f3b09 Rewrite Java resolve to use static class scope instead of synthesized packages
#KT-4149 Fixed
 #KT-4839 Fixed
2014-09-09 20:42:36 +04:00
Andrey Breslav 1933e30905 Test data split between compiledJava tests and compiledKotlin tests
Basically, this commit splits test data from the from java-txt-kt to two pairs java-txt and kt-txt.
This commit leads to some duplication in test data.
This is temporary: in the platform types branch the test data for LoadJava tests will be changed dramatically, so duplication will go away
2014-08-21 12:22:22 +04:00
Alexander Udalov 5dc37217c8 Remove Object from supertypes in LoadJava testData 2014-07-25 21:19:38 +04:00
Natalia Ukhorskaya 89d99d2848 Remove toInt() from rendering IntValue 2014-03-13 10:07:17 +04:00
Natalia Ukhorskaya 17259a052e Write constant initializer for java properties 2014-03-13 10:07:11 +04:00
Alexander Udalov f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +04:00
Andrey Breslav b120a5150c Foo.class never yields null in Java annotation arguments 2014-01-14 16:37:51 +04:00
Andrey Breslav 84709ed363 Annotation methods never return null 2014-01-14 16:37:51 +04:00
Andrey Breslav bf20c3a734 Annotation constructor parameters are never nullable 2014-01-14 16:37:51 +04:00
Andrey Breslav 65d90e18a2 Use DescriptorRenderer to render annotations everywhere 2014-01-14 16:37:50 +04:00
Evgeny Gerashchenko e175ebf60a Rendering package FQ names instead of short names. 2013-12-17 20:28:56 +04:00
Alexander Udalov 5a4cc1e2fe Put enum entries into enum class in JDR 2013-12-02 19:56:07 +04:00
Alexander Udalov 83ef095093 Change enum entry resolution strategy in JDR
Enum entry is now resolved into a class with a class object, which inherits
from the former class, as in the other parts of the compiler. Create a special
class EnumEntrySyntheticClassDescriptor which will be reused in deserialization
later
2013-12-02 19:56:06 +04:00
Pavel V. Talanov 959ab2b20c Enum class objects values and valueOf functions have kind SYNTHESIZED 2013-11-12 14:15:51 +04:00
Alexander Udalov c0a4d8d24f Support Class<?> as annotation arguments in java 2013-09-06 23:26:27 +04:00
Alexander Udalov ccff9e38fe Rename LoadJava annotations test data 2013-09-06 23:26:26 +04:00
Alexander Udalov e62a2bbf2f Support any constant expressions as annotation arguments 2013-09-04 21:55:10 +04:00
Natalia.Ukhorskaya e792238cbe Boolean as annotation parameter (java) 2013-08-02 18:59:27 +04:00
Michał Sapalski 7deec28b9c Adjusted tests to the new DescriptorRenderer behaviour 2013-04-29 15:44:07 +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
Evgeny Gerashchenko f23327458f Wrapped annotations test data so it will be processed by namespace comparator correctly. 2013-03-12 20:40:19 +04:00
Evgeny Gerashchenko 0f5de451ec Moved all but one test cases from AnnotationJDRTest to loadJava. 2013-03-12 20:40:19 +04:00