Re: Create instance of generic class at runtime, supplying specializer?

Alessio Stalla <[email protected]> Thu, 16 Jul 2020 06:23:23 +0200
Newsgroups gmane.editors.j.devel
Message-ID <CAL2Kp+gX8232JOxM+SonJnnOAFHjGqGYV_vwDC+GTJrg4LmN4g@mail.gmail.com>
You can't. The specializer exists only in the Java compiler, it's erased at
runtime.

On Thu, Jul 16, 2020, 04:31 Alan Ruttenberg <[email protected]>
wrote:

> For instance in
>
>
> http://owlcs.github.io/owlapi/apidocs_4/org/semanticweb/owlapi/util/InferredObjectPropertyAxiomGenerator.html
>
> It says:
> Type Parameters:A - the axiom type
> Question is: how do I supply the axiom type when creating an instance.
>
> Thanks
> ALan
>