A Polish court has ruled that a 6-year-old boy is the only heir of a prominent priest, who was his father.

The case of the estate of Monsignor Waldemar Irek has riveted this predominantly Catholic nation ever since the 54-year-old priest's death in 2012, when the boy's mother came forward with the claim. To prove her case, she had Irek's body exhumed for a DNA test which confirmed he was the boy's father.

Marek Poteralski, spokesman for the court in Wroclaw, said Wednesday the court ruled that the boy was Irek's closest family and the sole inheritor, according to the law. The verdict is subject to appeal by Irek's mother and niece.

TVN24 said Irek left a house, a car and some precious old furniture.