Aegis trying to instantiate abstract class
------------------------------------------

                 Key: XFIRE-905
                 URL: http://jira.codehaus.org/browse/XFIRE-905
             Project: XFire
          Issue Type: Bug
          Components: Aegis Module
    Affects Versions: 1.2.4
         Environment: Windows XP Professional 32bits
Java 5.0
Eclipse
Maven2
            Reporter: Paulo Cesar Silva Reis
         Assigned To: Dan Diephouse


I have a big problem, look my example:

public abstract TemplateNode {}

public class FieldTemplate extends TemplateNode{};
public class FieldGroupTemplate extends TemplateNode{};

public class Template {
    private List<TemplateNode> nodes;
   ..
}

Template t = new Template();
t.add(new FieldTemplate());
t.add(new FieldGroupTemplate());
// get service

service.insertTemplate( template );

****
I get error, 'cannot instantiate class null'.
In debug, i found this:
  if(isInterface) {

  } else if (isException) {

 } else {
     object = clazz.newInstance(); // but is abstract!!!
}
Xfire is trying to instantiate TemplateNode but he can't, because is abstract.
What i need to do?

Tkz.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to