<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="#0563C1" vlink="purple" style="word-wrap:break-word"><div class="WordSection1"><p class="MsoNormal">There seems to be an inconsistency in the treatment of parameters to inner class constructors. Given that these two classes are inner classes:</p><p class="MsoNormal"> </p><p class="MsoNormal"> private class Entry</p><p class="MsoNormal"> {</p><p class="MsoNormal"> final double key;</p><p class="MsoNormal"> final Object value;</p><p class="MsoNormal"> </p><p class="MsoNormal"> public Entry(double key, Object value) {</p><p class="MsoNormal"> this.key = key;</p><p class="MsoNormal"> this.value = value;</p><p class="MsoNormal"> }</p><p class="MsoNormal"> }</p><p class="MsoNormal"> </p><p class="MsoNormal"> public class DuplicateElementException extends RuntimeException</p><p class="MsoNormal"> {</p><p class="MsoNormal"> DuplicateElementException() { }</p><p class="MsoNormal"> DuplicateElementException(String s) { super(s); }</p><p class="MsoNormal"> }</p><p class="MsoNormal"> </p><p class="MsoNormal">For the first, the local vars:</p><p class="MsoNormal">this, key, value</p><p class="MsoNormal">Param types:</p><p class="MsoNormal">MapQuick.PriorityQueue, double, java.lang.Object</p><p class="MsoNormal"> </p><p class="MsoNormal">Note that the type of ‘this’ is included in the list – this is not true for every other case I have seen.</p><p class="MsoNormal"> </p><p class="MsoNormal">For the second, local vars:</p><p class="MsoNormal">this, this$0</p><p class="MsoNormal">Param types:</p><p class="MsoNormal">MapQuick.PriorityQueue</p><p class="MsoNormal"> </p><p class="MsoNormal">This agrees with the ‘normal’ case as MapQuick.PriorityQueue is associated with ‘this$0’ and the type for ‘this’ is not included.</p><p class="MsoNormal"> </p><p class="MsoNormal">I had to add a lot of ugly code to work around this. It seems like including the type of the ‘this’ pointer is a problem or am I missing something?</p><p class="MsoNormal"> </p><p class="MsoNormal">Thank you,</p><p class="MsoNormal">Mark</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p></div></body></html>