In Matthews fictional geneaology of Jesus he includes Jeconiah (aka Jehoiachin, Coniah), why? Jeconiah was cursed in Jeremiah 22:24 and 22:30:
"As surely as I live," declares the LORD, "even if you, Jehoiachin son of Jehoiakim king of Judah, were a signet ring on my right hand, I would still pull you off.
This is what the LORD says: "Record this man as childless, a man who will not prosper in his lifetime, for none of his offspring will prosper, none will sit on the throne of David or rule any more in Judah."
It seems clear that no descendant of Jeconiah could ever sit on the throne, so if Jesus is somehow (dispite curse to be childless) a descendant of this cursed king, he is disqualified.
There are three parts to this curse,that he would be childless, that he would not prosper, and that he would have not decendants on the throne.
Oddly enough other parts retain the tradition that none of these curses came true.
"The descendants of Jehoiachin the captive: Shealtiel his son, Malkiram, Pedaiah, Shenazzar, Jekamiah, Hoshama and Nedabiah".
-- 1 Chronicles 3:17-1.
"In the thirty-seventh year of the exile of Jehoiachin king of Judah, in the year Evil-Merodach became king of Babylon, he released Jehoiachin from prison on the twenty-seventh day of the twelfth month. He spoke kindly to him and gave him a seat of honour higher than those of the other kings who were with him in Babylon".
-- 2 Kings 25:27-28
His grandson Zerubbabel prospered and ruled. In fact the same word used in rejecting Jeconiah were seemingly deliberately used in establishing Zerubbabel.(Hagg 2:23)
This contradiction was recognized by readers 20 centuries ago. In fact in the Rabbinic writings of the first century the tradition was that God must have forgiven Jeconiah tho this is not mentioned in the OT. Apparently so well established was this explanation that Matthew thought nothing of including Jeconiah in his geneaology dispite the specific wording of Jeremiah 22. In fact it is suggested that his inclusion in the list was for this very reason. Matt was a big advocate of the ransom for forgiveness doctrine and may have seen an opportunity to toss in an example of forgiveness from the distant past.