Quantcast
Channel: User blacktide - Stack Overflow
Viewing all articles
Browse latest Browse all 49

Answer by blacktide for Kotlin -> Java API call is not using the method I want because varargs method is swallowing all method arguments

$
0
0

In Kotlin Array<Int> is a Integer[] under the hood, and IntArray is an int[] (see here).

To resolve the issue, you can change c to c.toIntArray() on the last line:

targetJdbcTemplate.update(sql, p, c.toIntArray())

Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>