Bug 1631576, Cannot anonymous subclass with arguments
It looks like this is a dupe of bug #1627493.
The problem is that the generated code does not know how to call the
superclass constructor. The default is to insert a default no-args
constructor, which is why this works in some situations and not
I have made a hack/patch that fixes this behavior. It basically
inserts a method that looks like a constructor and calls super with
the argument types specified in the allocator. This is as localized
and non-intrusive as I could think to make it. It seems to work.