[LL FIR, Java] fix resolve contract violation from java symbol provider
To create a smart psi type pointer, IJ Platform uses resolve. We cannot use resolve from JavaSymbolProvider, as it may lead to resolve contract violation. ^KT-59133 fixed
This commit is contained in:
committed by
Space Team
parent
f590e88bdd
commit
b8f15cbbb3
+21
@@ -0,0 +1,21 @@
|
||||
// FILE: useSite.kt
|
||||
|
||||
fun foo() {
|
||||
InspectionProfileImpl.INIT_INSPECTIONS = true
|
||||
}
|
||||
|
||||
// FILE: InspectionProfileImpl.java
|
||||
public class InspectionProfileImpl extends NewInspectionProfile {
|
||||
public static boolean INIT_INSPECTIONS;
|
||||
|
||||
public <T extends InspectionProfileEntry> T getUnwrappedTool() { }
|
||||
}
|
||||
|
||||
|
||||
// FILE: NewInspectionProfile.kt
|
||||
import InspectionProfileImpl.INIT_INSPECTIONS
|
||||
|
||||
abstract class NewInspectionProfile
|
||||
|
||||
// FILE: InspectionProfileEntry.java
|
||||
public abstract class InspectionProfileEntry {}
|
||||
Reference in New Issue
Block a user