dev@glassfish.java.net

Re: [v3] Metro dependency on com.sun.mail.util

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Thu, 21 Aug 2008 23:01:50 -0700

Sahoo wrote:
> Bill,
>
> Bill Shannon wrote:
>> Sahoo wrote:
>>> Two issues:
>>> 1. I don't think com.sun.mail.util package is intended to be
>>> exported. Let's wait for Bill Shannon, who is the owner of JavaMail,
>>> to confirm this. At the moment, can you mark that import as optional
>>> (resolution:=optional)?
>>
>> It needs to be exported, for two reasons...
>>
>> Like the sun.* classes in the JDK, for better or for worse, some
>> customers
>> use some classes in that package directly.
>>
> Has anything changed recently? When we had made the necessary changes in
> your private JavaMail project to add OSGi metadata, you had marked this
> package as private. The packages that you wanted to be exported from
> mail.jar were:
> javax.mail.*; version=${mail.spec.version},
> com.sun.mail.imap,
> com.sun.mail.pop3,
> com.sun.mail.smtp

Yes, my mistake. I think I need to export com.sun.mail.util as well.

I need to think about the export list more carefully, especially
with regard to our recent ServiceLoader discussion and the implication
for similar aspects of JavaMail.