[CHERRY PICKED FROM IJ] Fix incremental build after changing Java const used as class property

Report Java static final constant with InlineConstantTracker, used as class property in Kotlin for further registration in JPS. Add tests.

#KT-49177 Fixed

GitOrigin-RevId: 01a58cf10f5419d70f0d80cbaa9bcd9732ff0547
Original commit: https://github.com/JetBrains/intellij-community/commit/d077f3b3217c8d88518fec7249228cb29df2e0ff
This commit is contained in:
Aleksei.Cherepanov
2021-10-12 19:00:36 +03:00
committed by Nikita Bobko
parent 3b6cdb071f
commit 2ea089f0d2
3 changed files with 9 additions and 5 deletions
@@ -1,5 +1,7 @@
public class JavaClass {
public class Inner {
public static final String CONST = "B";
public class InnerInner {
public static final String CONST = "B";
}
}
}
}