Oscache source code compilation cache. Java file report add (class, T) in the type eventlistenerlist is not applicable for the argu

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.