datanucleus / datanucleus-core

DataNucleus core persistence support - the basis for anything in DataNucleus
123 stars 73 forks source link

Fix `ClassUtilsTest` by accommodating for new `SequencedCollection` interface in Java 21 #494

Closed nscuro closed 11 months ago

nscuro commented 12 months ago

Fixes #491

andyjefferson commented 11 months ago

Question, could you not detect the actual version of Java via such as System.getProperty("java.specification.version") and then can have the check on the version as to how many args?

nscuro commented 11 months ago

@andyjefferson Yes, good point. Updated the assertions to be based on the actual Java spec version. Tested with Java 11, 17, and 21.