Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Generated Tests Under JDK 17 Files Due To Modules Export Error #2709

Open
mrother-stoneriver opened this issue Dec 3, 2023 · 0 comments
Labels
ctg-bug Issue is a bug

Comments

@mrother-stoneriver
Copy link

Description

After generating unit tests for existing java classes, the unit tests fail to build to java modules export error.

To Reproduce

Steps to reproduce the behavior:

Have a java class which has a java.util.Date instance variable. Generated test class has the following:

import sun.util.calendar.JulianCalendar;

which when compiles gives the following error

error: package sun.util.calendar is not visible
[ERROR] (package sun.util.calendar is declared in module java.base, which does not export it)

Expected behavior

Generated tests compile.

Actual behavior

Tests failed compilation.

Visual proofs (screenshots, logs, images)

Example:

public void testFail_errors() {
// Couldn't generate some tests. List of errors:
//
// 684 occurrences of:
// Concrete execution failed
}

Environment

Substitute this text with an information that can help us to recreate the environment. For instance, specify Java version, test framework with a version (JUnit, TestNG...), Mockito configuration (packages, classes, statics), were the test parametrized or not and so on.

Additional context

Add any other context about the problem here.

@mrother-stoneriver mrother-stoneriver added the ctg-bug Issue is a bug label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
Status: Todo
Development

No branches or pull requests

1 participant