Community
Participate
Working Groups
Strings are currently used within UnresolvedType.signatureToName() and UnresolvedType.nameToSignature() whereas chars would be more effient.
Created attachment 43344 [details] possible start of implementation This came about whilst investigating bug 141730. Before realizing that the work is done for you within UnresolvedType (doh :-)) I wrote my own converter from signatures like 'Ljava/lang/String' and 'I' to 'java.lang.String' and 'int' all in terms of chars. Comparing this with the implementation in UnresolvedType the logic is pretty similar. The attached patch is a patch to the asm project and adds methods equivalent to UnresolvedType.signatureToName() and UnresolvedType.nameToSignature() to ProgramElement (called createReadableName() and getTypeName()). It also contains a typesafe enum SignatureType and a helper class CharOperation (because from the asm project you can't see the compiler CharOperation class)
decide on what to do here
unsetting the target field which is currently set for something already released