开发者

problem using cache

I used the cache since 2 months in my project and it works properly, now I am trying to run the开发者_StackOverflow中文版 application but this exception occur for each line used the cache object

warning: sun.security.util.Cache is Sun proprietary API and may be removed in a future release

What does that mean?


It means you are depending on a class that is not part of core java. It is something that Sun (The company that maintains java) has written. There is absolutely no guarantee that this class in the future will be available because Sun may sell or do something else.

If you want a better solution then you should depend on a more stable caching library. I recommend ehcache.


It means exactly what it says - you shouldn't be using sun.* packages, basically.

I suggest you find an open source cache library. For example, Guava's MapMaker class can be used to create expiring caches.


This is a warning. The manufacturer is telling you the code you're using will be removed at some point in the future.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜