Skip to content

getEnclosingClass() and getDeclaringClass() return null [reflection] #584

@jvanheesch

Description

@jvanheesch

This is an issue tracker. Please use our mailing list for general questions:
https://groups.google.com/forum/?fromgroups=#!forum/jacoco

Also check FAQ before opening an issue: http://www.jacoco.org/jacoco/trunk/doc/faq.html

Steps to reproduce

quickstart example:
quickstart.tar.gz

Run (mvn test) the quickstart example.
JaCoCo version: 0.7.9
Operating system:
Tool integration: Maven

Expected behaviour

SampleTest doesn't fail - getEnclosingClass() and getDeclaringClass() return SomeClass.class.

Actual behaviour

When running the test with Maven and JaCoCo (mvn test), the test fails.
If the JaCoCo plugin is removed, mvn test will successfully run the test.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions