Hi,
I am a little confused about the method newInstance() that is generated in the abstract domain classes. Example: According the static method in MyObject the following should return an instance of MyObjectImpl MyObjectImpl mm = MyObject.Factory.newInstance(); But Eclipse complains that it cannot cast form MyObject to MyObjectImpl and so it does not compile. But when I change to: MyObject mm = MyObject.Factory.newInstance(); It compiles. I was surprised that this works since MyObject is abstract. The only way I found if I want to have an instance of MyObjectImpl is to use an explcit cast: MyObjectImpl mm = (MyObjectImpl)MyObject.Factory.newInstance(); I was wondering if it was corect to do it like this or not. Thanks _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3733#3733 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user