From: Godmar Back (gback@cs.utah.edu)
Date: Sat Sep 19 1998 - 15:23:13 EDT
I haven't looked at that fix yet, so take what I'm saying with caution:
If we derived Byte from Number (as the spec says), then this would give
Byte a shortValue() method cause it's not abstract in Number.
In truth, however, Byte.shortValue overrides Number.shortValue
so we need to both extend Number and override. Why Byte.shortValue()
cannot be implemented as (short)intValue() as in Number, I don't know.
BTW, does anybody know why (char)((byte)-1) is 65535 and not 255
in Java? Specifically, does anybody know where it says that?
On an unrelated note, here's another blurb by Sun on class unloading:
http://java.sun.com/docs/books/jls/unloading-rationale.html
Specifically, it says that 1.1 was wrong, 1.2 is fixed and that
classes are only unloaded after their classloader is gone. That is,
it will never happen that a given classloader is asked to reload
a class it has previously loaded, but that was garbage collected
in the interim.
- Godmar
>
>
> kaffe/libraries/javalib/java/lang Byte.java
> Sat Sep 19 14:54:05 PDT 1998
> Update of /home/cvspublic/kaffe/libraries/javalib/java/lang
> In directory piebald.transvirtual.com:/tmp/cvs-serv5109
>
> Modified Files:
> Byte.java
> Log Message:
> - add missing method public short shortValue()
>
>
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:56:57 EDT