<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Emily,<br>
    <br>
    I see what you are saying. I agree that the test would be better if
    tested a more realistic scenario where a bean archive contains some
    classes. Unless there are objections e.g. from the TCK lead I do not
    see a problem improving the test this way.<br>
    <br>
    Jozef<br>
    <br>
    <div class="moz-cite-prefix">On 05/07/2015 01:57 PM, Emily Jiang
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAECq3A8-+FeuPU0q7LdrceFJUcT3MBfUDHx4U3d5Fk3bVLx+0Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Thank you Jozef or your reply. have brought this discussion
          in the cdi dev as I think the spec is contradicting itself.
          Anyway, this question is related to one tck test<br>
org.jboss.cdi.tck.tests.alternative.broken.incorrect.name.NoClassWithSpecifiedNameTest<br>
org.jboss.cdi.tck.tests.alternative.broken.incorrect.name.stereotype.NoAnnotationWithSpecifiedNameTest<br>
          <br>
        </div>
        This tck is to test a scenario where no classes in the
        web-inf\classes but one beans.xml. In this beans.xml, an invalid
        class was specified in the alternative list. The test is
        expecting a deployment. In my interpretation, I won't create any
        archive for it as there is no classes. What is the value to
        create one with beans.xml but nothing else (by the way, no other
        accessible bean archives either). What is the value of this
        test? I think the test should be modified to include a class.
        Thoughts?<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, May 4, 2015 at 7:30 AM, Jozef
          Hartinger <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jharting@redhat.com" target="_blank">jharting@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi Emily,<br>
              <br>
              jar1 and jar2 would be bean archives on their own. If such
              archive declares beans.xml then that one is used.
              Otherwise, the bean archive may be implicit (no beans.xml
              but bean-defining annotation). Either way, no other
              beans.xml file is used instead for that particular jar.<br>
              <br>
              HTH,<br>
              <br>
              Jozef
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 04/30/2015 11:34 PM, Emily Jiang wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>Thanks Jozef! I figured out why I did
                                not get an error:<br>
                                <br>
                              </div>
                              my war:<br>
                            </div>
                            web-inf\beans.xml (containing invalid class
                            as alternatives)<br>
                          </div>
                          web-inf\lib\jar1.jar<br>
                        </div>
                        <div>web-inf\lib\jar2.jar<br>
                        </div>
                        <div>[no web-inf\classes]<br>
                        </div>
                        In either jar1.jar or jar2.jar, there is no
                        beans.xml and no bean-defining annotations. Do
                        you think the jar1.jar and jar2.jar should use
                        the beans.xml in the web-inf? If yes, what if
                        there is beans.xml packaged in either jar1.jar
                        or jar2.jar? I cannot find any clear instruction
                        on this scenario. <br>
                      </div>
                      Thanks,<br>
                      Emily<br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Thu, Apr 30, 2015 at
                        6:24 AM, Jozef Hartinger <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:jharting@redhat.com"
                            target="_blank">jharting@redhat.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Hi
                            Emily,<br>
                            <br>
                            Weld performs all these validations.<br>
                            <br>
                            Jozef
                            <div>
                              <div><br>
                                <br>
                                <div>On 04/29/2015 11:52 PM, Emily Jiang
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">CDI1.2 spec section
                                    8.2.2 says:<br>
                                    In the beans.xml<br>
                                    Each child &lt;class&gt; element
                                    must specify the name of a decorator
                                    bean class. If there is no class
                                    with the specified name, or if the
                                    class with the specified name is not
                                    a decorator bean class, the
                                    container automatically detects the
                                    problem and treats it as a
                                    deployment problem.<br>
                                    If the same class is listed twice
                                    under the &lt;decorators&gt;
                                    element, the container automatically
                                    detects the problem and treats it as
                                    a deployment problem.<br clear="all">
                                    <div>
                                      <div>
                                        <div><br>
                                        </div>
                                        <div>Will Weld do the validation
                                          or Weld expects the integrator
                                          to do the validation? <br>
                                          <br>
                                          I am confused about what
                                          validations are done by the
                                          spec reference implemenatation
                                          (RI) or RI consumer. <br>
                                        </div>
                                        <div>-- <br>
                                          <div>Thanks<br>
                                            Emily<br>
                                            =================<br>
                                            Emily Jiang<br>
                                            <a moz-do-not-send="true"
                                              href="mailto:ejiang@apache.org"
                                              target="_blank">ejiang@apache.org</a><br>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
weld-dev mailing list
<a moz-do-not-send="true" href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a></pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <br>
                      -- <br>
                      <div>Thanks<br>
                        Emily<br>
                        =================<br>
                        Emily Jiang<br>
                        <a moz-do-not-send="true"
                          href="mailto:ejiang@apache.org"
                          target="_blank">ejiang@apache.org</a><br>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature">Thanks<br>
          Emily<br>
          =================<br>
          Emily Jiang<br>
          <a moz-do-not-send="true" href="mailto:ejiang@apache.org"
            target="_blank">ejiang@apache.org</a><br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>