pyos
432ba62143
JVM_IR: omit annotations on outer this parameters
2019-10-08 14:41:05 +02:00
Ting-Yuan Huang
74e8c7c1c5
JVM_IR: generate default constructor
...
Quoted from https://kotlinlang.org/docs/reference/classes.html
"On the JVM, if all of the parameters of the primary constructor have
default values, the compiler will generate an additional parameterless
constructor which will use the default values. This makes it easier to
use Kotlin with libraries such as Jackson or JPA that create class
instances through parameterless constructors."
2019-05-30 18:53:27 +02:00
Mads Ager
d2c372a4f7
JVM_IR: No EnclosingMethod attribute for member classes.
...
The comment in the code is correct that EnclosingMethod
attributes should only be generated for local and
anonymous classes. We were generating them for member
classes as well which leads to invalid class files.
With this change I had to mute one more tests. That is
because we lose the parent method and therefore we
see a class as a member class instead of a local class.
With the old descriptor based check that test still
passes.
2019-05-15 19:22:38 +02:00
pyos
c7d7d903cd
Add the IR version of CompileJavaAgainstKotlin tests
...
Only the WithoutJavac version for now, because the other one ignores
javac errors.
2019-04-12 12:43:37 +02:00
baratynskiy
a815125281
Use JDK 8 in AbstractCompileAgainstKotlin test
2017-05-17 17:42:12 +03:00
Valentin Kipyatkov
ec51076355
DescriptorRenderer to render annotations for all types + separate option to render annotation arguments + use it in IdeDescriptorRenderers
2016-10-11 23:38:54 +03:00
Denis Zharkov
d0acb3674a
Fix rendered testData
...
New members in enum member scope
2016-05-16 15:38:13 +03:00
Alexander Udalov
1b8f934b54
Delete deprecated enum 'values' property
2016-02-19 22:28:44 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Mikhail Glukhikh
c8b50eec1e
Enum.values: deprecation (warning) --> deprecation (error)
2015-12-11 11:11:42 +03:00
Mikhail Glukhikh
dc60c62781
Enum.values is now deprecated but Enum.values() is no more deprecated
2015-11-23 17:29:36 +03:00
Denis Zharkov
e920ce709b
Render captured type parameters in verbose mode
2015-11-13 14:59:04 +03:00
Alexey Tsvetkov
dc27363452
Remove @annotation from test data
2015-10-19 20:45:01 +03:00
Dmitry Petrov
e7fb7483c5
Drop package facades: update compiler tests.
2015-10-19 16:03:16 +03:00
Denis Zharkov
1c02231cda
Regenerate rendered descriptors after transforming Enum.values to property
2015-10-17 17:46:16 +03:00
Mikhail Glukhikh
f8a356747e
Stdlib rename: 'name' and 'ordinal' are now properties in Enum, same name functions are deprecated
2015-10-14 20:40:13 +03:00
Mikhail Glukhikh
78cfeb0d7d
Stdlib rename: List.indexOf(T), List.lastIndexOf(T), MutableCollection.removeAll(Collection<T>), MutableCollection.retainAll(Collection<T>)
2015-10-14 20:40:09 +03:00
Denis Zharkov
6322198a11
Revert 'isEmpty' transformation
2015-10-14 20:40:01 +03:00
Denis Zharkov
6f4579213c
Adjust rendered descriptors after remove/charAt transformations
2015-10-11 19:59:30 +03:00
Denis Zharkov
cfc9d19825
Transform Collection.isEmpty and Map.Entry.key/value to properties
2015-10-10 12:29:14 +03:00
Michael Bogdanov
a4997e8b31
backend tests: INSTANCE$ -> INSTANCE
2015-10-09 16:25:18 +03:00
Denis Zharkov
14f93a88c4
Adjust rendered collections desciptors to contains* transformation
2015-10-09 14:40:34 +03:00
Yan Zhulanow
d90585624f
Add 'DeprecationLevel' parameter to 'Deprecated'
2015-10-08 18:31:08 +03:00
Denis Zharkov
547aa2cda6
Load special java methods as properites
...
Currently only those that override special builtin properties (e.g. `Collection.size`)
Their modality is defined by method's modality
2015-10-06 23:56:17 +03:00
Valentin Kipyatkov
452cd49c5e
Disallowed @Deprecated for local variables and parameters
2015-09-18 15:44:16 +03:00
Denis Zharkov
4850fd10f0
Regenerate test data containing rendered descriptors
...
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00
Michael Nedzelsky
ece8bb07b2
fix tests in org.jetbrains.kotlin.jvm.compiler
2015-09-08 02:04:38 +03:00
Denis Zharkov
31244edec9
Deprecate deprecated in favor of Deprecated
2015-09-04 18:19:31 +03:00
Yan Zhulanow
2ce9903356
Fix tests
2015-08-31 15:33:13 +03:00
Alexander Udalov
9882e86ecb
Don't render contents of enum entry classes in .txt tests, regenerate tests
...
They are irrelevant because cannot be accessed from the outside anyway
2015-08-28 21:11:06 +03:00
Mikhail Glukhikh
b2653ad1e9
Deprecated enum syntax removed: most compiler tests
2015-08-10 16:24:12 +03:00
Denis Zharkov
97af85da9c
Change default upper bound of Java type parameters to Any!
...
#KT-7672 Fixed
2015-07-21 15:16:05 +03:00
Andrey Breslav
4e17500e1c
Test data for LoadJava tests fixed
2015-07-09 16:36:43 +03:00
Mikhail Glukhikh
bae9a7d7f8
Types are no more rendered for annotation arguments + a swarm of tests corrected accordingly
2015-07-01 16:12:32 +03:00
Pavel V. Talanov
f02f663167
Minor: fix test data
2015-06-03 14:29:44 +03:00
Alexander Udalov
7ba0dda29c
Check compileJavaAgainstKotlin tests with .txt files
2015-06-01 19:23:07 +03:00
Pavel V. Talanov
9d618ca767
Replace OBJECT$ usages in code and test data
2015-03-25 18:28:01 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Andrey Breslav
da639039bd
KT-6698 Bad class file when using a star-projection on a Java's recursive generic parameter
...
#KT-6698 Fixed
2015-02-02 19:52:00 +03:00
Alexander Udalov
de0f751207
Replace object$ -> OBJECT$, instance$ -> INSTANCE$ in the project
2014-07-26 00:21:05 +04:00
Evgeny Gerashchenko
829cd95469
KT-4770 Javac fails against Kotlin inner class
...
#KT-4770 fixed
2014-03-28 16:46:26 +04:00
Alexander Udalov
b6b1f2a94a
Minor, package "test" in compileJavaAgainstKotlin testData
2014-03-19 23:24:27 +04:00
Evgeny Gerashchenko
9c38716829
Generating annotations in correct order for methods with synthetic parameters.
...
#KT-4050 fixed
2013-10-08 16:44:16 +04:00
Mikhael Bogdanov
e72b177adc
KT-3561 Bad RuntimeInvisibleParameterAnnotations on attempt to annotate enum constructor hidden parametrs - name and ordinal
2013-04-30 18:46:07 +04:00
Mikhael Bogdanov
b3ec87f956
ClassObject instance field refactoring
2013-03-04 16:42:55 +04:00
Mikhael Bogdanov
1b2da6b558
Write proper enclosingMethod/enclosingClass information to bytecode
2013-02-19 17:56:55 +04:00
Natalia.Ukhorskaya
808c5abc0f
Generate constructor without parameters if primary constructor has only parameters with default values
...
#KT-3085 Fixed
2012-12-27 12:29:06 +04:00
Alex Tkachman
8b622f97f4
getting rid of TypeInfo
2012-02-21 14:54:00 +02:00
Andrey Breslav
3b0ca42e0b
jet.typeinfo.TypeInfo -> jet.TypeInfo
2011-12-26 18:59:48 +04:00