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.

1 resposta
solução!

Deve ser bug. Reiniciei tudo aqui e desapareceu.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software