Commit Graph

114 Commits

Author SHA1 Message Date
Andrey Breslav ed95463d1e Map Nothing to java.lang.Void 2013-10-25 15:39:01 +04:00
Alexander Udalov 5539a29439 Minor, extract method in CodegenTestCase 2013-10-16 14:59:37 +04:00
Evgeny Gerashchenko ec5331057a Removed unnecessary final on local variables. 2013-03-13 14:12:50 +04:00
Alexander Udalov e8088ec6a7 Write correct InnerClasses attribute to class files
InnerClasses should contain entries for every inner and every outer class,
according to the JVMS

 #KT-3390 Fixed
2013-03-12 14:57:14 +04:00
Alexander Udalov a61b3ec461 Move multi-file codegen testData to boxMultiFile/
There'll be an auto-generated test over this directory
2013-02-11 02:01:42 +04:00
Evgeny Gerashchenko 52b7ee6447 Happy new year 2013! 2013-01-28 18:58:08 +04:00
Alexander Udalov 86938f57b1 Remove codegen tests with Java, move testData to boxWithJava/
There'll be a single generated test class like
BlackBoxCodegenTestGenerated
2013-01-28 18:20:37 +04:00
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00
Alexander Udalov 9bf73cf4b3 Extract static functions to CodegenTestUtil
Add Nullable/NotNull annotations
2013-01-28 18:18:08 +04:00
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 74467df3ef Sort out blackBox*() methods
- get rid of blackBox(), extract tests into files
- delete single-file usages of blackBoxMultiFile()
- inline some other blackBox methods
- suppress exception in blackBoxWithJava()
2013-01-25 23:06:42 +04:00
Alexander Udalov de37f73c8d Remove tests on RTTI
It was never implemented
2013-01-24 21:12:27 +04:00
Alexander Udalov 99827d10a8 Rename *.jet -> *.kt in codegen tests 2013-01-24 21:12:27 +04:00
Nikolay Krasko 44dcdde513 Dispose GeneratedClassLoader 2013-01-22 16:05:23 +04:00
Alexander Udalov ffd62eb80e Refactor ClassGenTest
Initialize environment with JDK_ONLY in setUp(), allowing to quickly launch
tests without compilation of stdlib.

Remove duplicate/unneeded/commented out tests
2013-01-18 18:04:09 +04:00
Natalia.Ukhorskaya 47abdcf565 Rename namespace class to {package.name}Package
Conflicts:

	compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JavaElementFinder.java
2013-01-15 19:45:06 +04:00
Evgeny Gerashchenko e03eaf6dde Removed @author javadocs from code. 2012-12-28 17:44:31 +04:00
Alexander Udalov 288e3a7b40 Cast arguments to proper types when generating delegates
Also minor refactoring in a couple places to adopt this style
2012-10-30 16:47:50 +04:00
Sergey Mashkov edb8797fa6 KT-2987 java.lang.AbstractMethodError/java.lang.NoSuchMethodError for delegated class by parameterized parent
#KT-2987 Fixed
2012-10-25 16:26:58 +04:00
Kirill Berezin 194ef38ba3 KT-2477 fake overrides now get INHERITED visibility in order to maximize visibility according to inherited traits\classes 2012-09-25 19:17:55 +04:00
Alex Tkachman ee784eb2fe some debug print commented 2012-09-23 18:04:14 +02:00
Alex Tkachman be09227569 generation of inner classes inside object literal. #KT-2607 fixed
on the way ClassCodegen and MemberCodegen refactored out and injectors regenerated
2012-09-20 17:57:07 +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
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
Alex Tkachman fb4d6610a8 unification of accessable descriptor lookup between functions and properties 2012-09-12 09:20:10 +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
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
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
Kirill Berezin b84f068c33 kt-1760 delegation to java iface:
- removed codegen's unnecessary lookup for a declaration
- skipped class' only supertype (if any) methods when delegating
2012-08-30 14:03:43 +04:00
Alex Tkachman 10a47ea86f big codegen rewrite 2012-08-27 17:43:03 +03:00
Andrey Breslav c0c2ca0ac2 Report errors when iterator() returns a nullable type 2012-08-24 19:49:33 +04:00
Alex Tkachman fb5bf2f8c6 local classes without closures 2012-08-22 18:40:37 +03:00
Alex Tkachman 68e436610c KT-1535 test for obsolete issue 2012-08-06 10:55:37 +03:00
Alex Tkachman 532c5b791c KT-454 test for obsolete issue 2012-08-06 10:47:51 +03:00
Alex Tkachman eaddf5db2d KT-2480 test for obsolete issue 2012-08-06 10:42:23 +03:00
Alex Tkachman 3f4a197184 KT-2417 fix: proper handling of !in 2012-08-06 10:33:27 +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 e8debde256 test for unreproducable KT-2288 2012-08-03 12:03:36 +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
Andrey Breslav bf503e9a4b KT-2363 Drop secondary constructors
#KT-2363 Fixed
2012-07-19 19:53:06 +04: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