After downloading the source code of Oscache, you need to add some functions. Compile the code after importing eclipse. The cache. Java file reports the following error:
Description resource path location type
The Method Add (class <t>, T) in the type eventlistenerlist is not applicable for the arguments (class <capture #2-? Extends cacheeventlistener>, cacheeventlistener) cache. Java oscachechgcfg/src/COM/opensymphony/Oscache/base line 360 Java Problem
Description resource path location type
The method remove (class <t>, T) in the type eventlistenerlist is not applicable for the arguments (class <capture #3-? Extends cacheeventlistener>, cacheeventlistener) cache. Java oscachechgcfg/src/COM/opensymphony/Oscache/base line 673 Java Problem
I checked the document on Oscache and found no problem.
The JDK version is suspected to be a problem. The machine uses JDK 1.6 by default. After switching to JDK, the problem persists.
Jdk1.4 is required? The problem is caused by the new features of JDK. So I found jdk1.4 and switched it over to compile it. Everything is OK!