<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Marek,</p>
<p><br>
</p>
<p>thanks for the quick feedback.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Marek Greško <mgresko8@gmail.com><br>
<b>Gesendet:</b> Montag, 19. Dezember 2016 19:54:29<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Java Exception on Greece map merging</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>Hello,<br>
<br>
</div>
your workaround in r3733 works.<br>
<br>
</div>
Thank you very much.<br>
<br>
</div>
Marek<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-12-18 17:01 GMT+01:00 Gerd Petermann <span dir="ltr">
<<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">
<div id="m_-5952408965420595922x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Steve,</p>
<p><br>
</p>
<p>another work around would be to use a <span>Int2ObjectOpenHashMap</span> from fastutil here.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-5952408965420595922x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a>>
im Auftrag von Steve Ratcliffe <<a href="mailto:steve@parabola.me.uk" target="_blank">steve@parabola.me.uk</a>><br>
<b>Gesendet:</b> Samstag, 17. Dezember 2016 22:14:23<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Java Exception on Greece map merging</font>
<div> </div>
</div>
</div>
<div>
<div class="h5"><font size="2"><span style="font-size:10pt">
<div class="m_-5952408965420595922PlainText"><br>
Hi<br>
<br>
In addition to the previous bugs I found there is also<br>
<a href="http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6616627" target="_blank">http://bugs.java.com/<wbr>bugdatabase/view_bug.do?bug_<wbr>id=6616627</a> which is<br>
an old bug which appears similar but was for Long.valueOf() instead of<br>
Integer.valueOf().<br>
<br>
On the assumption that it is a JVM bug and as it is affecting a few<br>
people, we should consider a workaround.<br>
<br>
Probably<br>
poi.setZip(zips.get(new Integer(zipIndex-1)))<br>
<br>
would work.<br>
<br>
As the zipIndex values are typically small, the integer cache<br>
may be valuable in our case. So we could implement our own,<br>
but it would have to be different enough to avoid running into<br>
the same bug. We don't need negative numbers so that might be<br>
enough.<br>
<br>
The netbeans project implemented their own integer cache as their<br>
workaround.<br>
<br>
<a href="http://hg.netbeans.org/releases/rev/ff893c3cec4d" target="_blank">
http://hg.netbeans.org/<wbr>releases/rev/ff893c3cec4d</a><br>
<br>
..Steve<br>
<br>
> I am getting Java exception:<br>
> Exception in thread "main" java.lang.<wbr>ArrayIndexOutOfBoundsException<wbr>: 265<br>
> at java.lang.Integer.valueOf(<wbr>Integer.java:831)<br>
> at<br>
> uk.me.parabola.imgfmt.app.lbl.<wbr>LBLFileReader.readPoiInfo(<wbr>LBLFileReader.java:422)<br>
> at<br>
> uk.me.parabola.imgfmt.app.lbl.<wbr>LBLFileReader.<init>(<wbr>LBLFileReader.java:75)<br>
> at<br>
> uk.me.parabola.mkgmap.<wbr>combiners.FileInfo.lblInfo(<wbr>FileInfo.java:326)<br>
> at<br>
> uk.me.parabola.mkgmap.<wbr>combiners.FileInfo.lblInfo(<wbr>FileInfo.java:313)<br>
> at<br>
> uk.me.parabola.mkgmap.<wbr>combiners.FileInfo.imgInfo(<wbr>FileInfo.java:259)<br>
> at<br>
> uk.me.parabola.mkgmap.<wbr>combiners.FileInfo.<wbr>getFileInfo(FileInfo.java:152)<br>
> at uk.me.parabola.mkgmap.main.<wbr>Main.endOptions(Main.java:595)<br>
> at<br>
> uk.me.parabola.mkgmap.<wbr>CommandArgsReader.readArgs(<wbr>CommandArgsReader.java:128)<br>
> at uk.me.parabola.mkgmap.main.<wbr>Main.mainStart(Main.java:135)<br>
> at uk.me.parabola.mkgmap.main.<wbr>Main.main(Main.java:106)<br>
> on map merge. I am compiling latest Greece map from Geofabrik. There was<br>
> not a problem with data from October.<br>
<br>
______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/listinfo/mkgmap-dev</a><br>
</div>
</span></font></div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/listinfo/mkgmap-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>