Skip to main content

Clone() declared in an interface is not accessible in another class.

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
nilesh.sahu
Offline
Joined: 2012-07-04
Points: 0

Hi All,

I am compiling my code on Jdk1.7 and getting below compilation error :

error: clone() in MyInterface is defined in an inaccessible class or interface

MyInteface is extending Map interface.

While I am able to compile on Jdk1.7.
Can anyone help me to find out the solution, how can i use rawtype collection and compile my code on jdk1.7 .

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mohana_sundaram
Offline
Joined: 2012-08-02
Points: 0

sorry i didnt get from u...i need ur source for review....post your source....