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

Unable to extend a declared class if that class has a parent and is declared in another package

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

    XMLWordPrintable

Details

    • Hide

      Create a knowledge base with:
      package p1
      declare A extends B ...

      Try to compile the following (using the kbase classloader)
      package p2
      import p1.A;
      declare A ... <<<< failure
      declare C extends A ...

      "declare A" is currently necessary, but will fail because A needs to extend B
      (which the author of the second package might not know or want to restate).
      "declare A extends B" fails, too, because it is seen as a new DEFINITION and
      not as a REDECLARATION.

      Show
      Create a knowledge base with: package p1 declare A extends B ... Try to compile the following (using the kbase classloader) package p2 import p1.A; declare A ... <<<< failure declare C extends A ... "declare A" is currently necessary, but will fail because A needs to extend B (which the author of the second package might not know or want to restate). "declare A extends B" fails, too, because it is seen as a new DEFINITION and not as a REDECLARATION.

    Attachments

      Activity

        People

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

          Dates

            Created:
            Updated:
            Resolved:
            Archived:

            PagerDuty