castor
  1. castor
  2. CASTOR-1342

Proxied classes need to be identified and receive special processing

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.2
    • Component/s: XML
    • Labels:
      None
    • Number of attachments :
      5

      Description

      Proxy classes (usually via CGLIB proxies) need to be identified as proxies and treated in such a way that the proxy enhancements do not interfere with marshalling/unmarshalling. Two different issues have arisen with proxies:

      http://www.mail-archive.com/user@castor.codehaus.org/msg02345.html
      http://www.mail-archive.com/user@castor.codehaus.org/msg02489.html

      First and foremost, Castor needs to identify when an object/class is a proxy instead of the real thing. According to the CGLIB mailing list:

      http://sourceforge.net/mailarchive/message.php?msg_id=9827333

      this can be done by finding if a class is an implementation of the net.sf.cglib.proxy.Factory interface (this may need to be user adjustable for other proxying libraries – if there are any).

      Once the proxy has been identified, this issue may need to be split into three sub-issues:

      1. Looking up ClassDescriptors based on a proxy class (get the proxy's superclass to look up?)
      2. Introspecting proxy classes (don't introspect the proxy, introspect the original?)
      3. Mapping proxy classes (not sure about this one... maybe the previous two will solve this one)

        Activity

        Werner Guttmann made changes -
        Field Original Value New Value
        Fix Version/s 1.0 M4 [ 12414 ]
        Stephen Bash made changes -
        Assignee Stephen Bash [ bash ]
        Stephen Bash made changes -
        Fix Version/s 1.0 [ 11700 ]
        Fix Version/s 1.0 M4 [ 12414 ]
        Werner Guttmann made changes -
        Fix Version/s 1.0 [ 11700 ]
        Fix Version/s 1.0.1 [ 12535 ]
        Werner Guttmann made changes -
        Fix Version/s 1.1 [ 11701 ]
        Fix Version/s 1.0.1 [ 12535 ]
        Aslak Knutsen made changes -
        Attachment castor-testcase-proxy.jar [ 22466 ]
        Werner Guttmann made changes -
        Assignee Stephen Bash [ bash ] Werner Guttmann [ wguttmn ]
        Werner Guttmann made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Aslak Knutsen made changes -
        Werner Guttmann made changes -
        Attachment patch.c1342.20080827.txt [ 22499 ]
        Werner Guttmann made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Werner Guttmann made changes -
        Fix Version/s 1.1.1 [ 13080 ]
        Fix Version/s 1.1 [ 11701 ]
        Werner Guttmann made changes -
        Fix Version/s 1.2 [ 13081 ]
        Fix Version/s 1.1.1 [ 13080 ]
        Werner Guttmann made changes -
        Fix Version/s 1.1.2 [ 13440 ]
        Fix Version/s 1.2 [ 13081 ]
        Ralf Joachim made changes -
        Fix Version/s 1.1.3 [ 13559 ]
        Fix Version/s 1.1.2 [ 13440 ]
        Ralf Joachim made changes -
        Attachment patch-C1342-20070621.txt [ 28093 ]
        Ralf Joachim made changes -
        Assignee Werner Guttmann [ wguttmn ] Ralf Joachim [ rjoachim ]
        Ralf Joachim made changes -
        Attachment patch-C1342-20070719-01.txt [ 28499 ]
        Ralf Joachim made changes -
        Attachment patch-C1342-20070724-01.txt [ 28597 ]
        Ralf Joachim made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Werner Guttmann made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ralf Joachim made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Ralf Joachim made changes -
        Attachment patch.c1342.20080827.txt [ 22499 ]
        Ralf Joachim made changes -
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Ralf Joachim made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ralf Joachim
            Reporter:
            Stephen Bash
          • Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: