Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-37

Extended interfaces beyond first are ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None

    Description

      When generating wrapper for a Java interface that extends more than one other interface, then only the first extended interface is used when generating the C++ class.

      In cpp.header(), the code snippets:

          if cls.isInterface():
              if interfaces:
                  superCls = interfaces.pop(0)
      

      and:

              line(out, indent, 'class %s%s : public %s {',
                   _dll_export, cppname(names[-1]), absname(cppnames(superNames)))
      

      are likely responsible.

      Attachments

        1. jcc.multiple.inheritance.patch
          12 kB
          Jesper Mattsson
        2. Test.zip
          7 kB
          Jesper Mattsson

        Activity

          People

            Unassigned Unassigned
            jmattsson Jesper Mattsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: