[rfc][icedtea-web] Java 7 bump

Omair Majid omajid at redhat.com
Mon Apr 14 21:17:40 UTC 2014


* Andrew Hughes <gnu.andrew at redhat.com> [2014-04-14 17:10]:
> For this reason and others, I prefer to test for required features, rather than versions
> i.e. if you want to know if it can compile code with the diamond operator, compile some.
> This is generally how all autotools tests work e.g.
> 
> checking for gcc... gcc
> checking whether the C compiler works... yes
> ...
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking whether gcc understands -c and -o together... yes
> etc.

I see what you are saying and that's something I like myself. However,
in the case of Java, it seems much simpler to assume things. For
example, you can't claim what you have is 'Java 7' if it does not pass
the Java 7 TCK. And for it to pass the Java 7 TCK, it must have a number
of features (for example, swing library with generic support and diamond
operator).

> Is the JDK determined at compile-time or at run-time? If I build with a 7 JDK,
> can I later run with an 8 JDK and it be recognised as such?

Last I looked, it's compile time. Mostly because if you compile with 6,
the 7-specific bits can not be compiled, and therefore don't work
(correctly).

Thanks,
Omair

-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681


More information about the distro-pkg-dev mailing list