Tasked with finding the problem, B. M. and a co-worker loaded the code into eclipse and immediately shuddered in horror. The app never complained about anything because every bit of logic went like this:
try { some logic here ... } catch (Exception e) { // do nothing }
It was the Java version of On Error Resume Next; it beat every error into silent submission. They added in a few error blocks with logging, then rebuilt and restarted the system.
It proceeded to choke, badly, and die. It had so many problems that they were surprised it worked at all!
0Äänestä
koodariduunari123
Virheetönhän tuo on.
Kaikki virheet on käsitelty.
Ikäänkuin….
0Äänestä
Odottaa vastausta
Näihin keskusteluihin ei ole vielä vastattu. Ole ensimmäinen.
Vastaukset 2
Vanhimmat
Tasked with finding the problem, B. M. and a co-worker loaded the code into eclipse and immediately shuddered in horror. The app never complained about anything because every bit of logic went like this:
try
{
some logic here ...
}
catch (Exception e)
{
// do nothing
}
It was the Java version of On Error Resume Next; it beat every error into silent submission. They added in a few error blocks with logging, then rebuilt and restarted the system.
It proceeded to choke, badly, and die. It had so many problems that they were surprised it worked at all!
Virheetönhän tuo on.
Kaikki virheet on käsitelty.
Ikäänkuin….