Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3441

Declared Beans with interface-typed fields cause exceptions when evaluating equals() and hashCode()

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • None

    Description

      Given an interface:
      interface SomeInterface {
      int getId();
      void setId(int id);
      }

      and a declared bean:
      declare SomeFact (
      x : SomeInterface @key
      )

      the system throws an exception "a class is expected but an interface is found" when evaluating the hashCode method

      Attachments

        Activity

          People

            dsotty Davide Sottara (Inactive)
            dsotty Davide Sottara (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty