java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class

GitHub | bheisler | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Exception on using @From(Ctor.class) or @From(Fields.class) in contract test

    GitHub | 2 months ago | bheisler
    java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class
  2. 0

    GitHub comment 103#216043768

    GitHub | 11 months ago | Muzietto
    com.pholser.junit.quickcheck.internal.ReflectionException: java.lang.InstantiationException: net.faustinelli.quickcheck.coordinate.Coordinates
  3. 0

    Exception on using arrays in contract test

    GitHub | 2 months ago | bheisler
    java.lang.ClassCastException: sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeVariableImpl cannot be cast to java.lang.reflect.AnnotatedArrayType
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    StringGenerator not found.

    GitHub | 1 month ago | qwelyt
    java.lang.IllegalArgumentException: Cannot find generator for StringProperties.concatenationLength:arg0 of type java.lang.String
  6. 0

    Exception from shrunk example is not logged

    GitHub | 7 months ago | tinkerware
    java.lang.AssertionError: Property commutativeCombine falsified. Original failure message: [high[=1984954367] < 2 * low[=1166016512]: a=HistogramSnapshot{count=1, range=RuntimeRange{1166016512,1167065087}}, b=HistogramSnapshot{count=1, range=RuntimeRange{1983905792,1984954367}}] Original args: [HistogramSnapshot{count=1, range=RuntimeRange{1166016512,1167065087}}, HistogramSnapshot{count=1, range=RuntimeRange{1983905792,1984954367}}] Args shrunken to: [HistogramSnapshot{count=1, range=RuntimeRange{992477184,993001471}}, HistogramSnapshot{count=1, range=RuntimeRange{1983905792,1984954367}}] Seeds: [1908559894991300119, -3782965659388203707]

    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.ClassCastException

      sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class

      at com.pholser.junit.quickcheck.internal.ParameterTypeContext.rawParameterType()
    2. junit-quickcheck-core
      PropertyParameterContext.annotate
      1. com.pholser.junit.quickcheck.internal.ParameterTypeContext.rawParameterType(ParameterTypeContext.java:175)
      2. com.pholser.junit.quickcheck.internal.ParameterTypeContext.makeGenerator(ParameterTypeContext.java:167)
      3. com.pholser.junit.quickcheck.internal.ParameterTypeContext.addGenerators(ParameterTypeContext.java:156)
      4. com.pholser.junit.quickcheck.internal.ParameterTypeContext.annotate(ParameterTypeContext.java:141)
      5. com.pholser.junit.quickcheck.internal.PropertyParameterContext.annotate(PropertyParameterContext.java:54)
      5 frames
    3. com.pholser.junit
      PropertyStatement.lambda$parameters$39
      1. com.pholser.junit.quickcheck.runner.PropertyStatement.parameterContextFor(PropertyStatement.java:190)
      2. com.pholser.junit.quickcheck.runner.PropertyStatement.lambda$parameters$39(PropertyStatement.java:167)
      2 frames
    4. Java RT
      ReferencePipeline.collect
      1. java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      2. java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      3. java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      4. java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      5. java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      6. java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      7. java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      7 frames
    5. com.pholser.junit
      PropertyStatement.evaluate
      1. com.pholser.junit.quickcheck.runner.PropertyStatement.parameters(PropertyStatement.java:174)
      2. com.pholser.junit.quickcheck.runner.PropertyStatement.evaluate(PropertyStatement.java:89)
      2 frames
    6. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      9 frames
    7. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
      1 frame
    8. 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