java - Use AOP to mock System.currentTimeMillis() -


i need replace system.currenttimemillis() own realization within third-party jars in application. can use load-time weaving or other way it?

note: can't replace system.currenttimemillis() own interface , use di achieve it. need replace such calls in jars(e.g.: spring ones): system.currenttimemillis(), new date, new datetime()


Comments