<p dir="ltr">That what I'm asking help for - to isolate  the problematic source.<br>
But from what I learnt - it is combination of source and dependencies. The same source ***passed*** if it is complied with a dependency that wasn't compile with "-parameters".<br>
What I need is a flag (or a patch) that causes the compiler to emit verbose information</p>
<p dir="ltr">Thanks<br>
Boaz<br>
</p>
<div class="gmail_quote">On Mar 23, 2014 9:18 PM, "Vicente-Arturo Romero-Zaldivar" <<a href="mailto:vicente.romero@oracle.com">vicente.romero@oracle.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Boaz,<br>
      <br>
      Do you have an isolated test case?<br>
      <br>
      Thanks,<br>
      Vicente<br>
      <br>
      On 23/03/14 12:40, Boaz Nahum wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Actaully '-XDverboseCompilePolicy and
        -Xdiags:verbose' are not ignored, it is just that the exception
        occurs too early. If I remove '-parameters' then they do the
        work ....<br>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Sun, Mar 23, 2014 at 2:29 PM, Boaz
          Nahum <span dir="ltr"><<a href="mailto:boaznahum@gmail.com" target="_blank">boaznahum@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>When compiling our code with '-parameters'
                  (1.8.0_20-ea and  1.8.0-b132), we got this exception:<br>
                  <br>
                  <div style="margin-left:40px">An exception has
                    occurred in the compiler (1.8.0). Please file a bug
                    at the Java Developer/bugreport)  after checking the
                    Bug Parade for duplicates. Include your program and
                    the following diagnostic in your report.  Thank you.<br>
                       java.lang.ClassCastException: java.lang.String
                    cannot be cast to <a href="http://com.sun.tools.javac.util.Name" target="_blank">com.sun.tools.javac.util.Name</a><br>
                           at
                    com.sun.tools.javac.jvm.ClassReader.readName(ClassReader.java:602)<br>
                           at
com.sun.tools.javac.jvm.ClassReader.setParameterNames(ClassReader.java:2130)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:2031)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2234)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2306)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2493)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2424)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:244)<br>
                            at
                    com.sun.tools.javac.code.Symbol.complete(Symbol.java:560)<br>
                            at
                    com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1024)<br>
                            at
                    com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:2605)<br>
                            at
                    com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1868)<br>
                            at
                    com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:2107)<br>
                            at
                    com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3358)<br>
                            at
                    com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3257)<br>
                            at
                    com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1891)<br>
                            at
                    com.sun.tools.javac.comp.Attr.attribTree(Attr.java:596)<br>
                            at
                    com.sun.tools.javac.comp.Attr.attribType(Attr.java:658)<br>
                            at
                    com.sun.tools.javac.comp.Attr.attribType(Attr.java:651)<br>
                            at
com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:836)<br>
                            at
                    com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:556)<br>
                            at
                    com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:571)<br>
                            at
                    com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:435)<br>
                            at
                    com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:447)<br>
                            at
                    com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:526)<br>
                            at
com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518)<br>
                            at
                    com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:435)<br>
                            at
                    com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1038)<br>
                            at
                    com.sun.tools.javac.code.Symbol.complete(Symbol.java:560)<br>
                            at
                    com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1024)<br>
                            at
                    com.sun.tools.javac.comp.Enter.complete(Enter.java:497)<br>
                            at
                    com.sun.tools.javac.comp.Enter.main(Enter.java:475)<br>
                            at
                    com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:985)<br>
                            at
                    com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)<br>
                            at
                    com.sun.tools.javac.main.Main.compile(Main.java:523)<br>
                            at
                    com.sun.tools.javac.main.Main.compile(Main.java:381)<br>
                            at
                    com.sun.tools.javac.main.Main.compile(Main.java:370)<br>
                            at
                    com.sun.tools.javac.main.Main.compile(Main.java:361)<br>
                            at
                    com.sun.tools.javac.Main.compile(Main.java:56)<br>
                            at
                    com.sun.tools.javac.Main.main(Main.java:42)<br>
                    <br>
                    <br>
                  </div>
                  Thanks<br>
                </div>
                <div>
                  Boaz<br>
                  <br>
                </div>
                <div><br>
                  <br>
                </div>
                In order to isolate the problematic code, I add 
                -XDverboseCompilePolicy and -Xdiags:verbose, without
                luck. <br>
                Why they are ignored ? <br>
                <br>
              </div>
              Please note that an annotation processor is involved.<br>
              <br>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>