Bug 1631576, Cannot anonymous subclass with arguments

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Bug 1631576, Cannot anonymous subclass with arguments

Tom Moore-5
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.

Patch is as follows.

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
Beanshell-developers mailing list
[hidden email]

allocation.patch (2K) Download Attachment