The method withHandler((state, detector, increasing) → {…}) fails if applied after an eventsLogger.monitorDetector(detector)
In Orekit version 11.1.2 the following pseudo code was working fine:
EventsLogger eventsLogger = new EventsLogger(); eventsLogger.monitorDetector(new DateDetector(maneuverStartDate)).withHandler((state, detector, increasing) → {System.out.println(“entering here”);})
While in the latest version of Orekit 12.0.1, the withHandler((state, detector, increasing) → {...}) is not working anymore.
Discussion on the forum at https://forum.orekit.org/t/unexpected-behavior-when-using-withhandler-state-detector-increasing-after-eventslogger-monitordetector-detector/3287