We need to add support for switching VMs inside the ebuild at merge-time. This is necessary in cases where the user has both 1.5 and 1.4 installed, but has 1.4 as his system and is installing a 1.5 package. The ebuild should temporarily switch to 1.5 (inside the ebuild environment) and use 1.5 to compile.
A question. If http://bugs.gentoo.org/show_bug.cgi?id=86903 is fixed, then all software will compile on 1.5. Why keep supporting 1.4 ?
i have a completely working overlay for this
(In reply to comment #1) > A question. If http://bugs.gentoo.org/show_bug.cgi?id=86903 is fixed, then all software will compile on 1.5. Why keep supporting 1.4 ? > 1.4 will continue to be supported at least as long as it is widely used. When it fails into disuse, or becomes buggy and/or problematic to maintain, I'd imagine we would no longer support it, but I don't see that happening in the immediate future. Instructions for using the overlay mentioned by axxo are available at: http://www.gentoo.org/proj/en/java/tiger-faq.xml#doc_chap3
The new Java system, which does this, has been unmasked. Marking fixed. See the upgrade guide: http://www.gentoo.org/proj/en/java/java-upgrade.xml