 On 2 July , Pope John Paul II condemned the consecration in his apostolic letter Ecclesia Dei , in which he stated that the consecration constituted a schismatic act and that by virtue of Canon 1382 of the Code of Canon Law , the bishops and priests involved were automatically excommunicated . 
