В строке Instant.MAX.toEpochMilli() Это баг самой java?