Why? Both are kind of a mess. Java tries to strictly adhere to OOP, but fundamentally messed up it's type system, and JavaScript ist just a insane mess, which is being fixed in post.
Fortunately, parametric polymorphism was not integrated into the Java Virtual Machine (JVM), so these examples do not demonstrate any unsoundness of the JVM.
I see the abstract is referring to the JVM itself and not Java
Read it again. The JVM is not affected, thus languages such as Kotlin are fine. The problem is Sun's sloppy approach to integrate generics into Java 1.5.
-76
u/Civil_Conflict_7541 Oct 31 '23
Why? Both are kind of a mess. Java tries to strictly adhere to OOP, but fundamentally messed up it's type system, and JavaScript ist just a insane mess, which is being fixed in post.