Commit Graph

51 Commits

Author SHA1 Message Date
Andrey Breslav 5a49b6fda5 Loading classes with wrong ABI version as Java classes 2014-01-15 16:16:20 +04:00
Natalia Ukhorskaya f2f1a1313d Add jdk jars to kotlin classpath
#KT-4214 Fixed
2013-12-26 13:50:10 +04:00
Alexander Udalov d6e1af645f Upgrade ABI version after objects refactoring 2013-12-02 19:56:17 +04:00
Mikhael Bogdanov 8533fd64ff Compiler inline on/off flag 2013-12-02 18:30:42 +04:00
Mikhael Bogdanov 9037449313 Inline flag calculation through inline annotation 2013-11-26 12:53:07 +04:00
Evgeny Gerashchenko d937909ebf Separated test data depending on target platform (JS/JVM) 2013-11-21 17:37:36 +04:00
Evgeny Gerashchenko f06e46951f Separated ScriptTest from other cli tests. 2013-11-21 17:37:36 +04:00
Evgeny Gerashchenko 46879e5a26 Moved args into test data of cli tests. 2013-11-21 17:37:35 +04:00
Zalim Bashorov 0d322fe8bc K2JS: add ed outputPrefix and outputPostfix compiler arguments to K2JSCompiler. 2013-10-24 19:06:06 +04:00
Zalim Bashorov 5a28f4e158 Added support project settings in old kotlin2js compiler and made minor refactoring. 2013-10-24 18:36:59 +04:00
Alexander Udalov dd50438c78 Deserialize annotations on property setter parameters 2013-10-22 23:08:34 +04:00
Zalim Bashorov 0877dfc1bd CLI: added "-printArgs" arguments to commandline compiler. 2013-10-16 17:39:49 +04:00
Zalim Bashorov 0901c98ff8 CLI: move *CompilerArguments classes to cli-common module. 2013-10-16 17:39:48 +04:00
Alexander Udalov 806d264771 Write full synthetic method signature for annotated property
This will be needed to support annotated extension properties, since they have
the same name but different signatures
2013-10-16 14:59:36 +04:00
Andrey Breslav 7123905e96 Support for "builtins/stubs" mode removed from cli 2013-10-09 19:16:43 +04:00
Andrey Breslav 9391fa79c3 CLI help text changed 2013-10-08 21:52:08 +04:00
Alexander Udalov e8d4aae48b Minimize usages of JvmClassName.getFqName() 2013-10-04 18:32:41 +04:00
Alexander Udalov fdc631d595 Increase ABI version after changes to package fragment names 2013-10-02 17:05:47 +04:00
Alexander Udalov a97bb80216 Serialize FQ names of Kotlin classes
This helps to avoid a nasty hack with loading inner Kotlin classes in JDR,
which makes it a bit easier to 'lazify' JDR, since now the container of a
Kotlin class is no longer required to be resolved eagerly before resolution of
the class itself
2013-09-30 22:43:18 +04:00
Andrey Breslav 9fef0c8650 Support '-suppress warnings'
#KT-3319 In Progress
2013-09-24 06:58:39 -07:00
Evgeny Gerashchenko dcfeea4029 Removed IDE templates support from compiler. 2013-09-17 18:09:59 +04:00
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