java.lang.AssertionError: Cannot parse ' /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); } ********* I tried the following options: * Attempt 1: Statement * I = <package p;public final class C{public void m(){/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}}>; * O = <package p;public final class C{public void m(){}}>; **** PARSED= package p; public final class C { public void m(){ } } * AST=org.eclipse.jdt.core.dom.AST@5035c23c **** INPUT= package p; public final class C { public void m(){ /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }} // END m } // END p **** OUTPUT= package p; public final class C { public void m(){ } } * Attempt 2: Expression * I = <package p;public final class C{public void m(){while(/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));});}}>; * O = <package p;public final class C{public void m(){}}>; **** PARSED= package p; public final class C { public void m(){ } } * AST=org.eclipse.jdt.core.dom.AST@6e92f150 **** INPUT= package p; public final class C { public void m(){ while (/** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }); } // END m } // END p **** OUTPUT= package p; public final class C { public void m(){ } } * Attempt 3: Method * I = <package p;public final class C{/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}>; * O = <package p;public final class C{/***Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}>; **** PARSED= package p; public final class C { /** * Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands( final InfixExpression x){ assert x != null; return hop.operands(flatten.of(x)); } } * AST=org.eclipse.jdt.core.dom.AST@4268c16 **** INPUT= package p; public final class C { /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }} // END p **** OUTPUT= package p; public final class C { /** * Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands( final InfixExpression x){ assert x != null; return hop.operands(flatten.of(x)); } } * Attempt 4: OUTER * I = <package p;/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}>; * O = <package p;>; **** PARSED= package p; * AST=org.eclipse.jdt.core.dom.AST@50a2034c **** INPUT= package p; // BEGIN PACKAGE /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); } // END PACKAGE **** OUTPUT= package p;

GitHub | yossigil | 2 months ago
  1. 0

    GitHub comment 180#250072901

    GitHub | 2 months ago | yossigil
    java.lang.AssertionError: Cannot parse ' /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); } ********* I tried the following options: * Attempt 1: Statement * I = <package p;public final class C{public void m(){/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}}>; * O = <package p;public final class C{public void m(){}}>; **** PARSED= package p; public final class C { public void m(){ } } * AST=org.eclipse.jdt.core.dom.AST@5035c23c **** INPUT= package p; public final class C { public void m(){ /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }} // END m } // END p **** OUTPUT= package p; public final class C { public void m(){ } } * Attempt 2: Expression * I = <package p;public final class C{public void m(){while(/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));});}}>; * O = <package p;public final class C{public void m(){}}>; **** PARSED= package p; public final class C { public void m(){ } } * AST=org.eclipse.jdt.core.dom.AST@6e92f150 **** INPUT= package p; public final class C { public void m(){ while (/** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }); } // END m } // END p **** OUTPUT= package p; public final class C { public void m(){ } } * Attempt 3: Method * I = <package p;public final class C{/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}>; * O = <package p;public final class C{/***Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}>; **** PARSED= package p; public final class C { /** * Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands( final InfixExpression x){ assert x != null; return hop.operands(flatten.of(x)); } } * AST=org.eclipse.jdt.core.dom.AST@4268c16 **** INPUT= package p; public final class C { /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }} // END p **** OUTPUT= package p; public final class C { /** * Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands( final InfixExpression x){ assert x != null; return hop.operands(flatten.of(x)); } } * Attempt 4: OUTER * I = <package p;/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}>; * O = <package p;>; **** PARSED= package p; * AST=org.eclipse.jdt.core.dom.AST@50a2034c **** INPUT= package p; // BEGIN PACKAGE /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); } // END PACKAGE **** OUTPUT= package p;
  2. 0

    Test failures on OSX 10.10.1 / Java 1.8.0_40-ea

    GitHub | 2 years ago | xpe
    java.lang.AssertionError: Failed to convert correctly at position: 30 result (str): "/timestampAfterFeb2036,t�WP" answer (str): "/timestampAfterFeb2036,t��" result (raw): "{ 47, 116, 105, 109, 101, 115, 116, 97, 109, 112, 65, 102, 116, 101, 114, 70, 101, 98, 50, 48, 51, 54, 0, 0, 44, 116, 0, 0, 1, -80, 87, 80, 0, 0, 0, 0 };" answer (raw): "{ 47, 116, 105, 109, 101, 115, 116, 97, 109, 112, 65, 102, 116, 101, 114, 70, 101, 98, 50, 48, 51, 54, 0, 0, 44, 116, 0, 0, 1, -80, 2, -16, 0, 0, 0, 0 };"
  3. 0

    JAX-RS Declarative Security tests are failing

    GitHub | 2 years ago | bartoszmajsak
    java.lang.AssertionError: Basic authentication required: {realm="file"}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Soften Graph Generator Tests

    GitHub | 2 years ago | spmallette
    java.lang.AssertionError: Cross community percentage should not be less than zero
  6. 0

    [TEST-FAILURE] ClientTxnTest.testTxnRollbackOnServerCrash

    GitHub | 2 years ago | mesutcelik
    java.lang.AssertionError: commit should throw exception !

  1. andyglick 7 times, last 3 months ago
  2. tfr 4 times, last 5 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    Cannot parse ' /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); } ********* I tried the following options: * Attempt 1: Statement * I = <package p;public final class C{public void m(){/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}}>; * O = <package p;public final class C{public void m(){}}>; **** PARSED= package p; public final class C { public void m(){ } } * AST=org.eclipse.jdt.core.dom.AST@5035c23c **** INPUT= package p; public final class C { public void m(){ /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }} // END m } // END p **** OUTPUT= package p; public final class C { public void m(){ } } * Attempt 2: Expression * I = <package p;public final class C{public void m(){while(/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));});}}>; * O = <package p;public final class C{public void m(){}}>; **** PARSED= package p; public final class C { public void m(){ } } * AST=org.eclipse.jdt.core.dom.AST@6e92f150 **** INPUT= package p; public final class C { public void m(){ while (/** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }); } // END m } // END p **** OUTPUT= package p; public final class C { public void m(){ } } * Attempt 3: Method * I = <package p;public final class C{/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}>; * O = <package p;public final class C{/***Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}}>; **** PARSED= package p; public final class C { /** * Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands( final InfixExpression x){ assert x != null; return hop.operands(flatten.of(x)); } } * AST=org.eclipse.jdt.core.dom.AST@4268c16 **** INPUT= package p; public final class C { /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); }} // END p **** OUTPUT= package p; public final class C { /** * Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands( final InfixExpression x){ assert x != null; return hop.operands(flatten.of(x)); } } * Attempt 4: OUTER * I = <package p;/**Retrieve all operands,including parenthesized ones,under an expression*@param x JD*@return a{@link List}of all operands to the parameter*/public static List<Expression>allOperands(final InfixExpression x){assert x!=null;return hop.operands(flatten.of(x));}>; * O = <package p;>; **** PARSED= package p; * AST=org.eclipse.jdt.core.dom.AST@50a2034c **** INPUT= package p; // BEGIN PACKAGE /** Retrieve all operands, including parenthesized ones, under an expression * @param x JD * @return a {@link List} of all operands to the parameter */ public static List<Expression> allOperands(final InfixExpression x) { assert x != null; return hop.operands(flatten.of(x)); } // END PACKAGE **** OUTPUT= package p;

    at org.junit.Assert.fail()
  2. JUnit
    Assert.fail
    1. org.junit.Assert.fail(Assert.java:88)
    1 frame
  3. il.org.spartan
    Issue180.renameToCentRealWorld
    1. il.org.spartan.azzert.fail(azzert.java:201)
    2. il.org.spartan.spartanizer.spartanizations.Wrap.find(Wrap.java:46)
    3. il.org.spartan.spartanizer.tippers.TrimmerTestsUtils$Operand.gives(TrimmerTestsUtils.java:67)
    4. il.org.spartan.spartanizer.tippers.Issue180.renameToCentRealWorld(Issue180.java:26)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    13 frames
  6. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    1 frame
  7. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames