A novel barrier layer which protects electronic devices from adverse
environmental effects such as exposure to light, especially white light,
is described. The barrier layer comprises a copolymer having an acrylate
unit and an acrylate unit with a pendant dye group. Also disclosed are
processes for producing such electronic devices.