On 10/19/2015 8:41 PM, Sergey Bylokhov wrote:
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");
Please review the updated webrev
http://cr.openjdk.java.net/~ssadetsky/8080395/webrev.02/
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.
Please decide finally you do need a new serialVersionUID or you don't
need it. Generally, adding a field is a compatible change FocusEvent
will be able to read the previous format. It is matter of
opinion/convention only.
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