cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

Calling method of anonymous class parent creates infinite recursion #740

Open vorth opened 1 year ago

vorth commented 1 year ago

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.