amal-kronz-orch / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

osmdroid-android build broken at r991 #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ant build jar

What is the expected output?
BUILD SUCCESSFUL

What version of the product are you using? On what operating system?
r911

Please provide any additional information below.
Error is:
src/org/osmdroid/tileprovider/LRUMapTileCache.java:56: 
java.util.LinkedHashMap.Entry has private access in java.util.LinkedHashMap
    [javac]     protected boolean removeEldestEntry(final Entry<MapTile, Drawable> aEldest) {
    [javac]                                               ^

Last r991 was supposed to be a cleanup but broke compilation:
Since "import java.util.Map.Entry;" is removed, java try to take 
"java.util.LinkedHashMap.Entry" for "Entry", and since it's private, stops 
compilation with error.

Fix:
revert LRUMapTileCache.java to its previous version including "import 
java.util.Map.Entry;" or call "Entry" with its full name:

protected boolean removeEldestEntry(final java.util.Map.Entry<MapTile, 
Drawable> aEldest) {

Original issue reported on code.google.com by jul...@xomodigital.com on 3 Nov 2011 at 11:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r997.

Original comment by neilboyd on 12 Nov 2011 at 4:54