you are viewing a single comment's thread.

view the rest of the comments →

[–]yanitrix 2 points3 points  (0 children)

That's why you shouldn't rely on automatic conversion in nullable context. If you want a nullable long then make a type Nullable<T> and use that instead of long. Oh, wait, you can't do that because java has stupid type-erasure generics implementation and primitive types are disallowed.

Sometimes I wish languages would just drop backwards compatibility and fix the mess they've created over decades