Back to Intellij Community

ExternalizableWithoutPublicNoArgConstructor

java/java-impl/resources/inspectionDescriptions/ExternalizableWithoutPublicNoArgConstructor.html

2025.3-rc-2335 B
Original Source

Reports Externalizable classes without a public no-argument constructor.

When an Externalizable object is reconstructed, an instance is created using the public no-arg constructor before the readExternal method called. If a public no-arg constructor is not available, a java.io.InvalidClassException will be thrown at runtime.