GithubHelp home page GithubHelp logo

Comments (4)

mebigfatguy avatar mebigfatguy commented on June 9, 2024

I see this from the javadoc

The JavaMail reference implementation includes protocol providers in subpackages of com.sun.mail. Note that the APIs to these protocol providers are not part of the standard JavaMail API. Portable programs will not use these APIs.

Nonportable programs may use the APIs of the protocol providers by (for example) casting a returned Folder object to a com.sun.mail.imap.IMAPFolder object. Similarly for Store and Message objects returned from the standard JavaMail APIs.

This is sort of a grey area it would seem.

from fb-contrib.

jsotuyod avatar jsotuyod commented on June 9, 2024

What that's saying is that those methods are not part of the standard javax.mail, but the reference implementation itself is open-source, pure Java, and can be added as a dependency and used safely even outside Oracle's JRE.

The APIs are safe to use, and intended for developer use. The only warning is that replacing that dependency with another javax.mail implementation (currently, the only other one is GNU JavaMail, which is stuck in version 1.3 of the spec) will not work (and hence they are in a separate packge).

Actually other implementation do the exact same thing, creating their providers outside javax.mail since they are not "portable" (i.e. drop-in replaceable), for instance GNU JavaMail's IMAPFolder

from fb-contrib.

mebigfatguy avatar mebigfatguy commented on June 9, 2024

ok thanks

from fb-contrib.

ThrawnCA avatar ThrawnCA commented on June 9, 2024

Xws-security also uses com.sun packages

from fb-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.