Jump to content
  • Import of inner static enum class


    tdtappe
    Assigned User Massimo Rabbi
    CategoryBug report
    PriorityNormal
    ReproducibilityAlways
    ResolutionFixed
    SeverityMinor
    StatusResolved
    Versionv6.2.1

    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



    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...