1
0
-1

Hi,

I am developing two delivery services in my IDE (IntelliJ IDEA)

When I generate the second service the IDE complains that the class "FluentDeliveryService" already exists in default package.

Even though each service is named differently, and the class files are named differently, the class that is created has the same name - FluentDeliveryProcess.

I understand that services do not need to be in a package, the default is workable. So is this simply a case of changing the IDE settings so that it does not report this error? or do I need to change class names or use packages in some way to avoid the error?

 

any feedback would be appreciated.

 

Thanks

  1. Ben Warner

    I can't reproduce this. The class name should match the file name, as is the case for me.

    Which version of the SDK are you on?

  2. Mark Murray

    Hi Ben,

    I am using transact-fluent-api-5.0.2.

    Some services are created with the class name equal to the file name.

    But the 'Delivery Service' creates the class name as FluentDeliveryService, and the file name is the name that I have specified.

    This is a screenshot of the IDE project structure:

    Thanks

CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1

    Hey Mark, I've tried this on SDK 5.0.2 with Fluent Delivery Process as the service type and I'm consistently getting the class name the same as the file name which is the correct behavior.

    The behavior you're seeing is clearly not correct so I suggest you rename your classes to match the file names to resolve the errors in your project.

    I've raised the issue with our engineering team to investigate (ref TPD-4516).

     

      CommentAdd your comment...