Denis Zharkov
91c86f7f56
Fix refactorings that remove parameter based on ultra-light classes
...
This commit fixes the exception attached to the bottom of the message
The problem is that when creating ChangeSignatureProcessor for old PsiMethod
that points to the parameter that is already removed from PSI, some pieces
of platform code run resolution on the light PSI that eventually checks
if the source element is valid.
For KtUltraLightParameter, it inherits "isValid" from LightElement and
the latter is defined as getNavigationElement().isValid(),
while here navigationElement points to already removed parameter,
and marked as invalid.
The simplest solution was to define KtUltraLightParameter::isValid
as it was before ultra-light classes, i.e. checking if parent is valid
(see KtLightElementBase::isValid)
com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl #JAVA because: File language:Language: JAVA != Provider base language:Language: kotlin
invalidated at: no info
at com.intellij.psi.util.PsiUtilCore.ensureValid(PsiUtilCore.java:482)
at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:190)
at com.intellij.psi.impl.source.PsiClassReferenceType.resolve(PsiClassReferenceType.java:138)
at com.intellij.psi.util.PsiUtil.resolveClassInType(PsiUtil.java:445)
at com.intellij.psi.util.PsiUtil.convertAnonymousToBaseType(PsiUtil.java:484)
at com.intellij.psi.impl.light.LightTypeElement.<init>(LightTypeElement.java:33)
at com.intellij.psi.impl.PsiElementFactoryImpl.createTypeElement(PsiElementFactoryImpl.java:142)
at com.intellij.refactoring.changeSignature.JavaChangeInfoImpl.fillOldParams(JavaChangeInfoImpl.java:218)
at com.intellij.refactoring.changeSignature.JavaChangeInfoImpl.<init>(JavaChangeInfoImpl.java:127)
at com.intellij.refactoring.changeSignature.JavaChangeInfoImpl.<init>(JavaChangeInfoImpl.java:86)
at com.intellij.refactoring.changeSignature.ChangeSignatureProcessor.generateChangeInfo(ChangeSignatureProcessor.java:121)
at com.intellij.refactoring.changeSignature.ChangeSignatureProcessor.<init>(ChangeSignatureProcessor.java:88)
at org.jetbrains.kotlin.idea.refactoring.changeSignature.KotlinChangeInfo$getOrCreateJavaChangeInfos$3.invoke(KotlinChangeInfo.kt:400)
at org.jetbrains.kotlin.idea.refactoring.changeSignature.KotlinChangeInfo$getOrCreateJavaChangeInfos$5.invoke(KotlinChangeInfo.kt:469)
at org.jetbrains.kotlin.idea.refactoring.changeSignature.KotlinChangeInfo.getOrCreateJavaChangeInfos(KotlinChangeInfo.kt:498)
at org.jetbrains.kotlin.idea.refactoring.changeSignature.KotlinChangeSignatureUsageProcessor.processUsage(KotlinChangeSignatureUsageProcessor.kt:847)
at com.intellij.refactoring.changeSignature.ChangeSignatureProcessorBase.doChangeSignature(ChangeSignatureProcessorBase.java:218)
2018-11-26 11:36:25 +03:00
..
2015-09-11 02:20:46 +03:00
2015-12-25 18:50:48 +03:00
2015-12-25 18:50:48 +03:00
2015-10-19 16:03:18 +03:00
2015-10-14 20:39:35 +03:00
2015-10-19 16:03:18 +03:00
2015-10-14 20:39:35 +03:00
2015-02-11 14:40:26 +03:00
2016-08-10 11:45:29 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2017-11-30 12:49:24 +03:00
2015-11-10 16:47:48 +03:00
2017-03-27 19:45:50 +02:00
2015-11-02 15:15:39 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-07-03 18:38:01 +03:00
2015-07-03 18:38:01 +03:00
2017-03-27 19:45:50 +02:00
2015-05-13 16:13:13 +02:00
2015-02-11 14:40:26 +03:00
2015-05-13 16:13:13 +02:00
2015-10-19 16:03:18 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2015-11-02 15:15:39 +03:00
2015-10-24 19:50:55 +03:00
2015-10-24 19:50:55 +03:00
2015-10-24 19:50:55 +03:00
2015-10-24 19:50:55 +03:00
2015-09-11 02:20:46 +03:00
2015-02-20 19:08:22 +03:00
2015-02-20 19:08:22 +03:00
2015-02-20 19:08:22 +03:00
2015-02-20 19:08:22 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2015-10-14 20:39:35 +03:00
2015-10-19 16:03:18 +03:00
2015-10-14 20:39:35 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2017-08-15 19:08:25 +03:00
2017-08-15 19:08:25 +03:00
2015-07-03 18:38:01 +03:00
2015-11-02 15:15:39 +03:00
2015-07-03 18:38:01 +03:00
2015-11-02 15:15:39 +03:00
2015-03-31 20:20:22 +03:00
2014-11-26 13:07:33 +03:00
2014-12-08 16:30:02 +03:00
2014-11-26 13:07:33 +03:00
2014-11-26 13:07:33 +03:00
2014-12-08 16:30:02 +03:00
2015-07-03 18:38:02 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-02-11 14:40:26 +03:00
2015-10-14 20:39:35 +03:00
2015-02-11 14:40:26 +03:00
2015-10-14 20:39:35 +03:00
2015-10-19 16:03:18 +03:00
2015-10-14 20:39:35 +03:00
2015-10-19 16:03:18 +03:00
2015-10-14 20:39:35 +03:00
2015-06-16 21:15:35 +03:00
2015-06-16 21:15:35 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2018-11-26 11:36:25 +03:00
2018-11-26 11:36:25 +03:00
2018-11-26 11:36:25 +03:00
2018-11-26 11:36:25 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-02-11 14:40:26 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-02-11 14:40:26 +03:00
2015-06-08 20:18:15 +03:00
2015-06-08 20:18:15 +03:00
2015-11-10 16:47:42 +03:00
2015-11-10 16:47:42 +03:00
2015-04-15 23:20:52 +03:00
2015-04-15 23:20:52 +03:00
2015-04-15 23:20:52 +03:00
2015-04-15 23:20:52 +03:00
2015-08-10 16:23:57 +03:00
2015-08-10 16:23:57 +03:00
2014-12-18 21:06:15 +03:00
2015-05-13 16:13:13 +02:00
2015-05-13 16:13:13 +02:00
2014-12-11 17:50:29 +03:00
2014-12-11 17:50:29 +03:00
2014-12-08 16:30:05 +03:00
2015-04-17 16:30:27 +03:00
2014-12-08 16:30:05 +03:00
2015-04-17 16:30:27 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2014-12-08 16:30:05 +03:00
2015-09-25 08:29:26 +03:00
2015-09-25 08:29:26 +03:00
2015-09-14 18:05:06 +02:00
2014-11-26 13:07:33 +03:00
2015-10-19 16:03:18 +03:00
2014-11-26 13:07:33 +03:00
2015-09-08 02:05:49 +03:00
2015-09-08 02:05:49 +03:00
2015-03-31 20:20:22 +03:00
2015-11-27 15:51:11 +03:00
2015-11-27 15:51:11 +03:00
2014-12-08 16:30:07 +03:00
2015-11-27 15:51:11 +03:00
2014-12-08 16:30:07 +03:00
2015-11-27 15:51:11 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:07 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:07 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2016-02-11 14:25:04 +03:00
2016-02-11 14:25:04 +03:00
2015-11-02 15:15:33 +03:00
2015-11-02 15:15:33 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2018-02-09 14:17:37 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:53 +03:00
2014-11-26 13:07:38 +03:00
2014-11-26 13:07:38 +03:00
2014-11-26 13:07:38 +03:00
2014-11-26 13:07:38 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2017-03-22 13:36:11 +03:00
2014-11-26 13:07:38 +03:00
2014-11-26 13:07:38 +03:00
2014-11-26 13:07:38 +03:00
2015-10-14 20:39:35 +03:00
2015-07-09 17:56:44 +03:00
2015-10-14 20:39:35 +03:00
2015-07-09 17:56:44 +03:00
2015-07-09 20:47:51 +03:00
2015-07-09 20:47:51 +03:00
2015-07-09 20:47:51 +03:00
2015-07-09 20:47:51 +03:00
2015-10-24 19:50:55 +03:00
2015-07-09 17:56:44 +03:00
2015-10-24 19:50:55 +03:00
2015-07-09 17:56:44 +03:00
2017-04-17 23:00:20 +03:00
2015-07-09 20:47:51 +03:00
2015-07-17 20:59:07 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:40 +03:00
2015-11-02 15:15:40 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2015-11-02 15:15:43 +03:00
2018-06-08 14:34:23 +03:00
2018-06-08 14:34:23 +03:00
2018-06-08 14:34:23 +03:00
2018-06-08 14:34:23 +03:00
2015-09-11 02:20:46 +03:00
2015-09-11 02:20:46 +03:00
2015-09-11 02:20:46 +03:00
2015-09-11 02:20:46 +03:00
2015-09-08 02:05:49 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-03-24 16:41:08 +03:00
2015-03-24 16:41:08 +03:00
2015-05-13 16:13:13 +02:00
2015-05-13 16:13:13 +02:00
2014-12-11 17:50:31 +03:00
2014-12-11 17:50:31 +03:00
2015-11-27 15:51:11 +03:00
2015-11-27 15:51:11 +03:00
2015-08-10 16:24:04 +03:00
2015-08-10 16:24:04 +03:00
2015-05-13 16:13:13 +02:00
2015-05-13 16:13:13 +02:00
2017-11-30 12:49:24 +03:00
2014-12-18 21:06:15 +03:00
2014-12-18 21:06:15 +03:00
2014-12-18 21:06:15 +03:00
2014-12-18 21:06:15 +03:00
2014-12-18 21:06:15 +03:00
2015-06-12 09:23:31 +03:00
2015-06-12 09:23:31 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-06-18 19:28:05 +03:00
2015-06-18 19:28:05 +03:00
2015-11-02 15:15:39 +03:00
2015-11-02 15:15:39 +03:00
2015-05-13 16:13:13 +02:00
2015-06-16 21:15:37 +03:00
2015-06-16 21:15:37 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-07-09 20:47:48 +03:00
2016-05-12 17:26:54 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2016-02-11 14:25:16 +03:00
2016-02-11 14:25:16 +03:00
2015-06-18 19:28:05 +03:00
2015-06-18 19:28:05 +03:00
2015-11-02 15:15:39 +03:00
2015-11-02 15:15:39 +03:00
2015-08-10 16:24:04 +03:00
2015-08-10 16:24:04 +03:00
2015-12-25 18:50:48 +03:00
2015-12-25 18:50:48 +03:00
2015-12-25 18:50:48 +03:00
2015-12-25 18:50:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2015-08-10 16:24:04 +03:00
2015-08-10 16:24:04 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-04-01 13:41:22 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2017-04-21 13:32:32 +03:00
2017-04-21 13:32:32 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-10-24 19:50:55 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2016-02-11 14:25:22 +03:00
2016-02-11 14:25:22 +03:00
2016-02-11 14:25:22 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-02-11 14:40:26 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2015-11-02 15:15:39 +03:00
2015-10-19 16:03:18 +03:00
2015-11-02 15:15:39 +03:00
2015-06-16 21:15:27 +03:00
2015-06-16 21:15:27 +03:00
2015-11-02 15:15:32 +03:00
2015-11-02 15:15:32 +03:00
2017-05-10 14:49:53 +03:00
2017-05-10 14:49:53 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2015-09-25 08:29:26 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2014-12-08 16:30:04 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:53 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-03-21 03:28:54 +03:00
2015-07-09 20:47:48 +03:00
2016-05-12 17:26:54 +03:00
2015-07-09 20:47:48 +03:00
2015-07-09 20:47:48 +03:00
2015-12-18 15:05:39 +03:00
2015-12-18 15:05:39 +03:00
2015-12-18 15:05:39 +03:00
2015-12-18 15:05:39 +03:00
2015-12-18 15:05:39 +03:00
2015-12-18 15:05:39 +03:00
2015-12-25 18:50:48 +03:00
2015-12-25 18:50:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:48 +03:00
2015-11-10 16:47:41 +03:00
2015-10-14 20:39:35 +03:00
2015-10-14 20:39:35 +03:00
2017-05-26 13:58:46 +03:00
2015-11-10 16:47:41 +03:00