Pavel V. Talanov
4e29aad1c1
Rework invalid abi version reporting
...
KotlinClassFileHeader is aware of older annotations
Psi is not used to report invalid Abi version in CLI
2013-08-26 17:58:44 +04:00
Alexander Udalov
3bd9d9ee32
Regenerate CliTest.wrongAbiVersion test, add readme
2013-08-26 15:59:56 +04:00
Alexander Udalov
6ae81c3ade
Store ABI version along with serialized descriptors
...
KotlinInfo annotation now has a version() field, which should be equal to the
compiler's JvmAbi.VERSION in order for this class to properly load and be used.
Create ErrorReporter class, which has a trace to which it can report errors
(now only related to ABI version). This is done because a dependency of
DeserializedDescriptorResolver from BindingTrace would be confusing.
Implementation of ErrorReporter will probably need to change when we untie
deserialization from java-resolve.
Check if PsiClass is actually a compiled class before trying to load serialized
data from it: otherwise it can be a Java source, as was in wrongAbiVersion()
test, and ASM will fail when trying to read that file. Rewrite the test so that
it now has a compiled Kotlin classes to check against (also include sources to
recompile this binary data later, although it won't probably be needed)
2013-08-23 17:39:20 +04:00
Alexander Udalov
d45889048b
Increase ABI version
...
Due to changes related to FunctionN now being interfaces, FunctionImplN
classes, KFunctionN, callable references
2013-04-22 17:59:32 +04:00
Mikhael Bogdanov
57b161b08a
KT-3500: ClassFormatError: Duplicate method name&signature in class file && KT-3429: Traits override bug
2013-04-17 15:23:33 +04:00
Mikhael Bogdanov
86f5114b7d
Properly resolve descriptors from compiled kotlin
...
Added protected flag for annotation
2013-03-20 20:50:05 +04:00
Evgeny Gerashchenko
1d6836f6aa
Added CLI tests with non-existing paths.
2013-03-04 17:33:59 +04:00
Mikhael Bogdanov
b3ec87f956
ClassObject instance field refactoring
2013-03-04 16:42:55 +04:00
Andrey Breslav
1670831269
Test fixed after ABI version change
2013-02-10 16:06:30 +04:00
Leonid Shalupov
a6468bdff1
fix tests
2013-02-06 13:16:38 +04:00
Andrey Breslav
79e27f2d90
Write vararg flag on value parameters
2013-01-31 22:05:56 +04:00
Andrey Breslav
0dc24bcd92
KT-3268 Check binary format version in the compiler
2013-01-23 20:12:48 +04:00
Andrey Breslav
ebabb3b8af
Error message fixed
2012-12-07 21:54:11 +04:00
Evgeny Gerashchenko
19e283a333
Fixed printing multiple errors in Kotlin signatures.
2012-11-21 14:00:51 +04:00
Evgeny Gerashchenko
5bc2422cb0
Failing with compilation error when Java library has wrong @KotlinSignatureAnnotation.
2012-10-08 21:48:54 +04:00
Alexander Udalov
753ae9e550
Add a compiler parameter to generate not-null parameter assertions
...
Enable/disable assertion generation on parameters in the beginning of
methods accessible from Java
2012-10-08 19:03:36 +04:00
Alexander Udalov
19a6a3f390
Add a compiler parameter to generate not-null assertions on method call sites
...
It is off by default when invoking compiler directly, and on by default when
compiling from IDE
2012-10-08 14:11:52 +04:00
Pavel V. Talanov
d45145b3a7
Use first text range for diagnostics with multiple ranges.
...
Move TEXT_RANGE_COMPARATOR to DiagnosticUtils.
2012-08-01 16:26:13 +04:00
Pavel V. Talanov
714aa04924
KT-2524: Standalone compiler prints diagnostics in random order.
...
#KT-2524 Fixed
2012-08-01 16:26:10 +04:00
Maxim Manuylov
95c9c11d8d
fix test data
2012-07-31 16:43:58 +04:00
Maxim Manuylov
a8cd11f0f9
more tests for compiler
2012-07-31 16:43:56 +04:00
Alex Tkachman
c14a0b3c84
refactoring of script definition api
2012-07-30 09:26:30 +03:00
Alex Tkachman
b8bfde3102
in-memory compilation of standalone script
2012-07-28 20:32:18 +03:00
Andrey Breslav
ba9bf15bc3
Test data updated to meet cli-parser-1.1 output
2012-07-25 12:40:26 +04:00
Evgeny Gerashchenko
03f4ef4a09
Fixed expected output for CliTest.help.
2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko
77df57c150
Replaced jdk-headers with jdk-annotations everywhere.
2012-07-03 13:36:58 +04:00
Evgeny Gerashchenko
206628da82
Added -annotations command-line parameter.
2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko
0dd64837c0
Added checking for unresolved templates in CLI. Added test.
2012-06-20 18:58:24 +04:00
Stepan Koltsov
d0cd37528a
move some cli tests from CompilerSmokeTest to CliTest
2012-06-14 16:05:16 +04:00
Stepan Koltsov
40fe33045d
cli test template
2012-06-14 15:29:17 +04:00