For example, the semiconductor unit of an electronic device such as a transistor or diode can be protected from moisture and other impurities in its ambient by coating the surface of the semiconductor unit, particularly at exposed junctions, with inorganic glass material.