Nikolay Krasko
8f87efc0a2
Update to IDEA 143.116.4
2015-10-12 11:49:47 +03:00
Ilya Gorbunov
7ff0e140f0
Update MockJDK to include Pattern.class required in tests for #KT-7732
2015-10-12 00:13:37 +03:00
Ilya Gorbunov
4ae2491ab6
J2K: Special conversion for java.lang.String methods: String.join (cannot be tested with MockJDK)
...
#KT-7732
2015-10-12 00:13:23 +03:00
Ilya Gorbunov
5914625b53
J2K: Special conversion for java.lang.String methods: more accurate parameter count matching for String.format
...
#KT-7732
2015-10-12 00:13:09 +03:00
Ilya Gorbunov
77a46cab92
J2K: Special conversion for java.lang.String methods: tests for lastIndexOf
...
#KT-7732
2015-10-12 00:12:55 +03:00
Ilya Gorbunov
7a0a23366c
Use PsiExpressionEvaluator to evaluate constant limit value.
2015-10-12 00:12:41 +03:00
Denis Zharkov
3bb8cf1bff
Temporary restore CharSequence.get extension
2015-10-11 19:59:31 +03:00
Denis Zharkov
a76a8fcc3f
Adjust various testData to remove/charAt transformation
2015-10-11 19:59:31 +03:00
Denis Zharkov
6d864e0854
Adjust collection stubs generating to 'remove' transformation
...
See substitutedList* tests in Backend
2015-10-11 19:59:30 +03:00
Denis Zharkov
1c7fa42b86
Adjust js codegen and lib to 'charAt' -> 'get' transformation
2015-10-11 19:59:30 +03:00
Denis Zharkov
6f4579213c
Adjust rendered descriptors after remove/charAt transformations
2015-10-11 19:59:30 +03:00
Denis Zharkov
3733d0e84f
Adjust stdlib to remove/charAt transformation
2015-10-11 19:59:25 +03:00
Denis Zharkov
89ded4ab1d
Implement hack to support both remove() and removeAt() in MutableList<Int>
...
Also add couple of tests about CharSequence.get
2015-10-11 19:57:22 +03:00
Denis Zharkov
742a538aed
Support loading builtin methods from Java with different names
2015-10-11 19:57:22 +03:00
Denis Zharkov
3f5498e9f5
Transform some builtin methods
...
1. CharSequence.charAt -> get
2. ML.remove(Int) -> removeAt,
3. MC.remove(Any?) -> MC.remove(E)
2015-10-11 19:57:21 +03:00
Denis Zharkov
a98d1e1e55
Minor. Convert some properties to functions
2015-10-11 19:57:08 +03:00
Alexander Udalov
c78410855d
Refactor CallableClsStubBuilder, separate functions and properties
2015-10-11 17:10:41 +03:00
Alexander Udalov
9d626ef1d9
Rename KotlinCallable annotation to KotlinFunction
2015-10-11 17:10:40 +03:00
Alexander Udalov
55dd51814f
Don't serialize built-in enum entries
...
These files are never read anyway
2015-10-11 17:10:39 +03:00
Alexander Udalov
15b0d3c7c7
Minor, safer way to avoid storing defaults in proto
2015-10-11 17:10:39 +03:00
Alexander Udalov
d4320b43fa
Delete useless class, simplify reading class visitor
2015-10-11 17:10:38 +03:00
Alexander Udalov
9e4823ef82
Write module name to metadata, fix reflection for file facades
...
Module name will be used for proper introspection of internal members
2015-10-11 17:10:37 +03:00
Alexander Udalov
0218e0351b
Deprecate KPackage, to be removed later
2015-10-11 17:10:37 +03:00
Alexander Udalov
790c59d9e5
Increase ABI & stub version
...
See previous commits for motivation
2015-10-11 17:10:36 +03:00
Alexander Udalov
37c36f806a
Rename foreignKotlinClass -> getOrCreateKotlinClass
...
Previously this cache contained only Java (hence 'foreign') classes, that is
not the case anymore
2015-10-11 17:10:35 +03:00
Alexander Udalov
a4732b442d
Don't create KClass and KPackage instances in <clinit>
...
This proved to be a fragile technique, which probably doesn't even improve
performance in most cases but has lots of unexpected problems: unconditional
initialization of reflection classes, increasing the size of the bytecode, bugs
with <clinit> in annotations on JVM 6, inability to support conversion of a
class from Kotlin to Java without recompiling clients which use it
reflectively, etc.
2015-10-11 17:10:35 +03:00
Alexander Udalov
fe737886cd
Drop deprecated K*Function interfaces
2015-10-11 17:10:34 +03:00
Alexander Udalov
8c4d7fdf24
Drop deprecated nested classes from Kotlin metadata annotations
2015-10-11 17:10:33 +03:00
Alexander Udalov
1497648093
Add KOTLIN_MULTIFILE_CLASS annotation to KotlinAbiVersionIndex
...
It was forgotten during the package reform
2015-10-11 17:10:33 +03:00
Alexander Udalov
1c229d173e
Forget old classes from jet.runtime.typeinfo.*, drop JetValueParameter
2015-10-11 17:10:32 +03:00
Alexander Udalov
e3a5590eb7
Simplify FQ name check in ReflectionTypes
...
Fix EA-73058
2015-10-11 17:10:32 +03:00
Alexander Udalov
cf54a76e3b
Optimize JvmStringTable, don't store operation = NONE which is default
2015-10-11 17:10:31 +03:00
Alexander Udalov
934ffed944
Don't write field signatures when not necessary
2015-10-11 17:10:30 +03:00
Alexander Udalov
864926ee2e
Don't always write JVM method signatures to metadata
...
When the trivial type mapping (implemented in JvmProtoBufUtil) from
ProtoBuf.Type instances works fine, don't write the signature since it can be
loaded by exactly the same trivial type mapping
2015-10-11 17:10:30 +03:00
Alexander Udalov
168f1000e4
Remove confusing outdated code about copying JVM signatures
...
This was necessary with old package facades, but not anymore because metadata
is written separately to file classes and codegen now never tries to serialize
deserialized descriptors
2015-10-11 17:10:29 +03:00
Alexander Udalov
3506a9615e
Don't write default values of flags, provide sensible defaults
2015-10-11 17:10:28 +03:00
Alexander Udalov
e58677b8fe
Do not fail on unknown visibilities, modalities, etc in deserialization
...
Provide some sensible defaults like "private", "final", "class" instead, which
will give us a small possibility to not break the format if a new
modality/visibility/... is introduced in the case when the old compiler may
safely consider it as the default one
2015-10-11 17:10:28 +03:00
Alexander Udalov
2e10d21e3f
Minor, rename LATE_INIT -> IS_LATEINIT, INNER -> IS_INNER
2015-10-11 17:10:27 +03:00
Alexander Udalov
aa95375029
Fix incorrect copy-paste during proto messages refactoring
...
Annotations on properties should be loaded not when the message is Property
(this happens for getters/setters as well), but when the kind is explicitly set
to PROPERTY. Also restore construction of JVM signatures for constructors
2015-10-11 17:10:26 +03:00
Alexander Udalov
e4efa27b76
Drop Callable and primary/secondary constructor proto messages
2015-10-11 17:10:26 +03:00
Alexander Udalov
e02854db6d
Support new protobuf messages in cls stub builder
2015-10-11 17:10:25 +03:00
Alexander Udalov
a44f74ea20
Load new proto messages for constructors
2015-10-11 17:10:24 +03:00
Alexander Udalov
9bf0502a31
Load new proto messages for functions and properties
2015-10-11 17:10:24 +03:00
Ilya Gorbunov
a58a7727d1
Preprocessor: cleanup unused code.
2015-10-11 16:14:38 +03:00
Ilya Gorbunov
423a146bce
Preprocessor: do not use legacy package facade name in build.xml.
2015-10-11 16:14:24 +03:00
Alexey Sedunov
ae9bd371e6
Unit Test Tooling: Test navigation
...
#KT-6472 In Progress
2015-10-11 01:13:48 +03:00
Alexey Sedunov
ad929a6577
Unit Test Tooling: Implement "Create Test" action
...
#KT-6472 In Progress
2015-10-11 01:13:41 +03:00
Alexey Sedunov
c697eef803
Minor: Undeprecate JetClassOrObject.isAnnotation() function
2015-10-11 01:08:11 +03:00
Denis Zharkov
f9c7e7add4
Adjust project code to changes in properties loading
2015-10-10 12:29:15 +03:00
Denis Zharkov
97ed8c83a0
Adjust testData to isEmpty/key/value transformations
2015-10-10 12:29:15 +03:00