java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCContinue cannot be cast to com.sun.tools.javac.tree.JCTree$JCExpression

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 843851, 1 year ago
com.sun.tools.javac.tree.JCTree$JCContinue cannot be cast to com.sun.tools.javac.tree.JCTree$JCExpression
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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.