Commit 545483d
authored
Do not emit restriction warning on inherited method (eclipse-jdt#4293)
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 public method B.m() via A triggers a restriction warning.
In the context of OSGi, where a caller has access to all public methods of A including inherited ones, this is undesired.
See eclipse-jdt#4293 for a discussion about that topic.1 parent 0933895 commit 545483d
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