News for hackers. Stuff that matters.
Re:The Java type system is broken by coldtea on Thursday July 19, 2018 @10:23AM (#17566537)
>Could we rephrase the message of the article as "If you write really broken code in Java, you might be not guarded by the type system"

The very idea of the type system is that it makes "broken code" of a certain type a compile error.

Re:The Java type system is broken by cmiles74 on Thursday July 19, 2018 @11:26AM (#17567187)
For certain and specific definitions of "broken code".
Re:The Java type system is broken by coldtea on Thursday July 19, 2018 @11:33AM (#17567252)
Yeah, for the type of broken code that has the wrong types.
Re:The Java type system is broken by PDoyle on Friday July 20, 2018 @07:10AM (#17574001)
Right. I think this is the promise of Java generics: we promise we'll warn you if you're relying on dynamic type checking because we can't prove all dynamic type checks will pass.

This article gives a series of examples that break that promise.

Re:The Java type system is broken by cmiles74 on Thursday July 19, 2018 @12:21PM (#17567782)
In some situations. The examples in this article, I think, make it clear that for a lot of "broken code" these errors are caught. It's too bad that there are edge cases, but that is Java all over, in my opinion.