beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie O'Neil (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Resolved: (BEEHIVE-618) helpful compile error messages when building controls
Date Tue, 10 May 2005 20:26:05 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-618?page=all ]
     
Eddie O'Neil resolved BEEHIVE-618:
----------------------------------

     Assign To: James Song  (was: Eddie O'Neil)
    Resolution: Invalid

The reason that there aren't helpful messages produced by the <apt> call is the presence
of this line:

  <compilerarg line="-Xmaxerrs 0" />

in the test build file controls/test/build.xml at line 213.  The result is that all of the
source errors are suppressed.  If this line was removed, the following type of error would
show up:

      [apt] D:\dev\apache\beehive\trunk\controls\test\build\beansrc\org\apache\beehive\controls\test
\controls\threading\nested\CompositeMThreadControlImpl.java:27: cannot find symbol
      [apt] symbol  : variable fasle
      [apt] location: class org.apache.beehive.controls.test.controls.threading.nested.CompositeMThr
eadControlImpl
      [apt]             return nestedS.doSlowIncrement(fasle);}
      [apt]                                                ^
      [apt] Note: Some input files use unchecked or unsafe operations.
      [apt] Note: Recompile with -Xlint:unchecked for details.
      [apt] 1 error


> helpful compile error messages when building controls
> -----------------------------------------------------
>
>          Key: BEEHIVE-618
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-618
>      Project: Beehive
>         Type: Bug
>   Components: Controls
>     Versions: TBD
>     Reporter: James Song
>     Assignee: James Song
>      Fix For: TBD

>
> Error message:
> build-test-beans:
>      [echo] ** Compiling Controls **
>       [apt] Compiling 1 source file to D:\beehive\controls\test\build\classes\beans
>       [apt] An exception has occurred in the compiler (1.5.0). Please file a bug at the
Java Develop
> er Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade
for duplicates.
>  Include your program and the following diagnostic in your report.  Thank you.
>       [apt] java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol
>       [apt]     at com.sun.tools.javac.comp.Flow.letInit(Flow.java:375)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitUnary(Flow.java:1160)
>       [apt]     at com.sun.tools.javac.tree.Tree$Unary.accept(Tree.java:916)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:155)
>       [apt]     at com.sun.tools.javac.tree.Tree$Exec.accept(Tree.java:734)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStats(Flow.java:492)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitBlock(Flow.java:732)
>       [apt]     at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:540)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitWhileLoop(Flow.java:775)
>       [apt]     at com.sun.tools.javac.tree.Tree$WhileLoop.accept(Tree.java:568)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStats(Flow.java:492)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitBlock(Flow.java:732)
>       [apt]     at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:540)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitIf(Flow.java:1064)
>       [apt]     at com.sun.tools.javac.tree.Tree$If.accept(Tree.java:721)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStats(Flow.java:492)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitBlock(Flow.java:732)
>       [apt]     at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:540)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitMethodDef(Flow.java:684)
>       [apt]     at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:624)
>       [apt]     at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
>       [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:34)
>       [apt]     at com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:1229)
>       [apt]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:418)
>       [apt]     at com.sun.tools.javac.main.Main.compile(Main.java:592)
>       [apt]     at com.sun.tools.javac.main.Main.compile(Main.java:544)
>       [apt]     at com.sun.tools.javac.Main.compile(Main.java:58)
>       [apt]     at com.sun.tools.apt.main.Main.compile(Main.java:990)
>       [apt]     at com.sun.tools.apt.Main.compile(Main.java:41)
>       [apt]     at com.sun.tools.apt.Main.main(Main.java:32)
> BUILD FAILED
> D:\beehive\controls\test\build.xml:170: The following error occurred while executing
this line:
> D:\beehive\controls\test\build.xml:212: Compile failed; see the compiler error output
for details.
> Repro:
> 1. svn update to r169194;
> 2. update line 19 and line 23 of trunk\controls\test\src\controls\org\apache\beehive\controls\test\controls\threading\nested\NestedSThreadControlImpl.jcs
> 19    	//private int counter=0;
> 23	private int count=0;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message