Solucionado (ver solução)

Importante

Você está vendo a versão anterior da nova experiência da Alura que estamos preparando para você. Em breve, ela ganha uma identidade visual novinha totalmente pensada em potencializar seus estudos!

Solucionado
(ver solução)
1
resposta

Mensagem: localhost:... contains obsolete methods.

Bbr.com.caelum.teste.TestaCategoria at localhost:64513 contains obsolete methods.
Reason:
The virtual machine was unable to remove all stack frames running old code from the call stack. The virtual machine is not supplying the debugger with valid data for those frames. Stepping into these obsolete frames may be hazardous to the target virtual machine.

Apareceu depois de implementar o "select por categoria":

public List<Produto> busca(Categoria categoria) throws SQLException {
        List<Produto> lista = new ArrayList<>();
        String sql = "select * from Produto where categoria_id = ?";

        try(PreparedStatement st = con.prepareStatement(sql)){
            st.setInt(1, categoria.getId()); 
            st.execute();
            ResultSet rs = st.getResultSet();
            transformaResultadoEmProdutos(rs, lista);
        }

        return lista;
    }

Agradeço por sugestões.

1 resposta
solução!

Deve ser bug. Reiniciei tudo aqui e desapareceu.