<AWT Dev> hg: jdk8/awt/jdk: 6995769: occasion NPE thrown from SwingUtilities.computeIntersection()

Mario Torre neugens.limasoftware at gmail.com
Thu Jul 28 12:25:18 PDT 2011


2011/7/28 Roman Kennke <roman at kennke.org>:
> Hi Artem,
>
>> On 7/28/2011 10:34 PM, Roman Kennke wrote:

> I will tell this (artificial problem) to my team! They are running into
> this every couple of weeks with a real world application in a critical
> application. Yes, it's application's fault. But doing this better than
> swallownig the NPE would help alot.
>
> Cheers, Roman
>
>> Thanks,
>>
>> Artem

Hi Artem,

Indeed, we don't need to support this, we should rather make it harder
to do a mistakes like this :)

The problem is that real world code does this kind of broken things :(
and I suspect the original submitter actually was stuck with something
similar (and maybe less obvious than a dialog popping up in the wrong
moment).

The illegal state would be more obvious than a null pointer exception,
I believe.

Cheers,
Mario
-- 
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

IcedRobot: www.icedrobot.org
Proud GNU Classpath developer: http://www.classpath.org/
Read About us at: http://planet.classpath.org
OpenJDK: http://openjdk.java.net/projects/caciocavallo/

Please, support open standards:
http://endsoftpatents.org/



More information about the awt-dev mailing list