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

ExceptionInInitializerError when running tests from IntelliJ IDEA #1427

Closed
Godin opened this issue Apr 17, 2023 · 0 comments · Fixed by #1437
Closed

ExceptionInInitializerError when running tests from IntelliJ IDEA #1427

Godin opened this issue Apr 17, 2023 · 0 comments · Fixed by #1437
Assignees
Milestone

Comments

@Godin
Copy link
Member

Godin commented Apr 17, 2023

Execution of org.jacoco.core.JaCoCoTest from IntelliJ IDEA 2022.3.3 leads to

java.lang.ExceptionInInitializerError
	at org.jacoco.core.JaCoCoTest.testVERSION(JaCoCoTest.java:27)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 7
	at java.lang.String.substring(String.java:1963)
	at org.jacoco.core.JaCoCo.<clinit>(JaCoCo.java:44)

And execution of tests from org.jacoco.report.test module leads to

java.lang.ExceptionInInitializerError
	at org.jacoco.report.internal.html.page.ReportPage.footer(ReportPage.java:153)

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 7
	at java.lang.String.substring(String.java:1963)
	at org.jacoco.core.JaCoCo.<clinit>(JaCoCo.java:44)

This is a regression introduced by #1217

@Godin Godin added type: bug 🐛 Something isn't working component: test labels Apr 17, 2023
@Godin Godin self-assigned this Apr 17, 2023
@Godin Godin changed the title ExceptionInInitializerError when running org.jacoco.report tests from IDE ExceptionInInitializerError when running tests from IntelliJ IDE May 9, 2023
@Godin Godin changed the title ExceptionInInitializerError when running tests from IntelliJ IDE ExceptionInInitializerError when running tests from IntelliJ IDEA May 9, 2023
@Godin Godin linked a pull request May 11, 2023 that will close this issue
@Godin Godin added this to the 0.8.11 milestone May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant