[jbossseam-issues] [JBoss JIRA] Resolved: (JBSEAM-2021) validate package combination

Dan Allen (JIRA) jira-events at lists.jboss.org
Tue Oct 2 12:46:03 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-2021?page=all ]

Dan Allen resolved JBSEAM-2021.
-------------------------------

    Resolution: Done

commit message:

Ensure that if one of the packages (action, model, or test) uses the default package
then all the packages (action, model, and test) use the default package
this validation is placed because Java cannot import packages from the default package into classes
that do not use the default package, thus creating an impossible situation for the developer

> validate package combination
> ----------------------------
>
>                 Key: JBSEAM-2021
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2021
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Tools
>    Affects Versions: 2.0.0.CR1
>            Reporter: Dan Allen
>         Assigned To: Dan Allen
>            Priority: Minor
>             Fix For: 2.0.0.CR2
>
>         Attachments: JBSEAM-2021-v1.txt
>
>   Original Estimate: 15 minutes
>  Remaining Estimate: 15 minutes
>
> If one of the packages specified (action, model, or test) in the seam-gen setup script is the default package (empty package), then all of the packages must be the default package. Java does not allow classes in the default package to be imported into classes that are not in the default package. Allowing this situation will lead to a project that cannot compile.
> The validation I would like to have put in place is that if one package uses the default, then they all have to use the default.
> For instance, the following would be illegal
> action.package=
> model.package=com.company.model
> test.package=com.company.test
> This validation would happen during the validate-project target.

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

        



More information about the seam-issues mailing list