Commit 7153d9b
committed
Do not emit restriction warning on inherited method
Currently when we have a type A and it is accessible from package p1,
but extends a type B (that is not accessible in package p2) calling any
inherited public method A.M triggers a restriction warning.
This is undesired because as a caller I never access any restricted code
here as A is inherit all public methods from B.
See #4293 for a
discussion about that topic.1 parent 0bd1cc0 commit 7153d9b
3 files changed
Lines changed: 172 additions & 143 deletions
File tree
- org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast
- org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
| |||
0 commit comments