The following issue has been updated:

    Updater: Andrew Stevens (mailto:[EMAIL PROTECTED])
       Date: Wed, 24 Nov 2004 6:15 PM
    Changes:
             summary changed from bean class with no specified class to 
Generated files for bean class with no package won't compile
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-688?page=history

---------------------------------------------------------------------
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: xdoclet-devel (Use for new issues)
   Reporter: Marcin Mieszek

    Created: Mon, 27 Oct 2003 7:32 PM
    Updated: Wed, 24 Nov 2004 6:15 PM

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://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to