Create instance of generic class at runtime, supplying specializer?

Alessio Stalla alessiostalla at gmail.com
Thu Jul 16 04:23:23 UTC 2020


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 <alanruttenberg at gmail.com>
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20200716/3b051344/attachment.htm>


More information about the armedbear-devel mailing list