Last week, I posted a note here about a new release of Java, version 6 update 22, that addressed a bunch of security vulnerabilities, as well as some other miscellaneous bugs. As I mentioned then, Apple provides its own version of Java for Mac OS X, and typically takes a while to incorporate new updates from Oracle (neé Sun).
Apple has now, with uncharacteristic speed, released two new versions of Java for Mac OS X, for both the 10.5 and 10.6 versions of the OS. These updates bring the Mac version in line with the current Java version 6, update 22; the update for Mac OS X 10.5 also includes an update of Java version 5 to Update 26. Further information is available from the links below.
Java for Mac OS X Version 10.5 Update 8
Java for Mac OS X Version 10.6 Update 3
You can get the new version using the built-in Software Update function, or you can download an installation package from the Support Downloads page.
Apple has apparently also indicated, on one of its sites for developers, that Java is “deprecated”, and may not be included with Mac OS X at some point. The question of whether installing Java on end-user machines makes sense is a topic for another post; however, if you have Java installed, I recommend you get this update as soon as you reasonably can.