Solucionado (ver solução)
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.

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
1 resposta
solução!

Deve ser bug. Reiniciei tudo aqui e desapareceu.