java.lang.AssertionError: BUG: x = ¢ instanceof VariableDeclarationFragment ? ctx.getRefactorings().remove(¢.getParent()) : remove(¢.getParent()) e1 = ctx.getRefactorings().remove(¢.getParent()) e2 = remove(¢.getParent()) es1 = [¢.getParent()] es2 = [¢.getParent()] es1.size() = 1 es2.size() = 1 r1 = ctx.getRefactorings() r1 = null -----this is all I know.

GitHub | yossigil | 5 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

    GitHub comment 185#248209723

    GitHub | 5 months ago | yossigil
    java.lang.AssertionError: BUG: x = ¢ instanceof VariableDeclarationFragment ? ctx.getRefactorings().remove(¢.getParent()) : remove(¢.getParent()) e1 = ctx.getRefactorings().remove(¢.getParent()) e2 = remove(¢.getParent()) es1 = [¢.getParent()] es2 = [¢.getParent()] es1.size() = 1 es2.size() = 1 r1 = ctx.getRefactorings() r1 = null -----this is all I know.

    Root Cause Analysis

    1. java.lang.AssertionError

      BUG: x = ¢ instanceof VariableDeclarationFragment ? ctx.getRefactorings().remove(¢.getParent()) : remove(¢.getParent()) e1 = ctx.getRefactorings().remove(¢.getParent()) e2 = remove(¢.getParent()) es1 = [¢.getParent()] es2 = [¢.getParent()] es1.size() = 1 es2.size() = 1 r1 = ctx.getRefactorings() r1 = null -----this is all I know.

      at il.org.spartan.spartanizer.wrings.TernaryPushdown.pushdown()
    2. il.org.spartan
      DispatchingVisitor.visit
      1. il.org.spartan.spartanizer.wrings.TernaryPushdown.pushdown(TernaryPushdown.java:138)
      2. il.org.spartan.spartanizer.wrings.TernaryPushdown.pushdown(TernaryPushdown.java:79)
      3. il.org.spartan.spartanizer.wrings.TernaryPushdown.pushdown(TernaryPushdown.java:32)
      4. il.org.spartan.spartanizer.wrings.IfExpressionStatementElseSimilarExpressionStatement.replacement(IfExpressionStatementElseSimilarExpressionStatement.java:43)
      5. il.org.spartan.spartanizer.wrings.IfExpressionStatementElseSimilarExpressionStatement.replacement(IfExpressionStatementElseSimilarExpressionStatement.java:1)
      6. il.org.spartan.spartanizer.wringing.ReplaceCurrentNode.suggest(ReplaceCurrentNode.java:19)
      7. il.org.spartan.spartanizer.wringing.CarefulWring.canSuggest(CarefulWring.java:12)
      8. il.org.spartan.spartanizer.wringing.CarefulWring.demandsToSuggestButPerhapsCant(CarefulWring.java:16)
      9. il.org.spartan.spartanizer.dispatch.Toolbox.find(Toolbox.java:205)
      10. il.org.spartan.spartanizer.dispatch.Toolbox.find(Toolbox.java:217)
      11. il.org.spartan.spartanizer.dispatch.Trimmer$2.go(Trimmer.java:84)
      12. il.org.spartan.spartanizer.dispatch.DispatchingVisitor.cautiousGo(DispatchingVisitor.java:119)
      13. il.org.spartan.spartanizer.dispatch.DispatchingVisitor.visit(DispatchingVisitor.java:53)
      13 frames
    3. JDT Core
      ASTNode.accept
      1. org.eclipse.jdt.core.dom.IfStatement.accept0(IfStatement.java:187)
      2. org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
      3. org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
      4. org.eclipse.jdt.core.dom.Block.accept0(Block.java:137)
      5. org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
      6. org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
      7. org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:635)
      8. org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
      9. org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
      10. org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:470)
      11. org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
      12. org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
      13. org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
      14. org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
      14 frames
    4. il.org.spartan
      Builder.lambda$1
      1. il.org.spartan.plugin.GUI$Applicator.collectSuggesions(GUI$Applicator.java:113)
      2. il.org.spartan.plugin.Builder.addMarkers(Builder.java:77)
      3. il.org.spartan.plugin.Builder.addMarkers(Builder.java:72)
      4. il.org.spartan.plugin.Builder.addMarkers(Builder.java:56)
      5. il.org.spartan.plugin.Builder.lambda$1(Builder.java:100)
      5 frames
    5. Core Resource Management
      Resource.accept
      1. org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:120)
      2. org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:84)
      3. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
      4. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      5. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      6. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      7. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      8. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      9. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      10. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      11. org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
      12. org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
      13. org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
      14. org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)
      15. org.eclipse.core.internal.resources.Resource.accept(Resource.java:117)
      16. org.eclipse.core.internal.resources.Resource.accept(Resource.java:105)
      16 frames
    6. il.org.spartan
      Builder.build
      1. il.org.spartan.plugin.Builder.fullBuild(Builder.java:99)
      2. il.org.spartan.plugin.Builder.build(Builder.java:118)
      3. il.org.spartan.plugin.Builder.build(Builder.java:91)
      3 frames
    7. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
      1 frame
    8. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    9. Core Resource Management
      BuildManager$1.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
      3 frames
    10. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    11. Core Resource Management
      Project.build
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
      3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:403)
      4. org.eclipse.core.internal.resources.Project$1.run(Project.java:551)
      5. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
      6. org.eclipse.core.internal.resources.Project.internalBuild(Project.java:529)
      7. org.eclipse.core.internal.resources.Project.build(Project.java:112)
      7 frames
    12. il.org.spartan
      Plugin.earlyStartup
      1. il.org.spartan.plugin.Plugin.refreshAllProjects(Plugin.java:34)
      2. il.org.spartan.plugin.Plugin.startSpartan(Plugin.java:63)
      3. il.org.spartan.plugin.Plugin.earlyStartup(Plugin.java:74)
      3 frames
    13. Eclipse UI
      EarlyStartupRunnable.run
      1. org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:77)
      2. org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:53)
      2 frames
    14. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    15. Eclipse UI
      Workbench$55.run
      1. org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2829)
      1 frame
    16. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame