# Kotlin-Java Interop Can Cause Recursive Property Calls

DevFeed: [Kotlin-Java Interop Can Cause Recursive Property Calls](<https://devfeed.tech/articles/kotlin-stackoverflow-error-28672.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2018/11/01/kotlinstackoverflow/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2018-11-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Java](<https://devfeed.tech/topics/java.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>)

Tags: [android-studio](<https://devfeed.tech/tags/android-studio.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [legacy-code](<https://devfeed.tech/tags/legacy-code.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [recursion](<https://devfeed.tech/tags/recursion.md>), [stackoverflow](<https://devfeed.tech/tags/stackoverflow.md>)

## AI overview

This article explains how Kotlin-Java interop can cause a property access to call itself recursively when inheriting from a Java class. It examines the resulting bytecode and notes that Android Studio can warn about the recursion.

## Source excerpt

Java interop is one of the best features of the Kotlin language, yet sometimes this also can cause unforeseen issues... Puzzle # Disclaimer, the example below is a consequence of legacy code and only serves to demonstrate a Kotlin puzzler.