[SPIGOT-7631] BukkitObjectInputStream::readObject doesn't work with typed spawner Created: 24/Apr/24  Updated: 25/Dec/24  Resolved: 24/Apr/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: TechnicallyCoded Assignee: md_5
Resolution: Fixed Votes: 0
Labels: bug, bukkit, serialization, spigot
Environment:

Java
openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)

Version
This server is running CraftBukkit version 4109-Spigot-b698b49-8c1e7c8 (MC: 1.20.5) (Implementing API version 1.20.5-R0.1-SNAPSHOT)


Attachments: File SerializationTest-1.0.0.jar     Text File latest(18).log    
Version: CraftBukkit version 4109-Spigot-b698b49-8c1e7c8 (MC: 1.20.5)
Guidelines Read: Yes

 Description   

Description
If you control-click a spawner that has an assigned type, serialize it using the BukkitObjectOutputStream, then deserialize it using the BukkitObjectInputStream, an error will be thrown. This could be a wider issue than just spawners but I find that it reliably gives me an error with spawners.

(See attached files for logs)

Test plugin:
1. Use 1.20.5
2. Install test plugin
3. Run "/serializationtest" with a typed spawner in your main hand
4. Error should appear in console

(See attached plugin for testing)



 Comments   
Comment by TechnicallyCoded [ 24/Apr/24 ]

Ty!!

Generated at Thu Apr 03 16:26:10 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.