ProxyRecordMethodWrapper.call doesn't support return values that are neither Java classes, nor proxy records. There are currently two of those: stat and slot (and no proxy record currently returns a slot, and only 1 returns a stat, which is why this bug seems obscure)
This causes
to throw an exception
This causes
JavaScript:
myClass().primestat