Hello,

[EMAIL PROTECTED] wrote:
> Does OCF1.2 work in Java 1.1.x JVM?

To my knowledge, OCF1.2 works with both 1.1.x and 1.2.x JVMs.
 
> We found that class opencard.opt.util.TLV from OCF1.2 does not
> compile with 1.1.6 javac

What JDK are you using? I tried to compile this code with both
the JDK1.2 preview2 from Blackdown (on Linux) and the JDK 1.1.6,
Version 5, also from Blackdown (also on Linux) and it works fine
(I can't tell that the compiled code works, though, but I had no
compilation errors):
 __________
|
| $ java -version
| java version "1.1.6"
| $ type javac
| javac is /share/usr/local/jdk/jdk116_v5/bin/javac
| $ javac TLV.java 
| $ ls -ls TLV.class 
| 7 -rw-r--r--   1 root     root         6221 Feb 14 11:44 TLV.class
|__________

> [...] using the following line of code (line 607)
> number = number * 256 + (j<0? j+=256 : j);
> 
> The offending part is "j+=", which seems to be useless since j is
> overwritten in the next iteration and not used anywhere else.

If it doesn't affect the semantics, we can propose to change this in
the next bug fix release, but what is *very* strange :-) is that this
file was not changed between OCF 1.1.1 and OCF 1.2!

A diff on the two versions indicates only two changes: one for the
CVS revision number (obviously) and the second one is a change for
a value of "@see" tag, in a comment. So I'm wondering how you could
compile this file in the previous version using exactly the same
tools (javac compiler)!!

Cheers,
Christophe.

 = Gates' Law: Every 18 months, the speed of software halves. =
-- 
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Fax: +33 4-42-36-55-55
-------------------------------------------------------------


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to