commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Roberts (JIRA)" <>
Subject [jira] [Commented] (BCEL-243) Type.getType() needs to understand TypeVariableSignature(s)
Date Fri, 04 Sep 2015 21:22:45 GMT


Mark Roberts commented on BCEL-243:

I have attached a test snippet that demonstrates the problem.

In general, BCEL has not been updated to fully support generics.  There is a basic flaw throughout
the code base that assumes a Java 'descriptor' and a Java 'signature' are the same thing.
 Kinda sorta true before generics, but definitely wrong now.  In the process of working on
this example I found two more places that are incorrect, no doubt there are many more.  [for
the record: the constructor for generic.ObjectType and classfile.Signature.translate()]

I'm not proposing we fix this larger problem for 6.0, but it should be noted as a significant
work item for the future.

> Type.getType() needs to understand TypeVariableSignature(s)
> -----------------------------------------------------------
>                 Key: BCEL-243
>                 URL:
>             Project: Commons BCEL
>          Issue Type: Bug
>            Reporter: Mark Roberts
>         Attachments: b243test.txt, type.diff
> Correct Type.getType() to use the updated Type support added as part of BCEL-197.

This message was sent by Atlassian JIRA

View raw message