RFR 8054213: Class name repeated in output of Type.toString()
joe darcy
joe.darcy at oracle.com
Tue Jun 28 19:02:05 UTC 2016
Hello Svetlana,
I'm not convinced '$' should be replaced with '.' in this context as '.'
is what the separator used in source code.
In any case, the test should be restructured. I recommend declaring an
annotation type to hold the expected to string output. You can them loop
over the methods from the class object and for the methods with the
annotation verifying the toString output is as expected. For a guide see
test/java/lang/reflect/Constructor/GenericStringTest.java
Thanks,
-Joe
On 6/28/2016 11:25 AM, Svetlana Nikandrova wrote:
> May be someone can find a minute?
>
> On 27.06.2016 21:25, Svetlana Nikandrova wrote:
>> Kindly reminder
>>
>> On 24.06.2016 14:58, Svetlana Nikandrova wrote:
>>> Hello,
>>>
>>> let me try again with updated version of webrev:
>>> Webrev:
>>> http://cr.openjdk.java.net/~snikandrova/8054213/webrev.01/
>>> <http://cr.openjdk.java.net/%7Esnikandrova/8054213/webrev.01/>
>>> Issue:
>>> https://bugs.openjdk.java.net/browse/JDK-8054213
>>>
>>> Many thanks goes to Sergey Ustimenko for his valuable advises. I
>>> believe fix looks nicer now.
>>> JPRT tested.
>>>
>>> Thank you,
>>> Svetlana
>>>
>>> On 17.06.2016 21:45, Svetlana Nikandrova wrote:
>>>> Hello,
>>>>
>>>> could you please review this fix for toString() method of
>>>> ParameterizedTypeImpl.
>>>> The problem is that when we obtain simple name of nested type
>>>> shared prefix is only removed for ParameterizedType owner. We need
>>>> to remove it for other cases too.
>>>>
>>>> Please note that I also changed delimiter between outer and inner
>>>> class from "." to "$". I believe as "$" is usually used to separate
>>>> nested class name "." looks inconsistent and confusing.
>>>> Let me know if you have any objections.
>>>>
>>>> Webrev:
>>>> http://cr.openjdk.java.net/~msolovie/8054213/webrev.00/
>>>> <http://cr.openjdk.java.net/%7Emsolovie/8054213/webrev.00/>
>>>> Issue:
>>>> https://bugs.openjdk.java.net/browse/JDK-8054213
>>>>
>>>> Thank you,
>>>> Svetlana
>>>
>>
>
More information about the core-libs-dev
mailing list