>boss yells at me because server becomes unstable and starts randomly dropping connections
>have to load old version to prod
>spend 4 hours at night debugging, weird shit happens at random places
>turns out that adding a single assert statement in a member method adds an invisible hidden boolean variable to class which broke reflection down the way
I would have never guessed this. What are some obscure errors and bugs you encountered?
>>62117434
>I would have never guessed this. What are some obscure errors and bugs you encountered?
Java is this way by design. It's a scam so that programmers not worth their salt can get paid more to fix the problems they create.
Most bugs are like this in my experience. It's one stupid little bit that breaks the entire program.
Why would you have assertions in a production environment?
The documentation literally says don't do this.
>>62117434
wait, what, your "server" is a java process?
>>62117971
this desu
also if op used assertions in tests instead like he was supposed to, he would have detected he issue earlier