As is well known, in a planar transistor, diode, or other semiconductor device, an edge of a junction at the major surface has a certain pronounced curvature, because the PN junction is formed by the selective diffusion method through a window which is opened in the diffusion mask.