Bug Description

sun-java6-{bin,demo,jdk,jre,plugin,source} 6-06-0ubuntu1

The postinst script installs an alternative called "xulrunner-1.9-javaplugin.so" but the jinfo file contains the name "xulrunner-addons-javaplugin.so". The mismatch prevents update-java-alternatives from working properly - for example, try "update-java-alternatives --plugin --set java-6-sun" and it reports "No alternatives for xulrunner-addons-javaplugin.so."

I believe all of the above is also a problem for the sun-java5-* packages.

I can confirm it (with sun-java6-plugin), and to let my firefox recognize the java plugin I had to do manually this link:
sudo ln -s /etc/alternatives/xulrunner-1.9-javaplugin.so /usr/lib/firefox/plugins/libjavaplugin.so

Replacing xulrunner-addons-javaplugin.so with xulrunner-1.9-javaplugin.so in /usr/lib/jvm/.java-1.5.0-sun.jinfo and /usr/lib/jvm/.java-6-sun.jinfo allows me to switch back and forth between versions of the plugins now.