Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
332 bytes
|
Line | |
---|
1 | // File PrivateInnerInterface.java
|
---|
2 |
|
---|
3 | public class PR224 {
|
---|
4 | private interface Inter {}
|
---|
5 | }
|
---|
6 |
|
---|
7 |
|
---|
8 | class PrivateInnerInterface_Test extends PR224 {
|
---|
9 | void foo() {
|
---|
10 | // Implement the interface with an innerclass
|
---|
11 | Inter i = new Inter() { } ;
|
---|
12 | }
|
---|
13 | }
|
---|
14 |
|
---|
15 | // This should fail to compile because Inter is private in the superclass
|
---|
16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.