I am currently trying to migrate our product from Jakarta EE 8 to Jakarta EE 10. According to the namespace changes of Jakarta APIs I've decided to use intellij Migration tool. After that when I tried to build the application I found out following problem.
We are using 3rd party dependency which has class let's say Person
. All constructors of particular class throw javax.activation.MimeTypeParseException
We had a class Student
which extends class Person
so after migration, our class is importing exception class from the new namespace -> jakarta.activation.MimeTypeParseException;
import jakarta.activation.MimeTypeParseException;
public class Student extends Person {
public Student(String name) throws MimeTypeParseException {
super(name);
}
}
Having the constructor like this, calling super
is throwing error:
Unhandled exception javax.activation.MimeTypeParseException
I've tried to use the newest version of 3rd party package but it still uses the old Javax namespace.
Is there somebody with a similar experience? Or do you know how to solve that, without downloading 3rd party and migrating also its code?