main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
« New Hessian implementations
Resin performance best practices »

Hessian fixes

I’ve been cleaning up some Hessian bugs in preparation for the next release and I ran into a couple of doozies. During the week, I dealt with an issue reported by Riccardo wherein I rediscovered that ActionScript doesn’t actually have 64-bit longs, only IEEE 64-bit doubles. This screws up 2’s compliment arithmetic if you don’t recognize it, as I had done before. :-) It’s now fixed…

Today I worked on (de)serializing Java enums with constant-specific methods. Don’t know what those are? Neither did I. Tim Dawson was kind enough to send me a couple of examples:

GeSHi Error: GeSHi could not find the language java5 (using path /var/resin/hosts/blog.caucho.com/webapps/ROOT//wp-content/plugins/codesnippet/lib/geshi/) (code 2)

Kind of an interesting use case. Here’s the rub. Try running this code with it:

GeSHi Error: GeSHi could not find the language java5 (using path /var/resin/hosts/blog.caucho.com/webapps/ROOT//wp-content/plugins/codesnippet/lib/geshi/) (code 2)

What do you think you get? The answer’s under the cut…

Enum1 isEnum => false
Enum1 parent isEnum => true
Enum2 isEnum => false
Enum2 parent isEnum => true

Bizarre, huh? Well, Hessian now correctly serializes and deserializes these cases. :-)

Tags: actionscript, hessian, java enum

This entry was posted on Saturday, July 12th, 2008 at 11:20 am and is filed under Engineering. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®