Relates :
|
JLS 7.5.4 should say: - "A static-import-on-demand declaration allows all accessible static members ***of*** the type named by a canonical name to be imported as needed:" (i.e. members which are declared OR inherited in the type, as per 6.4.3, 8.2 and 9.2.) - "Two or more static-import-on-demand declarations in the same compilation unit may name the same type; the effect is as if there was exactly one such declaration." (i.e. not "same type ***or package***")
|