Right click on your project (alt-enter), pick properties. Expand "Java 
Compiler" -> "Errors/Warnings" and find "Forbidden reference (access rules):" 
under section "Deprecated and restricted API". Current value is probably 
"Error", edit that and choose an appropriate level

/Roger Schildmeijer

-----Original Message-----
From: Liangzhao Zeng [mailto:liangzhao.z...@gmail.com] 
Sent: den 16 april 2010 15:14
To: CASSANDRA-DEVELOPER
Subject: compiling error in GCInpector.java, cassandra 0.6

Hi,

I am using OS X 10.6.3 and Eclipse to compile the cassandra 0.6 code.
Everything is fine but GCInpector.java and it says:

Description    Resource    Path    Location    Type
Access restriction: The method getDuration() from the type GcInfo is not
accessible due to restriction on required library
/System/Library/Frameworks/
JavaVM.framework/Versions/1.6.0/Classes/classes.jar    GCInspector.java
/cassandra-0.6/src/java/org/apache/cassandra/service    line 108    Java
Problem


Any idea?

Liangzhao

Reply via email to