Skip to content

Misleading documentation on ItemWriteListener #4400

Closed
@littlewoo

Description

@littlewoo

The reference doc for ItemWriteListener says:

The afterWrite method is called after the item has been successfully written

However, digging into the Javadoc for ItemWriteListener, it seems otherwise:

This is called before any transaction is committed

"after successfully written" suggests that the transaction will have already been committed. The reference documentation should be updated to specify that "after successfully written" actually means before the transaction is committed (i.e. during the write, not after it).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions