Skip to content

Separate javaType into 'existingJavaType' and 'javaType' #828

@joelittlejohn

Description

@joelittlejohn

At present javaType has two jobs, it can be used to reference an existing classpath type and also to give a newly generated type a fixed fully-qualified name. This was a bad design, for instance:

  1. All 'existing' referenced classes need to be present on the classpath to avoid getting a new class generated, even though in fact there is no need to require them at generation time.
  2. Sources are not regenerated if previous class files are not cleaned from the project, because it's assumed that these types are 'existing' classes that are being used and should not be generated.

We should split these features, so that the schema author needs to be explicit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions