Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Gentoo Java <gentoo-java@g.o>
From: Petteri R├Ąty <betelgeuse@g.o>
Subject: RFC: JDK version handling in the future
Date: Sat, 10 Oct 2009 13:48:31 +0300
Inspired by the recent ruby version handling post on gentoo-dev I came
up with this scheme to handle JDK versions in the future:

1. Have a JAVA_VERSION USE_EXPAND variable containing: "java5 java6" or
   any JDK versions supported at that time.

2. The minimum flag that is on is used for the JDK version to emerge
   things. Just setting -source is not in reality making things run with
   the target, it just makes the bytecode usable for older JDKs.

3. When depending on something java the eclasses will automatically pull
   in libraries targeting the right JDK using EAPI 2 use dependencies.

Benefits:
- You can compile everything to the highest byte code available
- Simpler maintenance and marginally faster emerges when build.xml files
  don't always need to be rewritten.
- Solve bug 161622 (java-config should look into the deptree when
  deciding wich vm to use)

If this seem sane, it's best to rewrite the eclasses at the same time to
delete all the cruft that we have collected over time like the different
rewriter implementations.

Regards,
Petteri

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: RFC: JDK version handling in the future
-- Alistair Bush
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
two versions of java
Next by thread:
Re: RFC: JDK version handling in the future
Previous by date:
Re: two versions of java
Next by date:
Re: RFC: JDK version handling in the future


Updated Mar 06, 2012

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.