Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1061241

Summary: DM allows to extend an abstract class and cannot handle it
Product: [Retired] JBoss BPMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Data ModelerAssignee: Walter Medvedeo <wmedvede>
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: kverlaen, lpetrovi, rrajasek
Target Milestone: ER1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:02:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zuzana Krejčová 2014-02-04 15:30:29 UTC
Description of problem:
If there is an abstract class available to your project (from the project's imports suggestions), Data Modeler will allow you to extend that class. The model will be saved successfully. If you close and reopen the Data Modeler, the extending class is gone.

Trying to build the project will of course fail and the Problems panel informs you that "The type ExtendingClass must implement the inherited abstract method AbstractClass.abstractMethod()".

Looking into the DM, seeing that the new class is not there, you might think everything is okay then, but the DM just doesn't show the class - it's still in the project and you have to remove it or fix it by other means.

There is no way for the user to know that some class from the project's import suggestions is abstract. Since the Data Modeler cannot handle extending such classes, it should probably not even offer them as a possible superclass when creating a new class/data object. 
(Though good support for that use case would be much better.)


As a slightly funny side note:
Every new project has java.lang.Number (which is abstract) automatically added to project's import suggestions. New users therefore don't have to go far in search for a class to extend when exploring the Data Modeler.


Version-Release number of selected component (if applicable):
BPMS 6.0 CR2

Comment 1 Walter Medvedeo 2014-02-07 10:08:22 UTC
It's no longer permited to extend Abstract classes.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1058315