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

GitHub | mdiiorio | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception while translating Enum

    GitHub | 8 months ago | mdiiorio
    com.google.devtools.j2objc.ast.TreeVisitorAssertionError: Enum.java:12: could not find constructor
  2. 0

    Problem when translating generated code that have default method that `super` keyword

    GitHub | 12 months ago | mahmoud-khalifa
    com.google.devtools.j2objc.ast.TreeVisitorAssertionError: testProject/target/generated-sources/annotations/com/company/services/api/ImmutableTopicPattern.java:23: null

    Root Cause Analysis

    1. com.google.devtools.j2objc.ast.TreeVisitorAssertionError

      Enum.java:12: could not find constructor

      at com.google.devtools.j2objc.translate.AnonymousClassConverter.findSuperConstructorBinding()
    2. com.google.devtools
      JdtParser$1.acceptAST
      1. com.google.devtools.j2objc.translate.AnonymousClassConverter.findSuperConstructorBinding(AnonymousClassConverter.java:179)
      2. com.google.devtools.j2objc.translate.AnonymousClassConverter.addDefaultConstructor(AnonymousClassConverter.java:137)
      3. com.google.devtools.j2objc.translate.AnonymousClassConverter.endVisit(AnonymousClassConverter.java:93)
      4. com.google.devtools.j2objc.ast.AnonymousClassDeclaration.acceptInner(AnonymousClassDeclaration.java:73)
      5. com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
      6. com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
      7. com.google.devtools.j2objc.ast.EnumConstantDeclaration.acceptInner(EnumConstantDeclaration.java:103)
      8. com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
      9. com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
      10. com.google.devtools.j2objc.ast.ChildList.accept(ChildList.java:91)
      11. com.google.devtools.j2objc.ast.EnumDeclaration.acceptInner(EnumDeclaration.java:65)
      12. com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
      13. com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
      14. com.google.devtools.j2objc.ast.ChildList.accept(ChildList.java:91)
      15. com.google.devtools.j2objc.ast.CompilationUnit.acceptInner(CompilationUnit.java:199)
      16. com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:106)
      17. com.google.devtools.j2objc.ast.TreeVisitor.run(TreeVisitor.java:39)
      18. com.google.devtools.j2objc.pipeline.TranslationProcessor.applyMutations(TranslationProcessor.java:181)
      19. com.google.devtools.j2objc.pipeline.TranslationProcessor.processConvertedTree(TranslationProcessor.java:100)
      20. com.google.devtools.j2objc.pipeline.FileProcessor.processCompiledSource(FileProcessor.java:173)
      21. com.google.devtools.j2objc.pipeline.FileProcessor.access$000(FileProcessor.java:43)
      22. com.google.devtools.j2objc.pipeline.FileProcessor$1.handleParsedUnit(FileProcessor.java:145)
      23. com.google.devtools.j2objc.util.JdtParser$1.acceptAST(JdtParser.java:165)
      23 frames
    3. j2objc.org.eclipse
      ASTParser.createASTs
      1. j2objc.org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1029)
      2. j2objc.org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:636)
      3. j2objc.org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:990)
      3 frames
    4. com.google.devtools
      J2ObjC.main
      1. com.google.devtools.j2objc.util.JdtParser.parseFiles(JdtParser.java:174)
      2. com.google.devtools.j2objc.pipeline.FileProcessor.processBatch(FileProcessor.java:153)
      3. com.google.devtools.j2objc.pipeline.FileProcessor.processInputs(FileProcessor.java:72)
      4. com.google.devtools.j2objc.pipeline.TranslationProcessor.processInputs(TranslationProcessor.java:80)
      5. com.google.devtools.j2objc.J2ObjC.run(J2ObjC.java:139)
      6. com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:174)
      6 frames