Skip to main content

Writing about work in progress sometimes hurts

Posted by joconner on July 28, 2006 at 1:38 PM PDT

First of all, before I hear one more comment that "scripting isn't new on the desktop" I want to say this:

Yes, I know.

In my last blog, I wasn't saying that scripting is new. I'm saying that the JSR 223 spec defines a standard framework and API...and that is new. And Java SE 6 implements that spec, and....

The reason for this blog is to alert you to changes in the spec that just bit me. Only hours after my
Scripting for the Java Platform
article became available, I found out that the Invocable interface changed.

The Invocable interface used to define the invoke method. That "old" method no longer exists in the most recent Mustang builds, and in its place we have new methods:

  • invokeFunction
  • invokeMethod

So, it's a little dangerous to write about new products and work in progress. It's fun to talk about new things, but those things change. Unfortunately, this change breaks the demo code I supplied in the article.

I've updated the article and the demo, I've submitted the changes, and the whole new bundle should be refreshed on later today. I just wanted to let you know in case you were going to flame me for a broken demo. It will be fixed immediately and will be available after 6:00 PM PST.

Related Topics >>