In Christianity it's widely believed that Joshua the high priest signified Messiah, especially due to the peculiarity in the phrase ''behold the man whose name is the branch'' alongside ''he shall build the temple of the LORD.''
And speak unto him, saying, Thus speaketh the LORD of hosts, saying, Behold the man whose name is The BRANCH; and he shall grow up out of his place, and he shall build the temple of the LORD:
Messiah's nature is also written about as being sinless, because He had to be ''the pure lamb of sacrifice.''
Now most characterisations of Messiah often highlight an aspect or more concerning His circumstances, be it His duties, His tribe, etc for example, Bezaleel for duties and tribe, Joshua for military leadership, a lamb of sacrifice for His sinless nature, etc.
Come to Joshua the highpriest and we collide with tradition or the norm, if you like, because Joshua's nature is indicated as a depiction of the circumstances of the fellow upon whose head a 'mitre' or crown is to be placed.
3 Now Joshua was clothed with filthy garments and standing before the angel.
4 He spoke and said to those who were standing before him, saying, "Remove the filthy garments from him." Again he said to him, "See, I have taken your iniquity away from you and will clothe you with festal robes."
It's well known that filthy garments allude to unrighteous deeds which imply a sinful nature, even as verse 4 indicates, and to buttress which notion we have;
5 You meet him who rejoices in doing righteousness, Who remembers You in Your ways. Behold, You were angry, for we sinned, We continued in them a long time; And shall we be saved?
6 For all of us have become like one who is unclean, And all our righteous deeds are like a filthy garment; And all of us wither like a leaf, And our iniquities, like the wind, take us away."
On the back of this, how could ''Joshua'' depicted here as having a sinful nature, be the same Messiah who is the lamb of God, and said to have been 'tempted in all points as we are, yet without sin?''