Commit Graph

24572 Commits

Author SHA1 Message Date
Alexander Udalov 3091f2af3b Report argument number mismatch nicely on wrong 'call()' invocation
The default Java reflection message in such case is not very helpful: "wrong
number of arguments"
2015-08-07 00:55:32 +03:00
Alexander Udalov 9c522b4d49 Refactor property calls in reflection, fix some corner cases
- compute a FunctionCaller instance for getter and setter so that "call" only
  delegates to that FunctionCaller's "call", in the same way it's done in
  KFunctionImpl
- use RuntimeTypeMapper.mapPropertySignature to get the exact origin and
  signature of a property and its accessors. This makes unwrapFakeOverride call
  unnecessary and also fixes some cases like private Java fields
- temporarily drop custom range checks, will be re-added soon
2015-08-07 00:55:30 +03:00
Alexander Udalov a91729e041 Fix isAccessible for property accessors 2015-08-07 00:55:30 +03:00
Alexander Udalov 9f2feb1d27 Set failOnError = true by default in kotlinc Ant task as in javac
#KT-8742 Fixed
2015-08-06 22:38:41 +03:00
Dmitry Jemerov 7e7374e28b bump max permgen size for All tests configuration 2015-08-06 19:51:27 +02:00
Alexey Tsvetkov 102c5f6569 Add SourceElement to LazyJavaPackageFragment 2015-08-06 19:31:07 +03:00
Alexey Tsvetkov 53eccb98e3 Save class file to deserialized descriptor 2015-08-06 19:31:06 +03:00
Alexey Tsvetkov 0688afbb0c Introduce ClassDataProvider 2015-08-06 19:31:06 +03:00
Denis Zharkov cb7518c3ee Minor. Drop irrelevant field from testData 2015-08-06 08:18:18 +03:00
Denis Zharkov 41d4af2cb9 Implement rendering of raw types
Also add some clarification in spec
2015-08-06 08:18:18 +03:00
Denis Zharkov 51668b4cc3 Do not substitute arguments while replacing them
It prevents from creating complicated types
2015-08-06 08:18:18 +03:00
Denis Zharkov 32c23728b3 Implement raw types (de)serialization via special TypeCapabilities 2015-08-06 08:18:18 +03:00
Denis Zharkov 3593356e1a Minor. Move RawSubstitution into separate file 2015-08-06 08:18:18 +03:00
Denis Zharkov 460c719753 Make constructor of JetTypeImpl private, introduce factory methods 2015-08-06 08:18:18 +03:00
Denis Zharkov 101ab03721 J2K JetTypeImpl: Convert and clean 2015-08-06 08:18:18 +03:00
Denis Zharkov ce78dae281 J2K JetTypeImpl: .java -> .kt 2015-08-06 08:18:17 +03:00
Denis Zharkov ac7c5a93b0 Introduce TypeCapabilities concept
It encapsulates special features of type like custom substitution.
2015-08-06 08:18:17 +03:00
Denis Zharkov 4563f4b1f9 Minor. Pull computeMemberScope to AbstractLazyType 2015-08-06 08:18:17 +03:00
Denis Zharkov b7c042510d Do not create redundant special variance when enhancing types
#KT-8538 Fixed
2015-08-06 08:18:17 +03:00
Denis Zharkov b2766bfb57 Add test for obsolete issue
#KT-4609 Obsolete
2015-08-06 08:18:17 +03:00
Alexander Udalov 47439603bb Minor, delete useless instanceof
A follow-up to 9b832d4
2015-08-05 19:04:31 +03:00
Alexander Udalov 8556f18ed5 Rename Java scopes to reduce confusion 2015-08-05 19:01:53 +03:00
Alexander Udalov a336e9c930 Don't cache nulls for invalid names in Java resolve 2015-08-05 19:01:52 +03:00
Alexander Udalov d3d0cbde97 Refactor KotlinClassLookupResult, make it sealed 2015-08-05 19:01:51 +03:00
Mikhail Glukhikh bd3b5690a2 Standard annotations: must be documented 2015-08-05 18:32:12 +03:00
Mikhail Glukhikh 5b31560808 x?.y is now nullable even if y is Unit + three tests + codegen test fix + source code fix #KT-7936 Fixed #KT-8347 Fixed 2015-08-05 12:26:01 +03:00
Mikhail Glukhikh 850580dc87 Java annotation mapper refactoring (constant names) 2015-08-05 12:25:53 +03:00
Mikhail Glukhikh 45cc3c025f Mapping of JavaDoc deprecated to Kotlin Deprecated + a pair of tests 2015-08-05 12:25:39 +03:00
Valentin Kipyatkov 7d02b45558 Fixed test data 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 4c0404ea82 Changes on code review 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 6df218df52 Fixed test data 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 9150c53832 Fixed codegen for non-public SAM-adapters 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov 5bceefe8df Added UsageLocation parameter 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov a7db995f05 Correct icon shown for synthetic extensions 2015-08-04 18:05:57 +03:00
Valentin Kipyatkov c3064e2b0f Synthetic extensions for non-public get/set java methods 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov d5f95cf126 Correct visibility for non-public SAM-adapters 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov 2eb04db95a Extension SAM-adapters shown in completion 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov cb9ef9e1f0 Fixed nullability for return and parameter types in SAM-adapters 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov 321bf40b65 Fixed compilation 2015-08-04 18:05:56 +03:00
Valentin Kipyatkov 729085ec9a Iniital implementation of synthetic extensions for SAM-adapter functions (non-static only) 2015-08-04 18:05:55 +03:00
Valentin Kipyatkov 8b3870cc33 Optimization 2015-08-04 18:05:55 +03:00
Valentin Kipyatkov ece4d8b82f Added JetScope.getSyntheticExtensionFunctions() 2015-08-04 18:05:55 +03:00
Dmitry Jemerov 456cdab814 reset init time in all compiler invocations 2015-08-04 17:00:33 +02:00
Valentin Kipyatkov 4187be2fe5 KT-8255 Intention actions popup: there are duplicates between quickfixes and intentions
#KT-8255 Fixed
2015-08-04 17:57:02 +03:00
Dmitry Jemerov f49ccb22ab report correct compiler init timings 2015-08-04 16:12:05 +02:00
Dmitry Jemerov 00ec19a709 use correct API for converting URL to string 2015-08-04 14:53:07 +02:00
Zalim Bashorov 7ea58bb097 Move UsageCollector.kt to descriptors module
* to fix bare plugin
* in the future it will be used in scopes declared in descriptors module
2015-08-04 15:34:29 +03:00
Mikhail Glukhikh 25cc5e1801 annotationChecker visibility corrected 2015-08-04 10:28:44 +03:00
Mikhail Glukhikh 4596edd19a 'dynamic' keyword is no longer a modifier (soft keyword only) 2015-08-04 10:28:42 +03:00
Dmitry Petrov 2275a4cb77 assert: CallResolverUtilPackage$CallResolverUtil$eba.hasUnknownReturnType
- ignore expressions with non-callable expected type resolved as callable reference expressions
(this can happen when we have incorrect code)
2015-08-04 09:41:14 +03:00