Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-169

Using JDK proxied service in ServicePropertyFactory doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.1
    • library
    • None

    Description

      Inside ServicePropertyFactory.addInfrastructure line 102:

      Class targetServiceClass = ClassFabUtils.getInstanceClass(targetService, serviceInterface);

      According to javadoc for ClassFabUtils.getInstanceClass if targetService is a JDK proxy this function will return serviceInterface, which isn't right since serviceInterface is the interface class for the property service you are trying to create NOT the interface for the targetService.

      I'm trying to use this with a service that uses the hivetranse UserServiceModel which is using JDK proxys (http://hivetranse.sourceforge.net/javadoc/net/sourceforge/hivelock/UserServiceModel.html).

      Attachments

        Activity

          People

            jwcarman James Carman
            ajgregory Aj Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: