Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-platform-dev] lassNotFoundException: com.sun.mail.util.PropUtil when using javax.mail.internet.InternetAddress
  • From: Patrick Reinhart <patrick@xxxxxxxxx>
  • Date: Mon, 21 Oct 2019 22:32:51 +0200
  • Autocrypt: addr=patrick@xxxxxxxxx; prefer-encrypt=mutual; keydata= mQENBFWKrZoBCACmcfZmvG3P0lJC6f2tCDGslT7D4rG5QJ5NAbGlrUrOcqT5NPYwdGWWWm/+ DwvQQT6XPGG0AukfI0P42tfKotohyMNF76YNbjqIyV4rCJc7Qlw2dl9deN2S0jxxwgA9AeFH IE39lpIdoz1QMu7h6oXZBW/SsRyAF8PP84neS/c2FkOXqq+W6Whzr7F4abeMbpsxjwj1P7lE bc8QvBQQZxXdDh3FUuyRDsg7dBbdspeP/XUZ5p6WuNnJMQY8E5nXOy27wO0sz3LG8FAMp1C8 CBhp4rKjRO4+P+cXYktwbrA3tBJ5EbED7MGt7TDLI0WxJeTJx6LbuozzDKXGqA7ZdX1hABEB AAG0LFBhdHJpY2sgUmVpbmhhcnQgKFJlaW5pKSA8cGF0cmlja0ByZWluaS5uZXQ+iQE4BBMB AgAiBQJViq2aAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRA5h25eHVYYBwSoCACP dlGURnjDOQidRMqmQ07ahZ0A3ZX1lfs4k0OJbWDeuGui2v+j6ww5P5QJkTjY73Vt06wm/zbp Z4dmfXH4QnNSINXa+gPxe7s/mFFBv3gIq4QaWI/tcQTdIkNpmEf5iz2f+R9VzXkUDqn5x8Ea 3rPbFjutTPXYz8G/OVHmJPWniza1xIU6bD3ZtctBIpueGiiatjEz/EotPmCfCKCtR2ItChWs Qby3Mpl3MvZPp+blrTnYerYbsCLm+ph6nv6J1ovYnZYp1nyEoz8tx4rF7Mp4etV/elKRIqjQ LWHXNwo/VnBbV7iXUlUO5AvZGHQeibrZAqv+EX6SXnYAbGYmTneuuQENBFWKrZoBCADq7LGe Rh0+1Ieb5MD3fNkmmZAB0HpfQoOzVulBx/8r2De15XX8Bkcaxl7FQsNoTyCXMF5ML4vIDfU0 drmgzZ2+Vh0cVPZP7EZ41EHg6KgHs0mdC0plWINf40ttv5A0kM6Zl5yHW3jW8I9KLOdftjWr SZ9SSxJwUZQ+wZDuBsfb8LOW2x5dbILyY7fi1eRVK3OVO2WPoP8vQ+lBHQI+8Dq04FgQq9tq lAMgdpyDSnXkvYiLe9CumYyeB87rAUpywWHbOcPusIxPRh+M70nCxw+YvWtx977oOBjh0fdp fmnURyVbnZuSeg8TXfrVAQ+nO6gSJ5rfjmFm734AlYq3t1DRABEBAAGJAR8EGAECAAkFAlWK rZoCGwwACgkQOYduXh1WGAfPPwf8CnPeJLmLKLvIESlpDUPSMgnUC19rfqPyZtjiqvU+FRFA NKoxswBxv5rk8anj8Fm2MhfF3CRYNvW1GYAMHnJmm4aD0o/k7ES32AweLAdxf2CH7FpM4oaO u3LoLFM9pQtXeAvfC1xdZ3vEUMTq7Qx0RGF7XiPKAw+h0A45hSKeQx+qVfvcM8lHl18Lu5Os cw197/UpB5FFZAPz7rWM2yrVMDjlh4YmB+sybwd6i0v50vu/F4litw5ggjVg+L477QAERAaV 1iMhXsjIPvNedNMetmj8Gsrf/sxP5BildbEn/60jOX7sSumISCTX9YAK8hEIDJCyqSskwK8n ThpeEnJM9w==
  • Delivered-to: jakartaee-platform-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jakartaee-platform-dev>
  • List-help: <mailto:jakartaee-platform-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev>, <mailto:jakartaee-platform-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jakartaee-platform-dev>, <mailto:jakartaee-platform-dev-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

Hi Bill,

I was maybe not clear enough...

It is absolutely clear to me that the _implementer_ is free to use any
non public implementation-specific classes in order to implement the
API. What I think is wrong in this case, is that the _API_ is referring
_implementation-specific_ classes in that case. That said, it is also no
problem if the API contains non public implementation classes, that are
not visible to me as an implementer though.

But what if I would like to implement this Mail API (for example within
a test case), how would I implement the InternetAddress behavior as I do
not have any access to those non public classes then?

-Patrick


Am 21.10.19 um 21:21 schrieb Bill Shannon:
> Your expectations are wrong.
>
> You need a complete functional implementation of the API.
>
> There's nothing that prevents an API from being implemented by using any
> number of non-public, implementation-specific classes.  For example, parsing
> of internet email addresses could be implemented by using a separate internet
> address parser class, perhaps provided by a different project, but exposed to
> users through the javax.mail.internet.InternetAddress class.
>
> In such a case, all of the implementation classes would be hidden from an
> application that only wanted to see the standard javax.mail classes, e.g.,
> because it was compiling against the API jar file.
>
> But you're not just compiling against the API classes.  You need the API
> classes to be functional.  You need a complete implementation, without
> knowing the details of how it is implemented.


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top