incorrect error message when building a control
-----------------------------------------------
Key: BEEHIVE-618
URL: http://issues.apache.org/jira/browse/BEEHIVE-618
Project: Beehive
Type: Bug
Components: Controls
Versions: V1
Reporter: James Song
Assigned to: Eddie O'Neil
Fix For: V1
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