Workaround for java.lang.IllegalAccessError: class XXX tried to access protected...
authorAndrei Kuznetsov <andrei.kuznetsov@jetbrains.com>
Thu, 17 Sep 2020 15:04:25 +0000 (18:04 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Fri, 18 Sep 2020 23:00:19 +0000 (23:00 +0000)
com.android.tools.idea.gradle.structure.configurables.variables.VariablesTable$NameCellEditor tried to access protected field javax.swing.JTable.selectionBackground

GitOrigin-RevId: 2442484e46a9ec44194760a8d2021dc99ae6b2e9

android/src/com/android/tools/idea/gradle/structure/configurables/variables/VariablesTable.kt

index 86e94b59dd2afb65bd00ce459963277ccc50806f..65b28a057f97c456e4941b712d4d124857668543 100644 (file)
@@ -423,7 +423,7 @@ class VariablesTable private constructor(
         panel.add(nodeIconLabel)
       }
       panel.add(textBox)
-      panel.background = table.selectionBackground
+      panel.background = table.getSelectionBackground()
       textBox.text = value as String
 
       panel.addFocusListener(object : FocusAdapter() {