After Zedekiah, the last king of Judah was forced out by Nebuchadnezzar in the siege of Jerusalem (Jeremiah 32:4-5), the LORD says: 'David will never fail to have a man to sit on the throne of the house of Israel...'"(Jeremiah 33:17) Jehoiachin was placed in a position of authority during Babylonian exile at the end of 2 Kings. He was called king under exile in several Babylonian food-rationing lists.
Jeremiah prophesied that Jehoiakim will have no one to sit on the throne of David (Jeremiah 36:30). His son Jehoiachin succeeded him as king for three months and ten days before Nebuchadnezzar forced him out, ending the reign of Jehoiakim's descendants (2 Chron. 36:8,9; 2 Kings 24:8). After Jehoiachin spent 37 years in prison, Nebuchadnezzar's successor Evil-merodach released the imprisoned king Jehoiachin and elevated him above all other captive kings that were in Babylon(2 Kings 25:27). Jehoiakim is the ancestor of Jesus' earthly father Joseph according to Matt. 1:11 (skipped in list) (see 1 Chronicles 3:15-16 and 2 Kings 24:8).
In Jeremiah 22:30, God states that neither Jehoiachin (also called Jeconiah) or his offspring will prosper, for none of his offspring will sit on throne of David and rule over Judah.
Jehoiachin's offspring did not sit on the throne of David or rule over Judah. 2 Kings 25:27 records that Jehoiachin was a prisoner for thirty seven years. For two years, Evil-merodach king of Babylon gave Jehoiachin a seat of honor higher than those of the other kings who were with him in Babylon and gave him a regular daily allowance all the days of his life. (2 Kings 25:27-30) His family retained leadership of the Babylonian exiles (Ezek. 1:2), and his descendants were at the head of those who returned to Zion. He is the ancestor of Jesus' earthly father Joseph according to Matt. 1:12.
God states that the house, throne and kingdom of David and his offspring (called "the one who will build a house for my Name" in the verse) will last forever.(2 Sam. 7:12-16, 2 Chronicles 13:5, Psalm 89:20-37) 1 Kings 9:4-7 as well as 1 Ch 28:5 and 2 Ch 7:17 state that Solomon's establishment is conditional on Solomon obeying God's commandments.
Solomon built the temple in Jerusalem (2 Chron. 6:7-10, 2 Chronicles 2:1) and did not obey God's commandments (1 Kings 11:1-14).
Some scholars state that God has promised an eternal dynasty to David unconditionally.(1 Kings 11:36, 15:4, 2 Kings 8:19) They feel the conditional promise of 1 Kings 9:4-7 seems to undercut this unconditional covenant. Most interpreters have taken the expression "throne of Israel" as a reference to the throne of the United Monarchy. They see this as a conditionalization of the unconditional dynastic promise to David's house expressed in 1 Kings 11:36, 15:4 and 2 Kings 8:19. They argue the presence of both unconditional and conditional promises to the house of David would create intense theological dissonance in the Book of Kings.
Christians believe that the promise is of surviving descendants that could fulfill the role of king, which they state Jesus did, rather than a permanent earthly kingship. The Bible Knowledge Commentary states:
God did not promise an unbroken monarchy but an unbroken line of descendants from David who would be qualified to sit on that throne when it was reestablished. David’s line would not fail before the righteous Branch came to claim His throne (cf. Luke 1:31-33). The genealogies of Matthew and Luke show that this promise was fulfilled as Christ was able to trace both His legal line through Joseph and His physical line through Mary back to David (Matt. 1:1-16; Luke 3:23-31).
Christians believe that Matthew and Luke present two different genealogies. They point out that some names are common to both, but many names are different. Matthew begins at the patriarch Abraham and works his way to Jesus the Christ, while Luke begins at Jesus and works his way back to Adam. They argue Matthew presents the genealogy of Joseph, and Luke presents the genealogy of Mary. In Luke's days they argue, it was proper and correct to cite Joseph's name in Mary's genealogy. Christians argue that Joseph adopted Jesus as his legal son and thus Jesus became both David's direct descendant through David's son Nathan (Luke's genealogy) and David's legal royal heir through Solomon (Matthew's genealogy).
Critics claim this is just a required reinterpretation of the prophecy. In rabbinic thinking, the reestablishment of the Davidic kingdom was tied to the Messiah, who was to be a descendant of King David. He would redeem the Jews from exile and reestablish their independence in the land of Israel. Jews argue this is not fulfilled in Jesus. Jews and skeptics argue that Matthew and Luke made numerous mistakes in their genealogies of Jesus that eliminate him from Messianic consideration. Matthew and Luke traced Jesus' lineage through Joseph back to King David. (However, the gospels also assert that Jesus was conceived through the power of the Holy Spirit, not Joseph. There is, nonetheless, an implied indication in the Gospels that Joseph adopted Jesus.).
If he was adopted, they argue, based on a distinction between full-blooded Jews and half-blooded Jews in the scripture,(Numbers 1:18-44, 34:14; Leviticus 24:10) under Jewish law certain family and tribal affiliations must be through the birth father and cannot be claimed by adoption. Moreover, Jews argue that the Messiah must descend through David's son Solomon (2 Sam 7:12-16, Psalm 89:28-38, 1 Chronicles 17:11-14, 22:9-10, 28:6-7). Luke's genealogy of Joseph is traced back to David through his son Nathan (who was not a king). They argue this eliminates Jesus' genealogy in Luke. In addition, to presume that Mary was of Davidic descent in Luke presents the problem that Mary could not pass on what she did not possess: (1) Maternal connection does not enter into consideration for succession to the throne of David which is passed on only through a continuous male line: "There shall not be cut off from David a man to sit upon the throne of the house of Israel" (Jeremiah 33:17); (2) Biblically, the right of lineal privilege, that is, kingship and priesthood, are exclusively passed on through the male line. Matthew's genealogy of Joseph is traced back to David through his son Solomon, but ultimately down to the cursed Jeconiah, son of Jehoiakim who was also cursed in Jeremiah 36:30. Jeconiah was told that none of his descendants could ever sit on the throne of David.(Jeremiah 22:30) Jews thus argue the Messiah must descend from King Solomon but not from King Jeconiah. Jews point out that Jeconiah's grandson, Zerubbabel, held power granted by God, though he was never king. Jews argue that on top of Nathan not being king, Luke 3:27 includes Shealtiel and Zerubbabel, both of whom are descendants of the cursed Jeconiah in Matthew 1:12. This is part of the reason Jews give for rejecting Jesus as the promised future descendant of David who would once again rule over Israel.
Christians respond that a virgin birth avoids what they claim is a physical but not legal curse of Jehoiakim (while a reversal of the curse may have even occurred; and even if no reversal occurred, an adoption by a descendant of King Solomon gives Jesus legal inheritance rights to that kingdom—thus, again, protecting him from the physical curse.). Christians and the New Testament itself also argue that the names Zerubbabel and Shealtiel in the two lineages have different parents and children and therefore are just common names that do not refer to the same people. Christians also argue that the promise that the Messiah would descend from Solomon is conditional.(1 Kings 9:4-7; 1 Chron. 28:7) Christians point to Solomon violating this condition.(1 Kings 11:1-14) Furthermore, Christians argue that although Jewish nationality and tribal identity were normally determined by the father, with the Messiah it would be different. This exception to the rule became apparent, it is argued, when Isaiah 7:14 prophesied that the Messiah would be born of a virgin: "Therefore the Lord himself will give you a sign: Behold, a virgin will be with child and bear a son, and she will call his name Immanuel."