Commit 3d38e39
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.
Adjust test001 to the changed behavior
Adjust test003 to changed behavior
Adjust test005 to changed behavior
Adjust test008 to changed behavior
Adjust test010 to changed behavior
Adjust testBug528467b1 parent 0dbe296 commit 3d38e39
File tree
3 files changed
+173
-143
lines changed- 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
3 files changed
+173
-143
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
1002 | 1003 | | |
1003 | 1004 | | |
1004 | 1005 | | |
1005 | | - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
1006 | 1010 | | |
1007 | 1011 | | |
1008 | 1012 | | |
| |||
0 commit comments