ceylon icon indicating copy to clipboard operation
ceylon copied to clipboard

Private static interface members forbidden in Java 8

Open FroMage opened this issue 8 years ago • 4 comments

If you try to generate static interface members you get the backend error; modifier private not allowed here, because Java 8 does not allow that. We should forbid this in the typechecker, unless we generate the static methods in the impl class.

FroMage avatar Aug 01 '17 09:08 FroMage

Can't we just automatically promote them to default access?

gavinking avatar Aug 01 '17 09:08 gavinking

Package access, I mean.

gavinking avatar Aug 01 '17 09:08 gavinking

There's no default access in interfaces: by default they're all public.

FroMage avatar Aug 01 '17 10:08 FroMage

Private interface methods are supported in Java 9.

fwgreen avatar Apr 27 '18 21:04 fwgreen