Denis Zharkov
7c16fb8a89
Fix StringIndexOutOfBoundsException
...
#EA-72837 Fixed
2015-09-09 12:51:19 +03:00
Denis Zharkov
c449c0d080
Deprecate inlineOption in favor of crossinline modifier
2015-09-09 12:35:19 +03:00
Pavel V. Talanov
9b8540543f
Fix generation of light classes for package facade from binaries
...
Refactor code a bit
2015-09-08 21:27:41 +03:00
Pavel V. Talanov
234b52b24e
J2K IDELightClassGenerationSupport: fix code and some prettifications
2015-09-08 21:27:40 +03:00
Pavel V. Talanov
d1d18618b5
J2K IDELightClassGenerationSupport: autoconvert
2015-09-08 21:27:40 +03:00
Pavel V. Talanov
c37b15d629
J2K IDELightClassGenerationSupport: rename file
2015-09-08 21:27:39 +03:00
Stanislav Erokhin
5fb6a15c81
Minor. fix testdata
2015-09-08 20:51:32 +03:00
Alexander Udalov
4dc29bf0b2
Introduce 'kotlin' script for running programs
...
'kotlin' is to 'kotlinc' what 'java' is to 'javac'. However it will support
much more: running class by name, jar, scripts, expressions, REPL
2015-09-08 20:30:50 +03:00
Alexander Udalov
3c4b2994a9
Fix protected call to super method from lambda
...
Previously JVM back-end had an assumption that if we're calling a method
declared in the super class from a lambda via a synthetic accessor, that should
be a super call and it must be done with 'invokespecial'. Which is wrong
because a method declared in the super class may be open and overridden in the
subclass, so 'invokevirtual' should be used. Surprisingly, Java SE verifier
allowed both instructions, but on Android only the latter is possible
#KT-8899 Fixed
#KT-9052 Fixed
2015-09-08 20:28:35 +03:00
Alexander Udalov
1ccd0f9fc2
Add GenerationState to CodegenContext
2015-09-08 20:28:34 +03:00
Alexander Udalov
67d683bc59
Minor, use ResolvedCall#getSuperCallExpression in codegen
2015-09-08 20:28:34 +03:00
Alexander Udalov
8a5e83b947
Refactor CodegenContext#accessibleDescriptorIfNeeded
2015-09-08 20:28:33 +03:00
Denis Zharkov
dbaf01feed
Minor. Add '@' symbol in testData where necessary (fix Java 8 build)
2015-09-08 19:03:49 +03:00
Michael Nedzelsky
ea11133142
strict checking for internal visibility
2015-09-08 19:00:45 +03:00
Dmitry Jemerov
ae36981a0f
trim leading and trailing spaces from text returned as KDocTag.getContent()
2015-09-08 16:57:00 +02:00
Denis Zharkov
297e9484ba
Deprecate decapitalized annotations
2015-09-08 17:50:41 +03:00
Mikhail Glukhikh
1dee922861
kotlin.annotation.Target / Retention have now more priority than same java classes if import java.lang.annotation.* is available
2015-09-08 17:18:31 +03:00
Mikhail Glukhikh
0257f46ebb
Special modifier parsing for enum entries: last of them is considered as an enum entry name #KT-9088 Fixed
2015-09-08 17:18:28 +03:00
Ilya Gorbunov
52f3e9ca06
Accept in-projection of Comparator as a parameter when possible.
2015-09-08 17:11:12 +03:00
Dmitry Petrov
37d5a16a3d
Incremental compilation test for @file:JvmName
2015-09-08 13:02:57 +03:00
Dmitry Petrov
c18f87f0c7
Cleanup after review
2015-09-08 13:02:56 +03:00
Dmitry Petrov
bc5e29df9f
update tests: jvmName --> JvmName
2015-09-08 13:02:56 +03:00
Dmitry Petrov
2519641b2b
JvmName annotation support, single-file facade case (just rename file facade class)
...
- initial implementation of JvmFileClassesProvider
- migrate some of PackagePartClassUtil usages to JvmFileClassesProvider (mostly in Codegen)
- placeholder ("no resolve") implementation for migration period and unclear cases
- tests
2015-09-08 13:02:56 +03:00
Michael Bogdanov
43e91d4d31
Fix npe with ant project
2015-09-08 12:52:57 +03:00
Denis Zharkov
676ca86ea4
Deprecate escaped modifiers and unescaped annotations
2015-09-08 12:11:30 +03:00
Michael Bogdanov
25cd9de71a
Support default module name in ant task
2015-09-08 11:34:40 +03:00
Michael Bogdanov
912111d237
Fix for KT-8948: CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'foo' into
...
#KT-8948 Fixed
2015-09-08 11:34:40 +03:00
Mikhail Glukhikh
24252b64d0
Test and fix for NPE in CFA #KT-9078 Fixed #EA-71535 Fixed
2015-09-08 11:31:15 +03:00
Dmitry Jemerov
f708871254
use correct scope for ReferencesSearch used for 'find usages' (KT-8904)
2015-09-08 10:10:49 +02:00
Natalia Ukhorskaya
dc7d30c6dc
Implement hasBlockBodyCorrectly for constructors
...
#EA-72355 - TCE: EvaluatePackage$extractFunctionForDebuggerUtil$e.addDebugExpressionBeforeContextElement
2015-09-08 11:00:53 +03:00
Natalia Ukhorskaya
b86e251990
JDIEval: do not throw an exception in case of throw Exception()
2015-09-08 11:00:52 +03:00
Natalia Ukhorskaya
9d7695c337
JDIEval: set vmexec instead of home argument when launching tests
2015-09-08 11:00:51 +03:00
Natalia Ukhorskaya
cee3cf53d9
JDIEval: coerce byte to int correctly
2015-09-08 11:00:51 +03:00
Natalia Ukhorskaya
519c2784ff
Debugger: allow evaluate expression in constructors
2015-09-08 11:00:50 +03:00
Natalia Ukhorskaya
e423e99253
Debugger for inline functions: make sure that context is suspended
2015-09-08 11:00:49 +03:00
Natalia Ukhorskaya
ff8b7b4276
Fix NPE in DebuggerUtils
...
#EA-69703 - assert: DebuggerUtils.analyzeElementWithInline
2015-09-08 11:00:48 +03:00
Natalia Ukhorskaya
3aa7528c8f
Show declared type for delegated properties correctly in debugger
...
#EA-72136 - assert: ValueDescriptorImpl.getValue
2015-09-08 11:00:47 +03:00
Natalia Ukhorskaya
c73e613dc3
Debugger: Fix exception while computing inline lambda context when debug info is unavailable
...
#EA-72494 - AIE: StackFrameProxyImpl.visibleVariables
2015-09-08 11:00:46 +03:00
Natalia Ukhorskaya
1d5110f424
Debugger: Fix NPE in inline lambda context evaluator
...
-EA-72501 - KNPE: KotlinCodeFragmentFactory$createCodeFragment$.invoke
2015-09-08 11:00:45 +03:00
Ilya Gorbunov
a63341b901
Some tests for assertion messages.
2015-09-08 10:28:15 +03:00
Ilya Gorbunov
f7c2f034b3
Remove usages of deprecated failsWith
2015-09-08 10:28:03 +03:00
Ilya Gorbunov
c14f376d21
Deprecate precondition checks with non-lazy message.
...
Make precondition checks with lazy message inline.
Use require with lazy message in stdlib.
#KT-8253 Fixed
2015-09-08 10:27:46 +03:00
Ilya Gorbunov
a59962c620
Change test data to reproduce the same error as was before adding an overload of assert.
2015-09-08 10:27:33 +03:00
Ilya Gorbunov
e9901e7351
Deprecate assert with non-lazy message.
...
#KT-8253
2015-09-08 10:27:20 +03:00
Ilya Gorbunov
470fcc977c
Drop test DSL experiments.
2015-09-08 10:27:08 +03:00
Ilya Gorbunov
4f9e2c24d1
Exclude common file asserts.kt from tests using StdLib, as its methods conflict with kotlin.test.* methods.
2015-09-08 10:26:54 +03:00
Ilya Gorbunov
e61d202d71
Dropped test that tested nothing: there were no files to compile, except common asserts.kt
2015-09-08 10:26:39 +03:00
Ilya Gorbunov
ea896bd217
JsTestsAsserter implement Asserter.
2015-09-08 10:26:24 +03:00
Ilya Gorbunov
44f7b6d699
Unit testing API: better mapping on JUnit, proper formatting assertion details when message is not specified
...
#KT-8929 Fixed
Sensible default message for assertion methods.
#KT-8314 Fixed
Provide assertFailsWith also with KClass and reified type argument.
2015-09-08 10:26:07 +03:00
Ilya Gorbunov
e20c86c5dc
Add missing equals() to primitive-keyed JS map specialization.
2015-09-08 10:24:25 +03:00