<AWT Dev> <Awt Dev> [9] Review Request for 8080395: consider making sun.awt.CausedFocusEvent functionality public

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Oct 19 17:41:32 UTC 2015

On 15.10.15 9:57, Semyon Sadetsky wrote:
>> - Why did you add a check to the new constructor of FocusEvent? This
>> check should be done already in the EventObject, and executes before
>> your new check? Is it a typo and it should be cause? When why do not
>> throw an NPE? The test should verify this also.
> Please review the modified fix
> http://cr.openjdk.java.net/~ssadetsky/8080395/webrev.01/

The new version has the same issue as in previous, removed code had a typo:
252         if (source == null)
253             throw new IllegalArgumentException("null cause");

I assume it should be reverted and updated to:
252 if (cause == null)
253 throw new IllegalArgumentException("null cause");

Since you update the serialVersionUID then the comment is not valid 
anymore: "JDK 1.1 serialVersionUID".

Also I have requested an additional clarification from the core libs 
team to confirm that we have an ability to change serialVersionUID in 
the major release.

>> On 11.09.15 0:15, Semyon Sadetsky wrote:
>>> Hello,
>>> Please review fix for JDK9:
>>> bug: https://bugs.openjdk.java.net/browse/JDK-8080395
>>> webrev: http://cr.openjdk.java.net/~ssadetsky/8080395/webrev.00/
>>> This fix moves the caused property to java.awt.event.FocusEvent to make
>>> it public. The sun.awt.CausedFocusEvent class is removed as unnecessary.
>>> The API change was approved http://ccc.us.oracle.com/8080395.
>>> --Semyon

Best regards, Sergey.

More information about the awt-dev mailing list