com.google.devtools.j2objc.ast.TreeVisitorAssertionError: Enum.java:12: could not find constructor

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 GitHub by mdiiorio
, 1 year ago
Enum.java:12: could not find constructor
com.google.devtools.j2objc.ast.TreeVisitorAssertionError: Enum.java:12: could not find constructor
at com.google.devtools.j2objc.translate.AnonymousClassConverter.findSuperConstructorBinding(AnonymousClassConverter.java:179)
at com.google.devtools.j2objc.translate.AnonymousClassConverter.addDefaultConstructor(AnonymousClassConverter.java:137)
at com.google.devtools.j2objc.translate.AnonymousClassConverter.endVisit(AnonymousClassConverter.java:93)
at com.google.devtools.j2objc.ast.AnonymousClassDeclaration.acceptInner(AnonymousClassDeclaration.java:73)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
at com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
at com.google.devtools.j2objc.ast.EnumConstantDeclaration.acceptInner(EnumConstantDeclaration.java:103)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
at com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
at com.google.devtools.j2objc.ast.ChildList.accept(ChildList.java:91)
at com.google.devtools.j2objc.ast.EnumDeclaration.acceptInner(EnumDeclaration.java:65)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
at com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
at com.google.devtools.j2objc.ast.ChildList.accept(ChildList.java:91)
at com.google.devtools.j2objc.ast.CompilationUnit.acceptInner(CompilationUnit.java:199)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
at com.google.devtools.j2objc.ast.TreeVisitor.run(TreeVisitor.java:39)
at com.google.devtools.j2objc.pipeline.TranslationProcessor.applyMutations(TranslationProcessor.java:181)
at com.google.devtools.j2objc.pipeline.TranslationProcessor.processConvertedTree(TranslationProcessor.java:100)
at com.google.devtools.j2objc.pipeline.FileProcessor.processCompiledSource(FileProcessor.java:173)
at com.google.devtools.j2objc.pipeline.FileProcessor.access$000(FileProcessor.java:43)
at com.google.devtools.j2objc.pipeline.FileProcessor$1.handleParsedUnit(FileProcessor.java:145)
at com.google.devtools.j2objc.util.JdtParser$1.acceptAST(JdtParser.java:165)
at j2objc.org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1029)
at j2objc.org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:636)
at j2objc.org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:990)
at com.google.devtools.j2objc.util.JdtParser.parseFiles(JdtParser.java:174)
at com.google.devtools.j2objc.pipeline.FileProcessor.processBatch(FileProcessor.java:153)
at com.google.devtools.j2objc.pipeline.FileProcessor.processInputs(FileProcessor.java:72)
at com.google.devtools.j2objc.pipeline.TranslationProcessor.processInputs(TranslationProcessor.java:80)
at com.google.devtools.j2objc.J2ObjC.run(J2ObjC.java:139)
at com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:174)

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.