Exception delivering message (Mail1345880665225-8-to-gmail.com) - [EOF]
One common myth about PTR records is that they are created for domain names and your domain has to have one to make sure your mail will not be rejected by other mail servers.
SENDING message from red@localhost to tudor.raneti@gmail.com
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
220 Desktop SMTP Server (JAMES SMTP Server 2.3.2) ready Sun, 5 Aug 2012 01:35:18 +0300 (EEST)
DEBUG SMTP: connected to host "localhost", port: 25
EHLO Desktop
250-Desktop Hello Desktop (localhost [127.0.0.1])
250-PIPELINING
250 ENHANCEDSTATUSCODES
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<red@localhost>
250 2.1.0 Sender <red@localhost> OK
RCPT TO:<tudor.raneti@gmail.com>
250 2.1.5 Recipient <tudor.raneti@gmail.com> OK
DEBUG SMTP: Verified Addresses
DEBUG SMTP: tudor.raneti@gmail.com
DATA
354 Ok Send data ending with <CRLF>.<CRLF>
To: tudor.raneti@gmail.com
Message-ID: <23063136.2.1344119718490.JavaMail.red@localhost>
Subject: Testing blue from red
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
This is a test message
.
250 2.6.0 Message received
QUIT
221 2.0.0 Desktop Service closing transmission channel
Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.
Jeff Verdegan wrote:
Tudor Raneti wrote:
This way, I handle the casts myself (there's no compile time casts occuring in Java AFAIK though compile time checks are made), but being specific should yield a slight performance boost if JIT cooperates?
How do you figure?
Dennis Deems wrote:
Tudor Raneti wrote:RTTI ... HQL ... ISP ... JIT
Please spell out words instead of using abbreviations like this. There may be readers of the forum who are not familiar with them.
Even *if* this works
the boost in performance would be so incredibly marginal that you would never notice any difference.
You're performing premature nano optimizations, which half of the time won't work out as you hoped.
after the compiler has performed type checking
In C++, the classic cast "(Shape)" does not perform RTTI. It simply tells the compiler to treat the object as the new type. In Java, which does perform the type check, this cast is often called a "type-safe downcast."