<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Much thanks.<br>
    <br>
    -Ulf<br>
    <br>
    <br>
    Am 03.09.2010 01:04, schrieb Neal Gafter:
    <blockquote
      cite="mid:AANLkTi=BjKcHWd30sRyOD4BJpPzwi0h7NHirT1YoarfY@mail.gmail.com"
      type="cite">No, it means that a single cast can't apply multiple
      conversions from the list of conversions that a cast is allowed to
      do.&nbsp; It can only do one of the bullets in that bulleted list.&nbsp;
      Programmers can use multiple casts.<br>
      <br>
      <div class="gmail_quote">On Thu, Sep 2, 2010 at 12:28 PM, Ulf
        Zibis <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:Ulf.Zibis@gmx.de">Ulf.Zibis@gmx.de</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> Am 02.09.2010 21:07,
            schrieb Neal Gafter:
            <blockquote type="cite">
              <div class="gmail_quote">
                <div class="im">On Wed, Sep 1, 2010 at 6:54 PM, John
                  Rose <span dir="ltr">&lt;<a moz-do-not-send="true"
                      href="mailto:john.r.rose@oracle.com"
                      target="_blank">john.r.rose@oracle.com</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    <div><br>
                    </div>
                  </blockquote>
                </div>
                <div class="im">
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">(Yes, I agree the spec. is
                    gray here. &nbsp;There is an umbrella proposal to bring
                    clarity to it, mentioned in the final paragraph of
                    my bug report.)<br>
                  </blockquote>
                  <div><br>
                    It isn't gray.&nbsp; Combined conversions are not
                    intended to be allowed.<br>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
            <br>
            Does that mean, that following code is not allowed (see: <a
              moz-do-not-send="true"
              href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6775385"
              target="_blank">Bug
              ID: 6775385 NPE caused by ConditionalExpression and
              auto-boxing failure</a>):<br>
            <pre>                Map&lt;Character,Byte&gt; c2bExistents = new HashMap();
                char c = '\u20ac';
                char directEnd = '\u0080';
                Byte exsistent = c &lt; directEnd ? (Byte)(byte)(c) : c2bExistents.get(c);
</pre>
            Workaround looks pretty ugly:<br>
            <pre>                Map&lt;Character,Byte&gt; c2bExistents = new HashMap();
                char c = '\u20ac';
                char directEnd = '\u0080';
                Byte exsistent;
                if (c &lt; directEnd)
                    exsistent = (byte)(c);
                else
                    exsistent = c2bExistents.get(c);
</pre>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>