But children of adulterers will not come to maturity, and the offspring of an unlawful union will perish. Even if they live long they will be held of no account, and finally their old age will be without honor. If they die young, they will have no hope and no consolation on the day of judgment. For the end of an unrighteous generation is grievous. - Wisdom of Solomon 3:16-19, NRSV
But the prolific brood of the ungodly will be of no use, and none of their illegitimate seedlingts will strike a deep root or take a firm hold. For even if they put forth boughs for a while, standing insecurely they will be shaken by the wind, and by the violence of the winds they will be uprooted. The branches will be broken off beofre they come to maturity, and their fruit will be useless, not ripe enough to eat, and good for nothing. For children of unlawful unions are witnesses of evil against their parents when God examines them. - Wisdom of Solomon 4:3-6, NRSV
Are these passages saying that illegitimate children can not achieve salvation? I have heard that at some point in the Church's history, this was taught.