Hungarian Prime Minister Viktor Orban has said a new European Commission is needed with a new approach to migration policy.
He added that the days of the current European Union executive are "numbered" with its mandate expiring next May.
Mr Orban, one of the strongest opponents of the EU's migration policy, told Hungarian state radio the next Commission should not punish countries that protect their borders from migrants.
The European Commission earlier this month stepped up a legal battle with Hungary over EU migration rules, declaring illegal a new Hungarian law that criminalises support for asylum seekers.
It referred Hungary to the European Court of Justice "for non-compliance of its asylum and return legislation with EU law".
Mr Orban said the Commission's decision was insignificant as its mandate was running out soon.
He said the current decisions and proposals of the Commission were like "the last movements of frogs' legs in biological experiments which we saw when we were at school, which no longer had significance."
"We need a new Commission... with a new approach," Mr Orban said.
"We need a Commission after the European elections which does not punish those countries that protect their borders like Hungary," he added.
He said the EU executive should instead punish those who let millions of migrants into Europe in violation of the existing rules of the EU. He did not name any member states.
European parliamentary elections will be held in May 2019.
Mr Orban's right-wing nationalist Fidesz party has a strong lead in opinion polls after it won national elections in April with a landslide, and he was re-elected for a third consecutive term.