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

Compile error due to unused import of a class which is not in the dependencies #959

parenko opened this Issue Nov 25, 2018 · 0 comments


2 participants
Copy link

parenko commented Nov 25, 2018

There are some unused imports of javax.activation.FileDataSource.

To reproduce the problem simply try to assemble the project $ ./gradlew assemble.
This produces an error output:

> Task :tests:utils:compileJava FAILED
/home/pawlik/Development/powermock/tests/utils/src/main/java/samples/privatemocking/ error: package javax.activation does not exist
import javax.activation.FileDataSource;


Affected PowerMock version 2.0.0-RC.5

IntelliJ IDEA 2018.3 (Community Edition)
Build #IC-183.4284.148, built on November 21, 2018
JRE: 1.8.0_152-release-1343-b15 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-39-generic

$ java -version
java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)

parenko added a commit to parenko/powermock that referenced this issue Nov 25, 2018

thekingnothing added a commit that referenced this issue Dec 25, 2018

@thekingnothing thekingnothing added the bug label Dec 25, 2018

@thekingnothing thekingnothing added this to To Do in PowerMock 2.x via automation Dec 25, 2018

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