Menu

#977 Cannot derive instance of class CIM_IndicationSubscription

Function
closed-fixed
5
2007-12-12
2007-08-17
No

When we try to create an indication subscription instance we run into the problem, that during derive instance the jsr48 client insists on the reference class names for properties to be exactly those classes that are specified in the class definition. It does not accept subclass for reference properties.
But in the case of indication subscriptions, the handler property will usually be a reference to a subclass of CIM_ListenerDestination, such as CIM_ListenerDestinationCIMXML.

Since the java client is not able to determine the inheritance relationship of classes to allow for proper type checking of reference parameters, I propose to relax the type checking for reference properties.

Attaching a patch that I have been using as workaround so far.

Discussion

  • Robert Kieninger

    Fix proposal

     
  • Robert Kieninger

    Logged In: YES
    user_id=1215482
    Originator: YES

    Also adding the source code that leads to the problem
    File Added: failing-code.java

     
  • Robert Kieninger

    Code example

     
  • Endre Bak

    Endre Bak - 2007-08-21
    • assigned_to: nobody --> krawalter
    • status: open --> open-fixed
     
  • Endre Bak

    Endre Bak - 2007-08-21

    Logged In: YES
    user_id=1508775
    Originator: NO

    File Added: patch.1776114_Cannot_derive_instance_of_class_CIM_IndicationSubscription.txt

     
  • Robert ILLES

    Robert ILLES - 2007-09-22

    Logged In: YES
    user_id=1755223
    Originator: NO

    Patch sent for community review. During a 2 week period any
    exploiter may comment on the patch, request changes or turn it
    down completely (with good reason).
    For the time being the patch is part of the "Experimental" branch
    in CVS.

     
  • Robert ILLES

    Robert ILLES - 2007-10-12

    Logged In: YES
    user_id=1755223
    Originator: NO

    The community review is completed and we received no substantial
    critisism. Therefore the patch has been approved and merged into
    the "HEAD" branch. The next release will pick it up.

     
  • Robert ILLES

    Robert ILLES - 2007-10-12
    • status: open-fixed --> pending-fixed
     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 60 days (the time period specified by
    the administrator of this Tracker).

     
  • lupusalex

    lupusalex - 2007-12-20

    Logged In: YES
    user_id=1363884
    Originator: NO

    The patch was picked up by release 2.0.4 and will be closed.

     

Log in to post a comment.