Commit Graph

22 Commits

Author SHA1 Message Date
Alexander Udalov 63aacc416f Extract classPathInTheSameClassLoader into a separate test
- class loader is now always created as if classPathInTheSameClassLoader
  = false, which was the case of every codegen test except kt2781, which
  is extracted into a separate file
- testNoClassObjectForJavaClass() is moved from StdlibTest since it has
  a custom createClassLoader() which doesn't work well in a java-interop
  case
- get rid of generateClassesInFileGetState
- several similar methods are inlined
2013-01-28 18:16:40 +04:00
Alexander Udalov df5b809b46 Refactor CodegenTestCase
- prohibit main(Array<String>) in favor of box(): String
- move all script-related code to ScriptGenTest
- remove unused environment-creating methods
- inline trivial methods & other minor stuff
2013-01-25 23:06:43 +04:00
Alexander Udalov 0df71bd696 Refactor codegen tests
- initialize environment only once in setUp()
- add comments on why some tests are disabled
- modify and rename some tests
- re-enable now working tests
- extract some tests into files with box()
- remove useless 'throws' declarations and commented code
2013-01-24 21:12:27 +04:00
Nikolay Krasko 44dcdde513 Dispose GeneratedClassLoader 2013-01-22 16:05:23 +04:00
Alexander Udalov 4305a009df Add regression test for KT-2673
#KT-2673 Obsolete
2013-01-18 21:27:07 +04:00
Evgeny Gerashchenko e03eaf6dde Removed @author javadocs from code. 2012-12-28 17:44:31 +04:00
Pavel V. Talanov 7bb7445c57 Fix for invoking abstract method in enum 2012-11-19 20:18:45 +04:00
Natalia.Ukhorskaya 4db732c11b KT-2948 Assertion fails on a local enum
#KT-2948 Fixed
2012-10-23 19:23:16 +04:00
Natalia.Ukhorskaya 32d707ca9b Inner Java Enums
KT-2691 Fixed
 KT-2686 Fixed
2012-09-24 12:33:58 +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
Alex Tkachman 0a2f808ec0 test case and fixes for object and classes inner for enum entry 2012-09-12 20:48:12 +03:00
Natalia.Ukhorskaya 3d9ad3f6cb ExpressionCodegen: take EnumEntry type from containingDeclarationDescriptor
JavaDescriptorResolver: pass to propertyDescriptor correct value of isObject parameter
2012-08-22 14:32:01 +04:00
Alex Tkachman ca615aac3d KT-2350 fix: enums with overrides and constructor parameters 2012-08-15 20:25:35 +03:00
Alex Tkachman 813c7d0871 test for obsolete KT-1119 & proper final flag for enum class with entries overriding methods/properties 2012-08-15 16:06:06 +03:00
Alex Tkachman 31db3456ca enum entries which overrides methods 2012-08-15 15:56:34 +03:00
Alex Tkachman 87a8e0a5dc enum classes are never inner 2012-08-15 10:44:33 +03:00
Natalia.Ukhorskaya 98ed261eb3 Fix android build 2012-08-14 12:25:06 +04:00
Alex Tkachman 5947759684 proper compilation of enums 2012-08-13 22:37:27 +03:00
Evgeny Gerashchenko c74ccec0bf Renamed CompilerSpecialMode to ConfigurationKind, gave enum constants more clear names. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 2c58989a47 Moved CompilerSpecialMode enum to compiler-tests, since it is now used only for creating test compiler configurations. 2012-07-07 23:07:19 +04:00
Stepan Koltsov 139e376f7c fix KT-2167 (enum generation)
#KT-2167 fixed
2012-06-02 02:18:29 +04:00
Stepan Koltsov 2d4ad5e408 EnumGenTest
enum geneneration is partially covered in regression tests, it is not very convenient
2012-06-02 02:18:28 +04:00