Bug#661632: javahelper: jh_depends determines incorrect class version on sparc

Kai Ruschenburg kairu at web.de
Tue Mar 13 18:02:35 UTC 2012


Hi,

On Mon, 12 Mar 2012 21:41:26 +0100, Niels Thykier wrote:
> On 2012-03-12 21:31, Niels Thykier wrote:
> > hd -n 1 -s 7 -e '/1 "%02d"'
> Actually, make that hexdump -n 1 -s 7 -e '/1 "%02d"'.  Apparently, "hd"
> and "hexdump" are not as interchangable as I thought.

I can confirm that it works on sparc and i386.

However, I would suggest to use this:
hexdump -n 1 -s 7 -e '/1 "%u"'

In contrast to hd, I do not see a difference when specifying the field
width "02" here. Using "%u" instead of "%d" will work with values >127.
"%d" is signed and will print negative values if the class version is
>127. But since we are far away from that anyway, it is probably a matter
of taste. For now both versions produce the right result.

> ~Niels

Best regards

Kai





More information about the pkg-java-maintainers mailing list