I am not surprised that there are design reasons for not using import
statements, which was why I made that caveat in my original posting. My
reason for preferring imports over fully qualified classnames is purely for
esthetic reasons. I find it much easier to read the code.

Joel

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Aslak
Hellesøy
Sent: Tuesday, March 25, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] Imports vs. complete package names




> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Joel Rives
> Sent: 25. mars 2003 22:34
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] Imports vs. complete package names
>
>
> I seem to recall some discussion about this when I first joined this email
> list. However, I was too new to xDoclet then to focus on it. I skimmed
> through the archives and was unable to locate the earlier
> discussion. So, I
> apologize for bringing it up again but inquiring minds want to know.
>
> By default and, perhaps, by design, the ejbdoclet generated code does not
> make use of import statements. Instead, all references include complete
> package names. Is there some way to change this behavior? Is
> there some flag
> or attribute that can be set which will tell ejbdoclet to use import
> statements?
>

It's not possible to tell XDoclet/EJBDoclet to use import statements in the
generated code. The reason we nuked the import statements was that sometimes
a generated class would import too much (like EJB interfaces importing the
bean implementation). -And sometimes this would cause ambiguities, such as
when someone imports foo.Zap and bar.Zap and refer to Zap in the code.

Why would you want import statements instead of fully qualified class names
(fqcn)?

Aslak

> Joel Rives
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to