The background makes sense, and along the lines I imagined.
To correct my initial workaround idea, as you illustrate, it has to be a sub-class. A good idea to just define it in the other API, as opposed to creating a generic one in both.
I split in two projects, each having two source folders. The the common folder in project part is linked to a source folder in the other part. So one project is self-contained (JPCT-AE), the other borrows the common folder.
To correct my initial workaround idea, as you illustrate, it has to be a sub-class. A good idea to just define it in the other API, as opposed to creating a generic one in both.
QuoteI split my project into three parts. One contains the common stuff and will be compiled against jPCT-AE
I split in two projects, each having two source folders. The the common folder in project part is linked to a source folder in the other part. So one project is self-contained (JPCT-AE), the other borrows the common folder.