Exemple
public
class
ClasseA {
public void
methodeA {
//...
System.exit(0);
}
Solution
Emettez une exception RuntimeException à la place.
public
class
ClasseA {
public void
methodeA
throws
RuntimeException {
//...
throw new
RuntimeException();
}