Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.programmer Subject: Re: JavaMail bug? Date: Wed, 10 Aug 2011 09:34:40 +0100 Lines: 20 Message-ID: <9aeu50FsecU1@mid.individual.net> References: <995djcFq0nU1@mid.individual.net> <99njvpFv11U1@mid.individual.net> <99qjntFk6uU1@mid.individual.net> <99sf3vFncoU1@mid.individual.net> <9acnlmF447U1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net QZS22DM76npv8X/2CqmGIQop2yIXgPkvRu3VV5+MKL9iiODCqF Cancel-Lock: sha1:Xh6XQByxEWUEXcfjk1tWQfDX8PU= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6961 On 09/08/11 23:47, Martin Gregorie wrote: > On Tue, 09 Aug 2011 13:31:49 +0100, Nigel Wade wrote: > >> I see the documentation showing use of Transport.sendMessage() (an >> abstract instance method) following a Session.getTransport(). >> > Sure, but they are all static apart from sendMessage, which is abstract. 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. -- Nigel Wade