Skip to content

Incorrect Problems visualizing for InnerCalls.doubleCallFactorial #1381

Description

@alisevych

Description

Incorrect Problems visualizing for InnerCalls.doubleCallFactorial
There is an error test with StackOverflowError generated:

  • there is almost empty stack trace for it
  • the wrong line is addressed in code from Problems view

To Reproduce

  1. Install one of the latest plugin build from main in IDEA
  2. Run the 'UTBotJava' project in IntelliJ Idea
  3. Use default Settings -> Tools -> UnitTestBot, set Problems view to be shown
  4. Use plugin to generate tests for the sample org.utbot.examples.inner.InnerCalls.doubleCallFactorial() with default settings
  5. On Problems tab select the only error StackOverflowError

Expected behavior

Line in Recursion.factorial should be addressed - as it throws SOE.
Full stack trace is expected.

Actual behavior

Incorrect line is addressed - in not related method InnerCalls.callLoopInsideLoop()
Same incorrect lines are shown for different other methods in InnerCalls class.

Visual proofs (screenshots, logs, images)

  • there is almost empty stack trace for it:

image

  • the wrong line is addressed in code:

image

Environment

Windows 10 Pro
IntelliJ IDEA 2022.2.3

Additional context

Originally posted by @alisevych in #1364 (comment)

Activity

  1. moved this to Todo in UTBot Javaon Nov 16, 2022
  2. moved this from Todo to In Progress in UTBot Javaon Nov 24, 2022
  3. added this to the 2022.12 Release milestone on Nov 29, 2022
  4. Repository owner moved this from In Progress to Done in UTBot Javaon Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions