Community
Participate
Working Groups
Discovery of the need to extend the system bundle exports recently arose in the case of logback's SMTPAppender which required javax.mail. Unfortunately, the code in this package doesn't function correctly unless the javax.mail (and subpackage) classes and the classes in javax.activation are loaded by the same classloader. (I don't know why.) The solution was to customise the packages exported by the system bundle -- to extend the application classloader. This bugzilla (refer to Bug 322398) is a suggestion to document how to do this (and why).