Commit Graph

20 Commits

Author SHA1 Message Date
Denis Zharkov 6c0cd70a22 Introduce PureReifiable annotation
It prevents reporting unsafe substitution warning on expressions
like 'arrayOf(arrayOf(""))'
2016-01-22 19:17:22 +03:00
Dmitry Jemerov 52acd34a61 fix Maven build 2016-01-19 10:54:04 +01:00
Alexander Udalov 64b60718e3 Finish off old deprecated function/extension function classes
This reverts commit d14e5b8a72.
2015-06-10 14:41:57 +03:00
Alexander Udalov d14e5b8a72 Restore and deprecate Function{n}/ExtensionFunction{n} classes for easier migration
Users' Java code will not break in common cases (when passing functions to
Kotlin), and deprecation warnings will be reported.

Provide an inspection with a quick fix which allows to replace deprecated
function class usages to the new classes. Include this fix to the "code
cleanup" action
2015-05-28 01:20:05 +03:00
Alexander Udalov 45c28abfee Keep built-in metadata for reflection interfaces
Reflection interfaces (interfaces in kotlin.reflect.* in core/builtins/) are
now fully considered as built-ins and can be accessed via KotlinBuiltIns. This
increases runtime size by ~20kb, but only because KotlinBuiltIns is static and
is therefore constructed only via resource loading from the compiler classpath
at the moment. As soon as it's possible to inject KotlinBuiltIns to the
particular resolution process, the metadata on JVM will be loaded via standard
annotation mechanism (kotlin.jvm.internal.KotlinClass/KotlinPackage) and wasted
runtime space will be reclaimed
2015-05-26 14:27:38 +03:00
Alexander Udalov 2f001ca696 Pack built-ins metadata to kotlin-runtime Maven artifact
This fixes reflection usage against Maven's kotlin-reflect
2015-03-18 14:38:26 +03:00
Alexander Udalov 9d6f4e99a1 Move reflection interfaces to module 'builtins'
They are considered to be built-ins everywhere anyway
2015-03-16 20:29:39 +03:00
Alexander Udalov eced3003ad Introduce kotlin-reflect Maven artifact 2015-03-07 02:31:00 +03:00
Alexander Udalov 57d37a3860 Extract reflection implementation to module runtime.jvm 2014-11-11 18:35:40 +03:00
Alexander Udalov c7a7f31e82 Introduce module 'reflection', move KFunctionN to it
Metadata for KFunction classes is now longer serialized along with built-in
classes. This effectively means that it's no longer possible to find KFunction
classes via dependency on built-ins. There should be a kotlin-runtime library
in the specified classpath for reflection types to be resolvable.

A lot of tests were moved and changed, because tests on callable references
require stdlib in classpath from now on
2014-05-19 19:50:57 +04:00
Alexander Udalov dc66561ca5 Create module 'builtins', move 'runtime' -> 'runtime.jvm'
'builtins' will be used for platform-independent core built-in definitions,
'runtime.jvm' for things that should be present at runtime in order for Kotlin
code to execute correctly on JVM

ProgressionUtil goes to 'builtins' right now because progression iterators
depend on it, but should be rewritten to Kotlin later
2014-01-27 18:33:47 +04:00
Alexander Udalov a59565bfa8 Rewrite PropertyMetadata to Kotlin 2014-01-27 18:33:44 +04:00
Leonid Shalupov abcf5616f7 KT-3725 attach empty javadocs to all artifacts except compiler and runtime 2013-07-08 02:25:04 +04:00
Leonid Shalupov d0765d5e4a KT-3725 build sources.jar for all maven modules 2013-07-08 00:56:11 +04:00
Leonid Shalupov 54fa1f9fbc libraries/runtime: copy runtime module sources locally to help IDEA find them 2012-04-30 20:59:52 +04:00
Leonid Shalupov 3813e0a886 maven version = 0.1-SNAPSHOT 2012-04-12 13:03:15 +04:00
Leonid Shalupov d1246abbf1 maven: get rid of intermediate poms: examples, docs, tools (artifacts garbage) 2012-04-12 09:33:48 +04:00
Leonid Shalupov 863042da27 maven artifacts: runtime, stdlib -> kotlin-runtime, kotlin-stdlib 2012-04-10 22:39:11 +04:00
Leonid Shalupov 6d47a3c2dc libraries/tools: compile kotlin runtime in maven build 2012-04-09 22:31:14 +04:00
James Strachan a40f9ee9b1 refactored the maven project structure so that things are in a simpler tree structure to avoid folks getting lost 2012-04-05 16:20:06 +01:00