[Java Spec Report] Re: JSR 201 autobox comments
"Pat LaVarre" <[email protected]> Thu, 08 Apr 2004 12:56:40 -0000
| Newsgroups | gmane.comp.java.spec-report |
|---|---|
| Message-ID | <[email protected]> |
> > http://www.jcp.org/en/jsr/detail?id=201
> > http://www.jcp.org/en/jsr/detail?id=14
> > http://java.sun.com/developer/earlyAccess/adding_generics/
> ...
> wrapper ... compile-time constants ...
Oi.
Autoboxing without constant null and complete "identity" can't let
people forget about the difference between primitive and reference types.
What of the example:
final static Integer i = 5;
final static Integer j = 5;
final static Integer n = null;
final static Integer p = 0x8001;
final static Integer q = 0x8001;
final static Boolean bo1 = (n instanceof Object);
final static Boolean bo2 = false;
Do we agree the draft we have promises us:
i == j
(p == q) || (p != q)
(bo1 == bo2)
?
Are we then proposing to make i j p q bo2 constant, but n and bo1 not?
Pat LaVarre
P.S. The code above as yet is untested
because in writing it I discover somehow I haven't yet completed
such group/java-spec-report/ threads as
"Subject: jsr 14 proto found" and
"Subject: javac -source 1.5 @ mac".
To unsubscribe from this mailing list, send an email to:
[email protected]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/java-spec-report/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/