Evgeny Gerashchenko
c60797e306
Rebuilding dependants fully only when constants/inline functions changed. This is not 100% precise, but it is faster. It is a compromise until we implement preciser incremental compilation.
2015-01-19 15:36:57 +03:00
Evgeny Gerashchenko
72687758a5
Rebuilding dependent modules.
2015-01-19 15:36:56 +03:00
Evgeny Gerashchenko
00f2ba5124
Test with Java and Kotlin changed simultaneously.
2015-01-19 15:36:56 +03:00
Evgeny Gerashchenko
967f470b16
Added multi-module tests on incremental compilation.
...
Changing code wasn't required, Java's incremental caches were enough.
2015-01-19 15:36:55 +03:00
Evgeny Gerashchenko
2b438a286f
Updated test data according to changes in IDEA.
2015-01-16 20:19:37 +03:00
Evgeny Gerashchenko
c6c3e5a4c6
Updated test data according to JPS. Behavior is still wrong, but it is work in progress on IDEA side.
2014-12-20 15:06:53 +03:00
Evgeny Gerashchenko
7924568355
Added test for KT-6454 Obsolete class-files for lambdas aren't removed from output when 'inline' annotation is added to function.
...
The bug is reproducible only for non-incremental compilation mode, which
will be deprecated soon.
#KT-6454 can't reproduce
2014-12-16 16:33:41 +03:00
Evgeny Gerashchenko
4e702e34f0
Fixed incremental compilation, when removing all callables from file.
2014-12-10 14:28:21 +03:00
Evgeny Gerashchenko
153272a189
Updated test data for tests according to change in JPS.
...
These tests were not deterministic. Now they are. When package facade's sources change (files added to package, etc), all package gets recompiled now. Behavior is tolerable, but not very desirable.
2014-12-09 12:08:03 +03:00
Evgeny Gerashchenko
9c880de735
Compilation errors are rendered to log without "Kotlin:ERROR:" prefix and without path to file. Sometimes javac adds path to file, sometimes doesn't. This had led tests to fail on some platforms.
2014-11-26 18:42:24 +03:00
Evgeny Gerashchenko
19ad2406ff
Moved test data into common directory.
2014-11-26 14:32:12 +03:00
Evgeny Gerashchenko
adcd4d4ca0
Fixed case of file name.
2014-11-26 14:32:11 +03:00
Michael Bogdanov
5412a67d29
Generate static backing fields for properties in object
...
#KT-4973 Fixed
2014-11-20 10:20:31 +03:00
Evgeny Gerashchenko
1a374efcd1
Fixed KNPE when inline functions/constants are completely removed.
2014-11-12 16:25:01 +03:00
Evgeny Gerashchenko
155775f925
Minor. Added test when compilation error is introduced and fixed in other package.
2014-11-07 14:52:02 +03:00
Evgeny Gerashchenko
1e2c4659cd
Committed wrong behavior of Java+Kotlin incremental compilation (Java files recompiled twice).
2014-11-07 14:52:01 +03:00
Evgeny Gerashchenko
7f49a8c159
Added tests with redeclaration. The behavior is correct (compilation error), while diagnostic message is not ideal.
2014-11-07 14:52:01 +03:00
Evgeny Gerashchenko
21105fcae4
Tests with SAM conversions.
2014-11-07 14:51:59 +03:00
Evgeny Gerashchenko
3237791433
Added tests with adding method to superclass.
2014-11-07 14:51:58 +03:00
Evgeny Gerashchenko
86dd7ec880
Tests: converting Java to Kotlin and back.
2014-11-07 14:51:57 +03:00
Evgeny Gerashchenko
335c3f4506
Tests with renamed method, incremental compilation between Kotlin and Java.
2014-11-07 14:51:56 +03:00
Evgeny Gerashchenko
9234ef3803
Tests with constants, incremental compilation between Kotlin and Java.
2014-11-07 14:51:54 +03:00
Evgeny Gerashchenko
70331e3b82
Initial support for kotlin-java interop in incremental compilation.
2014-11-07 14:51:53 +03:00
Evgeny Gerashchenko
0f8dd59bcf
Minor. Expanded test.
2014-11-07 14:51:51 +03:00
Evgeny Gerashchenko
954a011721
Added incremental cache format versioning.
2014-10-16 22:01:45 +04:00
Alexander Udalov
c30aa7db84
Include package part name to top level closure names
...
#KT-4234 Fixed
#KT-4496 Fixed
2014-09-26 10:22:25 +04:00
Alexander Udalov
c57441b51b
Use '$' instead of '-' in package part class names
...
Otherwise some tools break (e.g. CheckMethodAdapter in ASM, used in generic
signature writer) because they expect class names to be Java identifiers.
Some tests fixed, some will be fixed in future commits
2014-09-26 10:22:20 +04:00
Evgeny Gerashchenko
b435904d7f
Fix: not loading ancestor packages from incremental cache.
2014-09-24 16:31:47 +04:00
Evgeny Gerashchenko
853def0a10
Not clearing incremental cache on compilation error.
2014-09-18 16:50:20 +04:00
Evgeny Gerashchenko
35720ff46d
Supported methods with default arguments in partial package compilation.
2014-08-29 16:31:29 +04:00
Evgeny Gerashchenko
3226093fa6
Fixed redeclaration from incremental compilation. Added workaround for JPS bug.
2014-08-29 16:31:29 +04:00
Evgeny Gerashchenko
479711e812
Moved current incremental compiler test data into subdirectory.
...
Tweaked test generator to avoid creating test methods for parent directory of tests.
2014-07-10 15:05:20 +04:00
Evgeny Gerashchenko
42cba1cc3c
Ignoring not static final fields.
...
Added tests with class object of trait and val inside object.
2014-07-07 17:41:39 +04:00
Evgeny Gerashchenko
f8ac8f727e
Merged tests with inline functions in class and in package.
...
Now this test also checks situation when several class files with inline functions are emitted from one source file.
2014-07-07 17:41:38 +04:00
Evgeny Gerashchenko
ca647a9ff4
Expanded test with constants unchanged. Now it has class-level and package-level constants mixed in one file.
2014-07-07 17:41:38 +04:00
Evgeny Gerashchenko
11af8ed616
Added test with constant in class object.
2014-07-07 17:41:37 +04:00
Evgeny Gerashchenko
aa9f7a73c9
Inline function changed – rebuild all chunk.
2014-07-07 17:41:36 +04:00
Evgeny Gerashchenko
7ef5c75f26
Supported inlining functions which access properties via field.
2014-07-07 17:41:36 +04:00
Evgeny Gerashchenko
2259cc605f
Preserving annotations in incremental compilation.
2014-07-07 17:41:35 +04:00
Evgeny Gerashchenko
6c8a9ba378
Basic detection for bytecode of inline functions in incremental compilation.
...
Basic rule is: bytecode of inline function changed -> recompile everything.
2014-07-07 17:41:35 +04:00
Evgeny Gerashchenko
6501066274
Added hacky checks for accessing compiled functions from our module via package part instead of facade.
...
#KT-4590 fixed
2014-07-07 17:41:34 +04:00
Evgeny Gerashchenko
ca4ac43add
Added tests with class referenced from proto.
2014-06-24 22:18:19 +04:00
Evgeny Gerashchenko
8479ca76b0
Added clearing proto data in incremental cache.
2014-06-24 22:18:18 +04:00
Evgeny Gerashchenko
3ee92da6f0
Added test with all types of constants.
2014-06-24 22:18:14 +04:00
Evgeny Gerashchenko
111feb2574
Added tests with removing files and changing packages.
2014-06-24 22:18:11 +04:00
Evgeny Gerashchenko
e1f6fc55c5
Writing/reading constants map fully to avoid hash collisions.
2014-06-19 19:25:42 +04:00
Evgeny Gerashchenko
7f1e99ecfd
Added test with class signature unchanged.
2014-06-19 14:37:08 +04:00
Evgeny Gerashchenko
15d9549477
Minor. Regenerated tests.
2014-06-19 14:22:43 +04:00
Evgeny Gerashchenko
f62842343d
Added tests for removing files from package.
2014-06-18 22:56:40 +04:00
Evgeny Gerashchenko
e89b59a745
Checking for constants values in incremental compiler.
2014-06-18 22:56:37 +04:00