java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Problem with continue in a for loop
    via by 843851,
    • java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCContinue cannot be cast to com.sun.tools.javac.tree.JCTree$JCExpression at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:568) at com.sun.tools.javafx.comp.JavafxToJava.visitBlockExpression(JavafxToJava.java:2320) at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83) at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565) at com.sun.tools.javafx.comp.JavafxToJava.translateAsValue(JavafxToJava.java:575) at com.sun.tools.javafx.comp.JavafxToJava.visitIfExpression(JavafxToJava.java:3595) at com.sun.tools.javafx.tree.JFXIfExpression.accept(JFXIfExpression.java:48) at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565) at com.sun.tools.javafx.comp.JavafxToJava.visitBlockExpression(JavafxToJava.java:2320) at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83) at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565) at com.sun.tools.javafx.comp.JavafxToJava.translateAsValue(JavafxToJava.java:575) at com.sun.tools.javafx.comp.JavafxToJava$5.addElement(JavafxToJava.java:3007) at com.sun.tools.javafx.comp.JavafxToJava.visitForExpression(JavafxToJava.java:3212) at com.sun.tools.javafx.tree.JFXForExpression.accept(JFXForExpression.java:50) at com.sun.tools.javafx.comp.JavafxToJava.translateToExpression(JavafxToJava.java:565) at com.sun.tools.javafx.comp.JavafxToJava.translateAsValue(JavafxToJava.java:575) at com.sun.tools.javafx.comp.JavafxToJava.translateNonBoundInit(JavafxToJava.java:1861) at com.sun.tools.javafx.comp.JavafxToJava.translateDefinitionalAssignmentToValueArg(JavafxToJava.java:1876) at com.sun.tools.javafx.comp.JavafxToJava.translateDefinitionalAssignmentToSetExpression(JavafxToJava.java:1917) at com.sun.tools.javafx.comp.JavafxToJava.visitVarScriptInit(JavafxToJava.java:1976) at com.sun.tools.javafx.tree.JFXVarScriptInit.accept(JFXVarScriptInit.java:67) at com.sun.tools.javafx.comp.JavafxToJava.translateToStatement(JavafxToJava.java:598) at com.sun.tools.javafx.comp.JavafxToJava.translateToStatement(JavafxToJava.java:628) at com.sun.tools.javafx.comp.JavafxToJava.visitBlockExpression(JavafxToJava.java:2306) at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83) at com.sun.tools.javafx.comp.JavafxToJava.translateToStatement(JavafxToJava.java:598) at com.sun.tools.javafx.comp.JavafxToJava.access$700(JavafxToJava.java:89) at com.sun.tools.javafx.comp.JavafxToJava$FunctionTranslator.makeRunMethodBody(JavafxToJava.java:2164) at com.sun.tools.javafx.comp.JavafxToJava$FunctionTranslator.methodBody(JavafxToJava.java:2224) at com.sun.tools.javafx.comp.JavafxToJava$FunctionTranslator.doit(JavafxToJava.java:2279) at com.sun.tools.javafx.comp.JavafxToJava.visitFunctionDefinition(JavafxToJava.java:2292) at com.sun.tools.javafx.tree.JFXFunctionDefinition.accept(JFXFunctionDefinition.java:93) at com.sun.tools.javafx.comp.JavafxToJava.translateGeneric(JavafxToJava.java:500) at com.sun.tools.javafx.comp.JavafxToJava.translate(JavafxToJava.java:509) at com.sun.tools.javafx.comp.JavafxToJava.visitClassDeclaration(JavafxToJava.java:1261) at com.sun.tools.javafx.tree.JFXClassDeclaration.accept(JFXClassDeclaration.java:141) at com.sun.tools.javafx.comp.JavafxToJava.translateGeneric(JavafxToJava.java:500) at com.sun.tools.javafx.comp.JavafxToJava.translate(JavafxToJava.java:521) at com.sun.tools.javafx.comp.JavafxToJava.visitScript(JavafxToJava.java:1147) at com.sun.tools.javafx.tree.JFXScript.accept(JFXScript.java:89) at com.sun.tools.javafx.comp.JavafxToJava.translateGeneric(JavafxToJava.java:500) at com.sun.tools.javafx.comp.JavafxToJava.translate(JavafxToJava.java:517) at com.sun.tools.javafx.comp.JavafxToJava.toJava(JavafxToJava.java:691) at com.sun.tools.javafx.main.JavafxCompiler.jfxToJava(JavafxCompiler.java:728) at com.sun.tools.javafx.main.JavafxCompiler.jfxToJava(JavafxCompiler.java:699) at com.sun.tools.javafx.main.JavafxCompiler.compile2(JavafxCompiler.java:785) at com.sun.tools.javafx.main.JavafxCompiler.compile(JavafxCompiler.java:685) at com.sun.tools.javafx.main.Main.compile(Main.java:624) at com.sun.tools.javafx.main.Main.compile(Main.java:312) at com.sun.tools.javafx.Main.compile(Main.java:84) at com.sun.tools.javafx.Main.main(Main.java:69)
    No Bugmate found.