Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!feeder.news-service.com!feeds.phibee-telecom.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: JavaMail bug? Date: Wed, 10 Aug 2011 19:37:13 +0000 (UTC) Organization: UK Free Software Network Lines: 21 Message-ID: References: <995djcFq0nU1@mid.individual.net> <99njvpFv11U1@mid.individual.net> <99qjntFk6uU1@mid.individual.net> <99sf3vFncoU1@mid.individual.net> <9acnlmF447U1@mid.individual.net> <9aeu50FsecU1@mid.individual.net> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1313005033 8616 84.45.235.129 (10 Aug 2011 19:37:13 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Wed, 10 Aug 2011 19:37:13 +0000 (UTC) User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6988 On Wed, 10 Aug 2011 09:34:40 +0100, Nigel Wade wrote: > It's sendMessage() which they use in the example, not any of the static > methods - that's the important fact. sendMessage() must be implemented > by whatever class creates the Transport which is returned by > Session.getTransport(), it could not instantiate a Transport unless it > had implemented the abstract methods. > Thanks for the reminder. I was knackered last night due to having flown a 4 1/4 hour soaring flight yesterday PM and that didn't register. I still think we're dealing with an ugly bit of design, though: IMO there too many ways of specifying the MTA host and login parameters and, worse, the design decision to use static methods has prevented these from being orthogonal to the methods that send messages. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |