Is there a compiler flag that can make that happen, or is that default "cemented" in the language?
Asked
Active
Viewed 25 times
0
-
Note that if there was a way to do this, there would be no way to explicitly ask for default access because, well, there's no syntax for it. You'd be stuck with just public, protected and private. – Jeffrey Bosboom Oct 22 '14 at 04:31
-
@JeffreyBosboom I would be ok with that. – Goran Milovanovic Oct 22 '14 at 06:55
1 Answers
0
No, there is no standard compiler flag to change that aspect of the language. The only way that I know of to circumvent access limitations is via reflection (and setAccessible
method), and that depends on the SecurityManager allowing access.

Rob
- 6,247
- 2
- 25
- 33