Scala

Scala : Method clone() without Cloneable interface

Overview

The class implements the clone() method but does not implement the Cloneable interface.

Calling Object’s clone method on an instance that does not implement the Cloneable interface results in the exception CloneNotSupportedException being thrown.

References

LOW

DerScanner Severity Score

Check your Scala code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.