GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Summaries are not generated due to FileNotFoundException · Issue #1227 · UnitTestBot/UTBotJava

Summaries are not generated due to FileNotFoundException  #1227

New issue
Copy link
New issue
Copy link
Closed
Closed
Summaries are not generated due to FileNotFoundException #1227
Copy link
Labels
comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bug

Description

@amandelpie
amandelpie
opened on Oct 25, 2022
Issue body actions

Description

Summaries are not generated due to FileNotFoundException thrown in the SourceCodeParser.kt:45

The error message is the following: "C:\Users<username>.jdks\corretto-11.0.16.1\lib\src.zip!\java.base\java\lang\Math.java (??????? ?? ??????? ????? ????????? ????)"

Need to say that the Math.java file is exist as a Zip entry in the archive with sources mentioned above

To Reproduce

  1. Run runIde Gradle task
  2. Copy to the open project the mentioned below snippet of code
  3. Use plugin to generate tests for DoubleFunctions::hypo method
public class DoubleFunctions {
    public double hypo(double a, double b) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
    }

    @SuppressWarnings("ManualMinMaxCalculation")
    public double max(double a, double b) {
        return a > b ? a : b;
    }

    public double circleSquare(double r) {
        if (r < 0 || Double.isNaN(r) || r > 10000) {
            throw new IllegalArgumentException();
        }
        double square = Math.PI * r * r;
        if (square > 777.85) {
            return square;
        } else {
            return 0;
        }
    }

    public int numberOfRootsInSquareFunction(double a, double b, double c) {

        double result = b * b - 4 * a * c;
        if (result > 0) {
            return 2;
        } else if (result == 0) {
            return 1;
        }
        return 0;
    }
}

Expected behavior

Tests with summaries should be generated.

Actual behavior

Tests are generated without summaries.

Visual proofs (screenshots, logs, images)

image

Environment

The Coretto jdk 11.0.16.1 is installed and used in both, initial and debug IDEs

Activity

  1. ghost added
    ctg-bugIssue is a bugIssue is a bug
    on Oct 25, 2022
  2. ghost added
    comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generation
    on Oct 25, 2022
  3. ghost
    self-assigned this
    on Oct 25, 2022
  4. ghost
    self-assigned this
    on Oct 25, 2022
  5. Repository owner unassigned on Oct 27, 2022
  6. ghost closed this as completedon Oct 28, 2022
  7. ghost reopened this on Nov 3, 2022
  8. ghost closed this as completedin #1303on Nov 7, 2022
  9. 4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bug

    Projects are currently unavailable

    Please try again later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.