Re: Q: target version (1.4, 1.5 or 1.6) for java-bytecode-format backward compatibility

2012-12-14 Thread Niels Thykier
On 2012-12-14 15:41, Hideki Yamane wrote:
> Hi,
> 

Hi,

Moving this to debian-java@l.d.o.

>  About "incompatible-java-bytecode-format with OpenJDK 7 as default-jdk" 
> issue,
>  I wonder which version should be specified to keep backward compatibility.
>  https://bugs.launchpad.net/ubuntu/+bugs?field.tag=java7-bytecode
> 
>  I've found this is reported in LP#1049779.
>  And I've investigated how should be fixed, and specifying target version
>  is good way. But I cannot decide which version would be used.
> 
> [...]
> 
>  So, 1.4, 1.5 or 1.6?
> 

Honestly, in practise either of version <= 1.6 will do.  I think most of
us pick 1.5 out of habbit.

> 
>> This is somewhat complicated by the fact that on kfreebsd we still don't have
>> openjdk, so we're using GCJ/GIJ, which is really a 1.5 implementation.
> 
>  If it's true, 1.5. If not, 1.6 IMO.
> 
> 

You would think that, but no.  GCJ/GIJ is instructed to accept any known
major Java version and then croak if it sees a byte code it doesn't grok[1].
  However, GCJ/GIJ does not (to my knowledge) have the full Java 1.6
(nor 1.7) library behind it, so the code will still crash due to missing
methods or classes.  However, the bytecode "format" is not going to save
you from that.  If we were to check that, we would have to use a JavaX
library when compiling in 1.X mode.

I am told that OpenJDK 7 has been ported to kFreeBSD and it is simply
stalled a buildd issue.  If so, I'd rather see GCJ/GIJ being removed as
a "Java implementation"[2].  Anyway, this part is all "for Jessie", so ...

~Niels

[1] http://gcc.gnu.org/ml/java-patches/2012-q2/msg00013.html

[2] E.g. default-jre would never use GCJ/GIJ and GCJ/GIJ should stop
providing javaX-runtime etc.  Though, GCJ/GIJ will still remain as it is
used for bootstrapping OpenJDK.


-- 
To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50cb5d47.9020...@thykier.net



Re: Q: target version (1.4, 1.5 or 1.6) for java-bytecode-format backward compatibility

2012-12-14 Thread Hideki Yamane
Hi,

On Fri, 14 Dec 2012 18:09:27 +0100
Niels Thykier  wrote:
> Honestly, in practise either of version <= 1.6 will do.  I think most of
> us pick 1.5 out of habbit.

 Thanks for clarify it, I'll choose 1.6 for this issue.


> I am told that OpenJDK 7 has been ported to kFreeBSD and it is simply
> stalled a buildd issue.  If so, I'd rather see GCJ/GIJ being removed as
> a "Java implementation"[2].  Anyway, this part is all "for Jessie", so ...

 Yes, true, openjdk7 7u3-2.1.3-1 is in testing includes kfreebsd :)


-- 
Regards,

 Hideki Yamane henrich @ debian.or.jp/org
 http://wiki.debian.org/HidekiYamane


-- 
To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20121215075630.379ad5935ee6b7022764a...@debian.or.jp