Is this valid in 1.8? I recall getting errors or warnings or something sometimes when I've done this in the past.