Re: [PATCH] Bug in getType(Class)
Juozas Baliuka <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <5.0.2.1.0.20020606133626.01fe2140@localhost> |
Yes, I see it works, documentation confused me:
*@param signature signature string such as Ljava/lang/String;*
but it is like this :
"@param signature signature string such as Ljava/lang/String; or
[Ljava.lang.String
Magic method :)
......................................................................................
/**
* Convert signature to a Type object.
* @param signature signature string such as Ljava/lang/String;
* @return type object
*/
public static final Type getType(String signature)
...................................................................................
At 16:20 2002.06.06 +0200, you wrote:
>Juozas Baliuka wrote:
>
>>sorry, bug in bug fixing :)
>> must be :
>>...............
>>if (cl.isArray())
>> return new ArrayType(getType(cl.getComponentType()),
>>cl.getName().lastIndexOf('[') + 1);
>>.............
>>
>>>Hi,
>>>This is fix for bug in array type handling.
>>>
>>
>>----------------------------------------------------------------------------
>>----
>>
>>
>>>--
>>>To unsubscribe, e-mail: <mailto:[email protected]>
>>>For additional commands, e-mail: <mailto:[email protected]>
>
>In fact no bug fix at all is needed, since it works fine already...
>Until you proof the opposite :)
>
>>>
>>>------------------------------------------------------------------------
>>>
>>>--
>>>To unsubscribe, e-mail: <mailto:[email protected]>
>>>For additional commands, e-mail: <mailto:[email protected]>
>>>
>>>Type.java
>>>
>>>Content-Type:
>>>
>>>application/octet-stream
>>>Content-Encoding:
>>>
>>>quoted-printable
>>>
>>>
>>>------------------------------------------------------------------------
>>>diff
>>>
>>>Content-Type:
>>>
>>>application/octet-stream
>>>Content-Encoding:
>>>
>>>quoted-printable
>>>
>>>
>>>------------------------------------------------------------------------
>>>Part 1.4
>>>
>>>Content-Type:
>>>
>>>text/plain
>>>
>
>
>
>
>--
>To unsubscribe, e-mail: <mailto:[email protected]>
>For additional commands, e-mail: <mailto:[email protected]>