When I add an inner static enum class to the import list its name contains a $ sign. But JasperReports obviously needs a . there.
Example:
package net.mycompany.dataadapter;
public interface OrderContactPerson extends ReportingData {
public static enum OrderContactPersonRole {
CONSIGNOR, CONSIGNEE, FREIGHTPAYER, LOADINGPLACE, OFFLOADINGPLACE
};
...
}
Adding the enum class to the import list results in the name:
net.mycompany.dataadapter.OrderContactPerson$OrderContactPersonRole
But for JasperReports to pick it up correctly it has to be:
net.mycompany.dataadapter.OrderContactPerson.OrderContactPersonRole
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now