Hello,
I evaluate Rose/J and tried to model an interface which extends two classes:
public interface PProspectRemote extends EJBObject, PProspect { ...}
In the Rose/Java Mapping document this is allowed:
1.1 INTERFACE
Maps to a Rose class whose stereotype is <Interface>.
JAVA SEMANTICS
[modifiers] interface identifier [ extends super1, ...] {
field_1;
field_2;
...;
method_1;
method_2;
...
};
modifiers = defined as follows:
public = class' export selection
(implementation type is used for package visibility).
abstract = class' abstract selection
identifier = class name
super1, ... = name of superclass(es), if any, which
represent extended interfaces
field = class attribute/role
method = class operation
However, I get a warning "A Java class can only have one superclass". Which
is true, but here we have an interface, in this case an EJBRemoteInterface.
The generated code looks like this:
public interface PProspectRemote extends javax.ejb.EJBObject {...}
At first I specified the generalize-relationship to EJBObject manually until
I found out, that this is not necessary, since it comes with the stereotype.
When I removed the relationship, the warning disappeared but the generated
code still lacks the second class. Is that a bug ?
I looked through the FAQ and this news archive but could not find anything
about that.
Thanks
Thomas G�nther
Heyde AG
Germany
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************