Message:

   The following issue has been re-assigned.

   Assignee: Matthias Germann (mailto:[EMAIL PROTECTED])
---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-688

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-688
    Summary: Generated files for bean class with no package won't compile
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

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

   Assignee: Matthias Germann
   Reporter: Marcin Mieszek

    Created: Mon, 27 Oct 2003 7:32 PM
    Updated: Sat, 26 Mar 2005 4:14 AM

Description:
When I have a class without specified package, XDoclet does not omit package 
declaration in generated files. This is modified StatefulBean from samples.

From:

/**
 * @ejb.bean
 *     name="Stateful"
 *     type="Stateful"
 *     description="Description Bean"
 *
 * @jboss.bean ejb-name="Stateful"
 *             jndi-name="StatefulHome"

 * @ejb.home generate="false"

 */
public abstract class StatefulBean implements javax.ejb.SessionBean {
    private String x;

    /**
     * @ejb.interface-method
     */
    public String getName() {
        return "Foobar";
    }

    /**
     * @ejb.create-method
     */
    public void ejbCreateWithParam(String x) {
        this.x = x;
    }

    /**
     * @ejb.create-method
     */
    public void ejbCreate(String x) {
        this.x = x;
    }

}

I got:


/*
 * Generated by XDoclet - Do not edit!
 */
package ;

/**
 * Home interface for Stateful.
 * @xdoclet-generated at 28-10-03
 * @copyright The XDoclet Team
 * @author Xi Systems
 * @version ${version}
 */
public interface StatefulHome
   extends javax.ejb.EJBHome
{
   public static final String COMP_NAME="java:comp/env/ejb/Stateful";
   public static final String JNDI_NAME="Stateful";

   public .Stateful createWithParam(java.lang.String x)
      throws javax.ejb.CreateException,java.rmi.RemoteException;

   public .Stateful create(java.lang.String x)
      throws javax.ejb.CreateException,java.rmi.RemoteException;

}

Please notice "package ;" and ".Stateful".


---------------------------------------------------------------------
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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to