<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Ambarish,<br>
    <br>
    Thank you for the clarification. But on my Ubuntu 14.04 test fails
    before and after the fix due to the same reason: mouse click or
    press is fired twice. Could you send me link to the Choice issue
    you've mentioned?<br>
    <br>
    <div class="moz-cite-prefix">On 11/2/2015 5:31 PM, Ambarish Rapte
      wrote:<br>
    </div>
    <blockquote cite="mid:c9d67fe1-cbae-4829-bc02-1be6235c2c55@default"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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;}
/* List Definitions */
@list l0
        {mso-list-id:1210342528;
        mso-list-type:hybrid;
        mso-list-template-ids:-1686489282 -350477452 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Hi Semyon,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            OpaqueOverlapping ::</span> <span style="color:#1F497D">performTest()
            function performs the test by generating mouse click event
            using,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            mouse press & mouse release events.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            But choice receives only mouse Press and mouse release event
            & does not receive the mouse clicked event.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            The test already does an adjustment for this, please refer
            line 148. <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            There is one more possibility that the test fails, If JTwork
            is not cleared before executing fix.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            Please try as,<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1
          lfo1"><!--[if !supportLists]--><span style="color:#1F497D"><span
              style="mso-list:Ignore">1.<span style="font:7.0pt
                "Times New Roman"">       </span></span></span><!--[endif]--><span
            style="color:#1F497D">Run original test using jtreg =>
            Test FAILs<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1
          lfo1"><!--[if !supportLists]--><span style="color:#1F497D"><span
              style="mso-list:Ignore">2.<span style="font:7.0pt
                "Times New Roman"">       </span></span></span><!--[endif]--><span
            style="color:#1F497D">Make the fix  change.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1
          lfo1"><!--[if !supportLists]--><span style="color:#1F497D"><span
              style="mso-list:Ignore">3.<span style="font:7.0pt
                "Times New Roman"">       </span></span></span><!--[endif]--><span
            style="color:#1F497D">Delete the JTwork folder<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:.75in;text-indent:-.25in;mso-list:l0 level1
          lfo1"><!--[if !supportLists]--><span style="color:#1F497D"><span
              style="mso-list:Ignore">4.<span style="font:7.0pt
                "Times New Roman"">       </span></span></span><!--[endif]--><span
            style="color:#1F497D">Run the test again using jtreg =>
            Test PASSes.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="margin-left:.5in"><span
            style="color:#1F497D">If we skip the step 3, the test would
            fail.<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left:.5in"><span
            style="color:#1F497D">Request you to try as above.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Many Thanks,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Ambarish<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">               
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                Semyon Sadetsky <br>
                <b>Sent:</b> Monday, November 02, 2015 2:50 PM<br>
                <b>To:</b> Ambarish Rapte; Prasanta Sadhukhan; <a
                  moz-do-not-send="true"
                  href="mailto:awt-dev@openjdk.java.net"><a class="moz-txt-link-abbreviated" href="mailto:awt-dev@openjdk.java.net">awt-dev@openjdk.java.net</a></a><br>
                <b>Subject:</b> Re: Review request for 8048171: Test
                java/awt/Mixing/AWT_Mixing/OpaqueOverlappingChoice.java
                fails on solaris, linux but passes on windows<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">Hi Ambarish,<br>
          <br>
          But I did not touch the mouse. <br>
          Usually mouse events come in the next sequence MOUSE_PRESSED,
          MOUSE_RELEASED,MOUSE_CLICKED. Why do you think that
          mouseClicked()->mousePressed() replacement should change
          something in the test? <br>
          <br>
          --Semyon<o:p></o:p></p>
        <div>
          <p class="MsoNormal">On 11/2/2015 8:51 AM, Ambarish Rapte
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">Dear  Semyon,</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">               
              This test uses the mouse for input.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">               
              While the test is running with or without fix, mouse
              should not be disturbed.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">                               
              ------------------------------</span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:1.0in">guess we should
            not touch mouse while test in in progress, in that case it
            passed.<br>
            Fix looks fine to me.<br>
            <br>
            Regards<br>
            Prasanta<o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:1.0in">-----------------------------<o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">               
              Prasanta also has verified similar way, that the test
              passes.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">               
              Kindly request you to try again.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">               
              Also If possible, please share the execution log of
              failure for me to verify.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">Many Thanks,</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">Ambarish</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">               
            </span><o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                  Semyon Sadetsky <br>
                  <b>Sent:</b> Friday, October 30, 2015 10:07 PM<br>
                  <b>To:</b> Ambarish Rapte; Prasanta Sadhukhan; <a
                    moz-do-not-send="true"
                    href="mailto:awt-dev@openjdk.java.net"><a class="moz-txt-link-abbreviated" href="mailto:awt-dev@openjdk.java.net">awt-dev@openjdk.java.net</a></a><br>
                  <b>Subject:</b> Re: Review request for 8048171: Test
                  java/awt/Mixing/AWT_Mixing/OpaqueOverlappingChoice.java
                  fails on solaris, linux but passes on windows</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt">Hi Ambarish,<br>
            <br>
            After your fix applying the test still fails.<br>
            <br>
            --Semyon<o:p></o:p></p>
          <div>
            <p class="MsoNormal">On 10/29/2015 5:00 PM, Ambarish Rapte
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal">Dear All,<o:p></o:p></p>
            <p class="MsoNormal">                Kindly review the fix
              for JDK9.<o:p></o:p></p>
            <p class="MsoNormal">                Bug: <a
                moz-do-not-send="true"
                href="https://bugs.openjdk.java.net/browse/JDK-8048171"><a class="moz-txt-link-freetext" href="https://bugs.openjdk.java.net/browse/JDK-8048171">https://bugs.openjdk.java.net/browse/JDK-8048171</a></a><o:p></o:p></p>
            <p class="MsoNormal">                Webrev: <span
                style="color:#1F497D" lang="EN-IN"><a
                  moz-do-not-send="true"
href="http://cr.openjdk.java.net/%7Erchamyal/ambarish/8048171/webrev.00/"><a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~rchamyal/ambarish/8048171/webrev.00/">http://cr.openjdk.java.net/~rchamyal/ambarish/8048171/webrev.00/</a></a></span><o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Issue:<o:p></o:p></p>
            <p class="MsoNormal">                This is an Opaque
              overlapping test for each AWT component.<o:p></o:p></p>
            <p class="MsoNormal">                To test this
              functionality, a MouseAdapter is registered as
              mouseListener with overridden mouseClicked() .<o:p></o:p></p>
            <p class="MsoNormal">                Test fails, due to
              issue with Event on Linux/Solaris, that mouseClicked event
              is not generated correctly to Choice.<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Fix:<o:p></o:p></p>
            <p class="MsoNormal">                This is an overlapping
              test and not a test for mouseCicked() for Choice.<o:p></o:p></p>
            <p class="MsoNormal">                The test simulates
              mouseClick event by sequentially passing mousePress &
              mouseRelease events.<o:p></o:p></p>
            <p class="MsoNormal">                Overriding
              mousePressed() instead of mouseClicked() for the
              registered mouse adapter solves the issue,<o:p></o:p></p>
            <p class="MsoNormal" style="text-indent:.5in">without
              causing any side effect in test execution on Windows.<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Fix Verification:<o:p></o:p></p>
            <p class="MsoNormal">                Verified successful
              execution of below tests using jtreg,<o:p></o:p></p>
            <p class="MsoNormal">               
              java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java<o:p></o:p></p>
            <p class="MsoNormal" style="text-indent:.5in">java/awt/Mixing/AWT_Mixing/OpaqueOverlappingChoice.java<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal">Many Thanks,<o:p></o:p></p>
            <p class="MsoNormal">Ambarish Rapte<o:p></o:p></p>
            <p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
          </blockquote>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New Roman
              , serif","serif""> </span><o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif""><o:p> </o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>