Skip to content

Java 25 File API changes could break uses of File.exitsts() #2400

@uckelman

Description

@uckelman

Java 25 changed the behavior of some methods in the File class, not because of a bug, but to align them with the behavior of some other file APIs, rather than taking the responsible approach of adding methods which have the new behavior.

Code using File can now behave differently depending on whether it's running on Java 25 or some earlier version.

This is a great example of how bankrupt Oracle's stewardship of Java has been.

We worked around this in Vassal 3.7.20:

vassalengine/vassal#14427

vassalengine/vassal#14433

As VASL has some calls to File.exists(), you might also want to address this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions