Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-56

Supporting proxies with no no-arg constructors

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.1.0.Beta1
    • None
    • Scopes & Contexts
    • None

    Description

      On Tue, May 12, 2009 at 1:11 AM, Jason T. Greene
      <jason.greene@redhat.com> wrote:
      Hi Everyone,

      As a non-standard extension, I was thinking that we could support generation
      proxies of classes not containing no-arg constructors by using various
      techniques that are supported by most JDKs.

      This would involve generating a proxy with a constructor call passing bogus
      parameters. Then a JDK specific approach would be used to instantiate the
      proxy class:

      Sun, IcedTea, Mac: Unsafe.allocateInstance() - The most efficient
      Above + IBM, JRockit: ReflectionFactory.newConstructorForSerialization()

      Attachments

        Issue Links

          Activity

            People

              nickarls Nicklas Karlsson (Inactive)
              pmuiratbleepbleep Pete Muir (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: