--- old/src/share/classes/com/sun/beans/util/Cache.java 2014-01-23 18:38:58.000000000 -0800 +++ new/src/share/classes/com/sun/beans/util/Cache.java 2014-01-23 18:38:58.000000000 -0800 @@ -244,7 +244,7 @@ * @param size requested capacity MUST be a power of two * @return a new array for the cache entries */ - @SuppressWarnings("unchecked") + @SuppressWarnings({"unchecked", "rawtypes"}) private CacheEntry[] newTable(int size) { return (CacheEntry[]) new CacheEntry[size]; } @@ -265,6 +265,7 @@ synchronized (this.queue) { do { if (reference instanceof Ref) { + @SuppressWarnings("rawtypes") Ref ref = (Ref) reference; @SuppressWarnings("unchecked") CacheEntry owner = (CacheEntry) ref.getOwner();