|
[
Permlink
| « Hide
]
Kristian Waagan added a comment - 09/Jan/08 11:01 AM
'derby-3307-1a-test_repro.diff' can be used as a repro for this issue. It adds another test to jdbc4.StatementEventsTests.
Note that the existing repro ('derby-3307-1a-test_repro.diff') only tests the statement event listener case, which has already been fixed (see
Another repro / test should be written for a connection event listener. > I have found no information in the specs regarding null listeners, but I assume it would be okay to ignore them.
That's at least what the embedded driver does. And it would be consistent with how listeners work in the Swing/AWT world. The attached patch adds a null check in ClientPooledConnection.addConnectionEventListener() and a regression test in J2EEDataSourceTest.
Committed revision 666040.
Merged to 10.4 and committed revision 666094.
I verified the fix in trunk by running the repro after removing the code change in CPC. It fails with the code removed, and succeeds with the code in place.
Thank you Knut Anders! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||