Commit Graph

31570 Commits

Author SHA1 Message Date
Alexey Tsvetkov 9214798613 Increase daemon test memory limit again
It is still more strict than it was before (before each test build could grow < 2500 kb, now < 300 kb on average of 10 runs)
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 6f3ea01084 Refactoring: rename ClassBuilderMode entry LIGHT_CLASSES_WITH_METADATA->KAPT 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 10b9be9f51 Fix collecting source retention annotations
#KT-12187 fixed
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov cac49b6609 Add class stubs dir to stub generation task classpath 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov f2ca788ea3 Serialize error type to proto when generating stubs 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 8d189bae55 Refactoring: rename javaAptSourceDir->hackAnnotationDir 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov cb94936e51 Refactoring: rename AnnotatedElementDescriptor->AnnotatedElement 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 6dd388d0f0 Exclude compiled files when compiling incrementally 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov fb8ed25e99 Report compiled classes when generating kapt stubs 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 4b591d2220 Include metadata in light classes for kapt 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov f7a665d0d2 Fix incremental compilation with kapt generating stubs
Changes:
* map incremental property to compile kotlin after java task
* when generating stubs compile kotlin task should not remove or copy classfiles
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 853b15ee98 Add kapt incremental tests 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov fe6e69ff89 Update kapt annotations file incrementally 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov c21693b0d0 Serialize KotlinAnnotationProvider 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 33dc792bf9 Minor: extract constant 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 3ef21a941c Refactoring: make AnnotatedElementDescriptor hierarchy sealed 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 26781bc139 Pass reader as param 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov e0afb94628 Make fun local since it's bound to outer function semantics 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 3340731c71 Read annotations during construction of KotlinAnnotationsProvider
The rationale is to access kotlinClassesInternal and annotatedKotlinElementsInternal
in any order
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 69a8654e91 Minor: add const 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 28abc73f22 Pass reader in constructor to KotlinAnnotationProvider 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 12531c4a90 Make annotation collector tests more thorough 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov e84ae5117d Refactoring: move kapt tests to separate class 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 93117ed637 Prevent compile tasks from running when nothing changes
#KT-10932 fixed
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 0bbd2f38dc Minor: use more recent version of gradle in test 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov fe43e1ae79 Minor: do not print output in assertion message 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 10396ecc84 Refactoring: extract properties for gradle task's properties access in plugin 2016-05-11 20:41:48 +03:00
Valentin Kipyatkov 0c367c6e08 Added missing test data 2016-05-11 19:52:31 +03:00
Mikhail Glukhikh be2b37db5e Unused symbol inspection: properties declared in primary constructor are now checked on 'Used' annotations #KT-11120 Fixed 2016-05-11 19:08:42 +03:00
Mikhail Glukhikh a098977c54 Do not try to make object's containing class abstract #KT-11466 Fixed 2016-05-11 19:08:37 +03:00
Mikhael Bogdanov af2cf715be Disabled dexInProcess and incremental compilation in test android module, explicitly set Xmx for dex process cause of teamcity memory allocation fails 2016-05-11 18:07:27 +03:00
Mikhael Bogdanov 1d2a83e182 Added support for 'JVM.INHERIT_MULTIFILE_PARTS' flag in android tests 2016-05-11 18:07:26 +03:00
Mikhael Bogdanov ed60cf8c55 Added support for reflection tests on android 2016-05-11 18:07:26 +03:00
Mikhael Bogdanov d6a64af929 Fix for KT-12125: Wrong increment/decrement on Byte/Char/Short.MAX_VALUE/MIN_VALUE
#KT-12125 Fixed
2016-05-11 18:07:25 +03:00
Ilya Gorbunov 8425304866 Advance snapshot version to 1.1-SNAPSHOT 2016-05-11 17:28:38 +03:00
Alexander Udalov 6b1f3e679f Update ChangeLog for 1.0.2 2016-05-11 12:21:32 +03:00
Alexey Sedunov 44f565e600 Spring Support: Support "Autowired members defined in invalid Spring bean" inspection on Kotlin declarations
#KT-12079 Fixed
2016-05-10 19:41:35 +03:00
Alexey Sedunov d4aa179336 Change Signature: Do not force substitution of error types
#EA-81021 Fixed
2016-05-10 19:41:33 +03:00
Valentin Kipyatkov 962223159a Do not use setting specifyFieldTypeByDefault for locals 2016-05-10 18:26:04 +03:00
Valentin Kipyatkov bf9e4a3d84 Better code 2016-05-10 18:26:04 +03:00
Valentin Kipyatkov 07c961d99d Moved local method out 2016-05-10 18:26:04 +03:00
Valentin Kipyatkov bdd425c1a0 KT-11952 J2K: Assertion failed in PropertyDetectionCache.get on conversion of access to Java constant of anonymous type
#KT-11952 Fixed
2016-05-10 18:26:04 +03:00
Valentin Kipyatkov de02b56354 Fixed test data 2016-05-10 18:26:03 +03:00
Valentin Kipyatkov 70a5540c00 Minor changes after code review 2016-05-10 18:24:22 +03:00
Valentin Kipyatkov cca3237e46 KT-4727 J2K: Convert Java code copied from browser or other sources
#KT-4727 Fixed
2016-05-10 18:24:21 +03:00
Valentin Kipyatkov 4cbb098671 Renamed class 2016-05-10 18:24:21 +03:00
Alexey Andreev 826cee58bd KT-11996 Fix issue with referencing outer class in case of inner class constructors and members/properties. Fix issue with referencing outer classes from secondary constructors. Remove unnecessary tests. 2016-05-10 17:41:21 +03:00
Alexey Andreev 1764000bf4 KT-11823 Generate proper argument for closure constructor for this as a free variable. Give some explanation for function that generates closure arguments as well as a clear name. Give explanation to some code in UsageTracker.isSingletonReceiver, augmented by a test case. 2016-05-10 17:41:21 +03:00
Nikolay Krasko ab79deacbd Remove write action from refactoring start (KT-11486)
#KT-11486 Fixed
2016-05-10 16:06:01 +03:00
Nikolay Krasko 5c1e5b3cdc Make KtLightModifierList behave like light element and check it in tests 2016-05-10 16:06:00 +03:00