If your system will forget work on crash, it's not flushed, and you shouldn't report it flushed.
I haven't checked to see if PgJDBC actually exposes separate control of the reported flush position though. If it doesn't, it really must in order to make replication slots work properly.