On Wed, 18 Feb 2026 07:44:22 GMT, Alan Bateman <[email protected]> wrote:
>> In fact, I just realized that the same detail is available in the source >> code as comment a few lines above >> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java#L67 > > Thanks. I would be very surprised if interim javac would pull in PEM but as > it's not always easy to determine this so best to leave until the release N+1 > cleanup. I am sorry for this situation, but I can't say when or if we will be able to do something about this. Currently, keeping the constant for one more release is always safe; removing it may be OK, but it is difficult to determine whether the missing constant will cause problems of not. It is only if the interim javac would touch a classfile that uses the constant, but it is not easy to say whether that will be the case. (And, IIRC, we've had a situation in the past that we had to re-introduce a constant, because it was needed in some specific circumstances.) I'll think again of ways to avoid the need to keep the constants. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/29640#discussion_r2820968470
