Lets see from JLS....
Note that accessibility is a static property that can be determined at compile time; it depends only on types and declaration modifiers
That means any error related to accessbility will be a compiler catch...i.e compiler error.
For protected member JLS says
A protected member or constructor of an object may be accessed from outside
the package in which it is declared only by code that is responsible for the implementation
of that object.
see this applied to different package only but within the same package there is no restriction it will behave as a default access specifier.