Stanislav Erokhin
88815c40cc
Minor. Fix testdata.
2015-09-24 14:07:51 +03:00
Mikhail Glukhikh
315a304c8e
New modifier checking strategy: only one error but any number of warnings, a warning can never shadow an error
2015-09-23 16:33:08 +03:00
Mikhail Glukhikh
731fdecf06
private / protected / internal modifiers are deprecated in interfaces, relevant tests changed
2015-09-23 16:32:54 +03:00
Zalim Bashorov
1b00eb3a17
Minor: report error instead of crash with exceptions when collect JetFiles to compile and remove obsolete (wrong now) code
...
#EA-61681 Obsolete
2015-09-17 15:45:16 +03:00
Alexander Udalov
2b269b2652
Improve ABI version error reporting in the compiler
...
- only report ABI errors if there's at least one other error
- append additional helpful information to the "unresolved reference" error
2015-09-16 01:44:27 +03:00
Alexander Udalov
d98b3433eb
Fix ABI version diagnostic for old package facades
...
Restore the test data that was erroneously replaced in 84649e4
2015-09-16 01:44:27 +03:00
Alexander Udalov
6cecc66d10
Improve ABI version from one number to "major.minor.patch"
2015-09-11 19:28:46 +03:00
Mikhail Glukhikh
3770e7f49f
Introduction of AnnotationTarget.CLASS as a replacement for CLASSIFIER (first step)
2015-09-11 17:59:40 +03:00
Yan Zhulanow
5dc9557650
Fix cli test that uses android compiler plugin
2015-09-11 04:30:07 +03:00
Dmitry Petrov
5e38c99f81
Name clash test for file class vs multifile class
2015-09-09 19:08:19 +03:00
Dmitry Petrov
07bedc0378
fix CLI help test
2015-09-09 19:08:18 +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
Alexey Tsvetkov
b25dfabbcc
Fix modules tests
2015-09-08 05:49:32 +03:00
Michael Nedzelsky
de9b5695ae
fix tests in org.jetbrains.kotlin.cli
2015-09-08 02:05:05 +03:00
Michael Bogdanov
5805c42305
Write abi version to mapping file
2015-09-07 16:29:16 +03:00
Michael Bogdanov
b3fc667c1e
WrongAbi test data fix
2015-09-07 16:29:03 +03:00
Michael Bogdanov
84649e4b26
Wrong abi test fix
2015-09-07 16:28:57 +03:00
Michael Bogdanov
843241848f
Test fix
2015-09-07 16:28:55 +03:00
Dmitry Petrov
a47eaa2cb5
Change part class naming scheme
...
update tests depending on part class naming
2015-09-07 16:28:42 +03:00
Michael Bogdanov
35d51a8ea4
Update duplicate diagnostic
2015-09-07 16:28:40 +03:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Denis Zharkov
bbc192fda5
Deprecate suppress annotation in favor of Suppress
2015-09-04 17:23:25 +03:00
Mikhail Glukhikh
4bd48c4796
Regular modifier checker implemented (initial version). A set of tests fixed accordingly.
...
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT.
A set of modifier diagnostics is not in use now (but not deleted yet).
2015-08-03 19:41:50 +03:00
Mikhail Glukhikh
0d2a81f098
Annotation target checking in front-end, a set of tests for different annotation targets, existing test fixes
...
No checks for erroneous annotations. Additional checks for identifiers.
2015-07-14 16:25:04 +03:00
Alexander Udalov
636b63a8c5
Make "reflection not found" a warning, provide a quick fix
...
Reporting the warning on each "::", as ReflectionNotFoundInspection did, is not
correct anymore, because for example name/get/set on properties works perfectly
without kotlin-reflect.jar in the classpath. So instead we report the warning
on calls to functions from reflection interfaces. This is not perfect either
because it's wrong in projects with custom implementations of reflection
interfaces, but this case is so rare that the users can suppress the warning
there anyway
#KT-7176 Fixed
2015-07-10 20:10:11 +03:00
Dmitry Jemerov
5eb4a47a1a
command line flag to repeat compilation multiple times
2015-06-17 14:55:12 +02:00
Alexander Udalov
54dfd626ab
CLI: improve diagnostic message format
...
- render the whole line where the error/warning points to, if any, and another
line with '^', like other compilers do
- lowercase diagnostic severity
- decapitalize the message if it doesn't start with a proper name
2015-06-15 15:42:41 +03:00
Alexander Udalov
46515afb22
CLI: don't render non-positive line and column in error messages
2015-06-15 15:42:41 +03:00
Alexander Udalov
bca5eb083e
Don't report warnings when there are errors
...
All sane compilers do this
2015-06-15 15:42:40 +03:00
Michael Nedzelsky
744e760444
tests for KT-7618 Compiling Maven project targeting JS fails when no source file present
2015-06-11 22:21:25 +03:00
Michael Nedzelsky
999c83240c
JS: error message (not exception) for incompatible abi version during compilation
2015-06-10 05:37:57 +03:00
Evgeny Gerashchenko
c194ced87e
Performance report is emitted only when corresponding command-line argument is provided.
2015-06-04 19:45:01 +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
Michael Bogdanov
5bca1d3c8f
Added dianostic error for non-local return on disabled inlines,
...
Render bytecode diagnostics in BytecodeToolWindow
#KT-5584 Fixed
2015-05-21 10:06:03 +03:00
Michael Bogdanov
ef4981b0ef
Report error on indirect inline cycles
2015-05-21 10:06:02 +03:00
Michael Nedzelsky
bfc641caba
JS: fix tests for -meta-info
2015-05-21 02:30:57 +03:00
Dmitry Jemerov
4bdf598bfe
compiler testdata: s/trait/interface
2015-05-12 19:43:17 +02:00
Yan Zhulanow
dbc0099e6e
Fix usage printing for compiler plugins
2015-05-08 18:19:25 +03:00
Yan Zhulanow
514bc74e9c
Support android.support.v4.Fragment classes
2015-05-08 18:19:22 +03:00
Denis Zharkov
849b8acbf8
Replace annotations with brackets in testData
...
Just in tests that changed after deprecation
2015-05-07 22:36:16 +03:00
Alexander Udalov
2a3f658ea7
Minor, add missing space to error message
2015-04-20 18:57:31 +03:00
Pavel V. Talanov
818a6b5c2e
Fix various tests and test data
...
Since we now distinguish between binaries and java source roots
2015-04-16 16:40:37 +03:00
Yan Zhulanow
1f16328070
Add imports for XML widget tags, support.v4 fake package files
2015-04-03 17:37:22 +03:00
Zalim Bashorov
1b530887cd
Minor: fix testdata
2015-03-20 21:23:31 +03:00
Michael Nedzelsky
33cdf8c969
JS backend: add cli test for creating metadata and ant test for library with metadata
2015-03-18 09:39:04 +03:00
Michael Nedzelsky
3bf14518e8
JS backend: add -meta-info command line option for cli compiler
2015-03-18 09:38:53 +03:00
Zalim Bashorov
8421a15521
JS backend: report diagnostic when try to get referenece on builtin members instead of crash with Exception.
2015-03-18 08:55:56 +03:00
Zalim Bashorov
975c4ffab5
JS backend: report diagnostic for class literal(Foo::class) instead of crash with Exception.
2015-03-18 08:55:56 +03:00
Zalim Bashorov
8d6cbb671a
JS backend: report diagonstic message for unsupported element instead of throw exception.
...
#KT-6507 Fixed
2015-03-18 08:55:56 +03:00