Uploaded image for project: 'JBoss POJO Cache'
  1. JBoss POJO Cache
  2. PCACHE-3

PojoCache to deal with POJO without no-arg constructor

    Details

      Description

      This came up from a forum post that uses SynchronizedCollection. Here is the problem that Professor Chiba pointed out:

      ------
      Ben,

      SynchronizedRandomAccessList class has only the following constructors:

      static class SynchronizedRandomAccessList<E>
      extends SynchronizedList<E>
      implements RandomAccess {

      SynchronizedRandomAccessList(List<E> list)

      { super(list); }

      SynchronizedRandomAccessList(List<E> list, Object mutex)

      { super(list, mutex); }

      :
      }

      I can modify Javassist so that the above constructors (visible only within the pacakge) will be copied to the generated class. But I am not sure that PojoCache can work with that generated class since it does not have a no-arg constructor.

      Chiba
      --------

      No easy solution to this problem now. Maybe use the exisiting serialization for once during replication?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jason.greene Jason Greene
                Reporter:
                ben.wang Ben Wang (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 weeks
                  2w
                  Remaining:
                  Remaining Estimate - 2 weeks
                  2w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified