jsweet icon indicating copy to clipboard operation
jsweet copied to clipboard

Calling method of anonymous class parent creates infinite recursion

Open vorth opened this issue 1 year ago • 0 comments

See the transpiled code for AbstractMap.keyset().size() in j4ts:

https://github.com/j4ts/j4ts/blob/a3231753a5d3e38458821ff2bf333e6956792e85/src/main/java/java/util/AbstractMap.java#L245

The code generated for return AbstractMap.this.size(); is as if it said return this.size();, which is obviously recursive.

vorth avatar Sep 23 '22 22:09 vorth