Skip to content

Commit 1daa9e2

Browse files
Merge branch '6.2.x'
2 parents 85177c0 + e2bab7b commit 1daa9e2

File tree

52 files changed

+3
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
*.otg binary
1616
*.png binary
1717
*.hsx binary
18+
*.serialized binary

config/src/test/java/org/springframework/security/SpringSecurityCoreVersionSerializableTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class SpringSecurityCoreVersionSerializableTests {
227227
@Disabled("This method should only be used to serialize the classes once")
228228
void serializeCurrentVersionClasses(Class<?> clazz) throws Exception {
229229
Files.createDirectories(currentVersionFolder);
230-
Path filePath = Paths.get(currentVersionFolder.toAbsolutePath() + "/" + clazz.getName());
230+
Path filePath = Paths.get(currentVersionFolder.toAbsolutePath() + "/" + clazz.getName() + ".serialized");
231231
File file = filePath.toFile();
232232
if (file.exists()) {
233233
return;
@@ -252,7 +252,7 @@ void shouldBeAbleToDeserializeClassFromPreviousVersion(Path filePath) {
252252
try (FileInputStream fileInputStream = new FileInputStream(filePath.toFile());
253253
ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream)) {
254254
Object obj = objectInputStream.readObject();
255-
Class<?> clazz = Class.forName(filePath.getFileName().toString());
255+
Class<?> clazz = Class.forName(filePath.getFileName().toString().replace(".serialized", ""));
256256
assertThat(obj).isInstanceOf(clazz);
257257
}
258258
catch (IOException | ClassNotFoundException ex) {

0 commit comments

Comments
 (0)