class Foo
{
public Boolean bill;
public int jill = bill;
}
This should give a type error since neither boolean nor Boolean is
assignable to either int or Integer. Are you implying that it doesn't?
Why not come right out and say exactly what it does?
It also interacts interestingly with varargs.
Varargs just bundles the additional arguments into an array of a
specified type, doesn't it? What is the "interesting interaction".
Of course, GIYF if yoiu really want to know.
It's not clear to me what google query would cause google to index the
inside of your head and tell me exactly what, specifically, you are
thinking of when you declare autoboxing to be "dangerous".
No, just making an observation.
If you consider it bad to know the JLS then you'll never be anything
but a poor Java programmer.
I don't consider it bad to know the JLS. I'm just snarking on the fact
that you put yourself forth in this newsgroup (and have done for years)
as a very strong advocate for looking everything up in the JLS (a
position I don't necessarily even disagree with) but did, eventually,
admit that the document isn't always the world's most readable.
That it's obfuscatory to the untrained intellect is no more of an
issue than that any other technical language is obfuscatory to the
ignorant. That's why it requires experts at large salaries. It's the
subject matter that's tricky.
Who are you insinuating is "ignorant" and otherwise a deficient
intellect, Lew?
There will always be the /Harrison Bergeron/ types who believe that
excellence should be easy and who are too lazy to do the work required
to gain true expertise.
To coin a phrase: Who is "Harrison Bergeron", Lew? There is nobody in
this newsgroup using that alias.
Such individuals tend to speak disparagingly of the advocates for
hard work and perfection in order to hide their own well-deserved
sense of inferiority.
And some people just occasionally feel the need to puncture the balloon
of someone who constantly puts himself forth as superior to everybody
else, Lew, whether by pointing out a flaw in the person or in something
they have more or less identified themselves with.
--