diff a/src/java.sql/share/classes/javax/sql/StatementEvent.java b/src/java.sql/share/classes/javax/sql/StatementEvent.java
--- a/src/java.sql/share/classes/javax/sql/StatementEvent.java
+++ b/src/java.sql/share/classes/javax/sql/StatementEvent.java
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -41,11 +41,18 @@
* @since 1.6
*/
public class StatementEvent extends EventObject {
static final long serialVersionUID = -8089573731826608315L;
+ /**
+ * The {@code SQLException} the driver is about to throw to the application.
+ */
private SQLException exception;
+
+ /**
+ * The {@code PreparedStatement} that is being closed or is invalid.
+ */
@SuppressWarnings("serial") // Not statically typed as Serializable
private PreparedStatement statement;
/**
* Constructs a StatementEvent
with the specified PooledConnection
and