We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdfd3fa commit 163f737Copy full SHA for 163f737
1 file changed
src/main/java/org/codehaus/groovy/vmplugin/v8/Selector.java
@@ -323,10 +323,11 @@ public void chooseMeta(MetaClassImpl mci) {
323
324
selectionBase = sender;
325
if (sender != mci.getTheClass()) {
326
+ final Class<?> thisType;
327
if (GroovyCategorySupport.hasCategoryInCurrentThread()) { // slow path for category property
328
selectionBase = mci.getTheClass();
- } else if (getThisType(sender).isInstance(receiver)) { // GROOVY-5438 for private property
329
- selectionBase = getThisType(sender);
+ } else if ((thisType = getThisType(sender)).isInstance(receiver)) { // GROOVY-5438 for private property
330
+ selectionBase = thisType;
331
}
332
333
if (LOG_ENABLED) LOG.info("selectionBase set to " + selectionBase);
0 commit comments