An 8-year-old boy with dreams of becoming a judge has passed a law school entrance exam — shocking Brazil’s legal profession and prompting a federal investigation.

The Universidade Paulista, a multi-campus private university, issued a statement acknowledging that Joao Victor Portellinha de Oliveira had passed the entrance exam and that it initially enrolled him. But he was turned away from classes when he showed up on Thursday with his father.