It doesn't say that.
Also, the OP is not talking about "legally adoptive ancestry". Neither does the Bible.
This is just made up.
Also the Bible has two different genealogies for Jesus, a being who is not supposed to have any genealogy, being God's son, and also an eternal being.
Too many contradictions. You made an absurd point.
Obviously, Jesus, though He is eternal, has an earthly genealogy since He became flesh, as shown in the scriptures; one biological through His mother Mary and one legally through Joseph connecting Him to the line of David. I don’t see contradictions and it does say…
The book of the genealogy of Jesus Christ, the Son of David, the Son of Abraham:
2 Abraham begot Isaac, Isaac begot Jacob, and Jacob begot Judah and his brothers. 3 Judah begot Perez and Zerah by Tamar, Perez begot Hezron, and Hezron begot Ram. 4 Ram begot Amminadab, Amminadab begot Nahshon, and Nahshon begot Salmon. 5 Salmon begot Boaz by Rahab, Boaz begot Obed by Ruth, Obed begot Jesse, 6 and Jesse begot David the king.
David the king begot Solomon by her [
b]
who had been the wife of Uriah. 7 Solomon begot Rehoboam, Rehoboam begot Abijah, and Abijah begot [
c]Asa. 8 Asa begot Jehoshaphat, Jehoshaphat begot Joram, and Joram begot Uzziah. 9 Uzziah begot Jotham, Jotham begot Ahaz, and Ahaz begot Hezekiah. 10 Hezekiah begot Manasseh, Manasseh begot [
d]Amon, and Amon begot Josiah. 11 Josiah begot [
e]Jeconiah and his brothers about the time they were carried away to Babylon.
12 And after they were brought to Babylon, Jeconiah begot Shealtiel, and Shealtiel begot Zerubbabel. 13 Zerubbabel begot Abiud, Abiud begot Eliakim, and Eliakim begot Azor. 14 Azor begot Zadok, Zadok begot Achim, and Achim begot Eliud. 15 Eliud begot Eleazar, Eleazar begot Matthan, and Matthan begot Jacob. 16 And Jacob begot Joseph the husband of Mary, of whom was born Jesus who is called Christ.
Matthew 1:1-16
Jesus is also referred to as son of David throughout the NT.