Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
123456789101112131415 |
- public class Invoker {
- public static void main(String[] args) throws Throwable {
- try {
- new C();
- }
- catch (Throwable t) {
- boolean failedCorrectly =
- t.toString().contains("Unresolved compilation problem") &&
- t.toString().contains("The method main cannot be declared static");
- if (failedCorrectly)
- return;
- throw new RuntimeException("Constructor call should have failed!", t);
- }
- }
- }
|