Message:

   The following issue has been re-assigned.

   Assignee: xdoclet-devel (Use for new issues) 
(mailto:xdoclet-devel@lists.sourceforge.net)
---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-143

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-143
    Summary: Problem with generated interfaces and 'local-extends' attribute
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2 Beta 1

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Alex Coyle

    Created: Thu, 7 Nov 2002 11:08 PM
    Updated: Sat, 29 Jan 2005 10:19 AM
Environment: Linux RedHat 8.0, kernel 2.4.18-14, j2se 1.4.1, ant 1.5.1

Description:
Suppose the following EntityBean classes:

1) public class AbstractBean implements javax.ejb.EntityBean

(The source code for this bean is not available to XDoclet, the bean class is 
inside a jar file.)

2) public class ConcreteBean extends AbstractBean

(Source code available)

Currently with Xdoclet 1.2beta1, the generated local interfaces (for me) seem 
to be:

public interface ConcreteLocal extends .AbstractLocal

public interface ConcreteLocalHome extends .AbstractLocalHome

clearly, the leading '.' is a syntax error. However, even without this error, 
XDoclet is assuming that interfaces exist for AbstractBean when they may in 
fact not. (For example, AbstractBean is inside a jar file).

The way round this normally would be to use the XDoclet @ejb tag 
'local-extends'. for example, in the 'ConcreteBean' class:

@ejb:interface local-class = "com.foo.ConcreteLocal"
               local-extends = "javax.ejb.EJBLocalObject"
               generate = "local"

I would expect this to now generate the following Local interface:

public interface ConcreteLocal extends javax.ejb.EJBLocalObject

However, this does not work. 'local-extends' seems to work fine if the bean 
class where it is defined *implements* 'EntityBean', 'SessionBean' etc 
directly, but not if the bean class *extends* some other class.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to