Skip to content

Generated file has errors when there are two classes with same name in different packages #194

Open
@EnilPajic

Description

@EnilPajic

Hi!

My EB service looks like this:

@Fluent
MyService getTickets1(JsonObject whatever, Handler<AsyncResult<List<Ticket>>> e);

@Fluent
MyService getTickets2(JsonObject whatever, Handler<AsyncResult<List<package2.Ticket>>> e);

notice that handlers accept lists of Tickets from two different packages (package1 which is imported (import package1.Ticket;) and package2).

When I try to build my project, generated file (MyServiceVertxEBProxy) have two ambiguous imports:

import package1.Ticket;
import package2.Ticket;

And of course Java cannot distinguish which Ticket to use and throws compile time error on the second import "a type with the same simple name is already defined by the single-type-import of package1.Ticket"

Of course, this is simplified example. I'm using vertx-codegen version 3.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions