Question about JDK-8023087

Joseph Darcy joe.darcy at oracle.com
Fri Oct 4 23:48:10 UTC 2013


Enum constructors (as compiled by javac) have synthetic parameters; 
constructors of nested classes [1] can have either implicit or synthetic 
parameters.

HTH,

-Joe

[1] https://blogs.oracle.com/darcy/entry/nested_inner_member_and_top

On 9/30/2013 8:25 PM, Eric Wang wrote:
> Including the corelibs-dev team, so someone may help me.
>
> Thanks,
> Eric
> On 2013/10/1 10:39, Eric Wang wrote:
>> Hi Alan,
>>
>> I'm looking at the bug 
>> https://bugs.openjdk.java.net/browse/JDK-8023087 which is filed for 
>> CCC changes https://bugs.openjdk.java.net/browse/JDK-8007405.
>>
>> There're 2 simple APIs isImplicit() and isSynthetic() changed in 
>> java.lang.reflect.Parameter, which are not covered by a test.
>>
>> However, based on the API desciptions below, I have no idea how to 
>> test them as I can't find such case, Can you please give some 
>> suggestion or some examples?
>>
>> /**
>>  * Returns true if this parameter is implicitly declared in source 
>> code; returns ode false otherwise.
>>  *
>>  * @return true if and only if this parameter is implicitly declared 
>> as defined by The Java Language Specification.
>>  */
>> public boolean isImplicit() {return 
>> Modifier.isMandated(getModifiers());}
>>
>> /**
>>  * Returns true if this parameter is neither implicitly nor 
>> explicitly declared in source code; returns false otherwise.
>>  *
>>  * @jls 13.1 The Form of a Binary
>>  * @return true if and only if this parameter is a synthetic 
>> construct as defined by The Java Language Specification.
>>  */
>>  public boolean isSynthetic() {return 
>> Modifier.isSynthetic(getModifiers());}
>>
>> Thanks,
>> Eric
>> On 2013/10/1 9:05, Michel Trudeau wrote:
>>> Eric,
>>>
>>> Any update on this bug ?  We really need to close this down as soon 
>>> as possible.
>>>
>>> https://bugs.openjdk.java.net/browse/JDK-8023087
>>>
>>> Thanks,
>>> Michel
>>>
>>> On Sep 19, 2013, at 10:18 AM, Michel Trudeau 
>>> <michel.trudeau at oracle.com> wrote:
>>>
>>> Hopefully the right Eric this time around.
>>>
>>> Michel
>>>
>>> On Sep 19, 2013, at 10:12 AM, eric wang <eric.wang at oracle.com> wrote:
>>>
>>> wrong Eric Wang I assume.
>>>
>>> Eric
>>> On 9/19/2013 8:58 AM, Michel Trudeau wrote:
>>>> Eric,
>>>>
>>>> Any update on this ?  We really need to get those tests in ASAP.
>>>>
>>>> Thanks,
>>>> Michel
>>>>
>>>> On Sep 12, 2013, at 10:40 AM, Michel Trudeau 
>>>> <michel.trudeau at oracle.com> wrote:
>>>>
>>>> Eric,
>>>>
>>>> This bug got assigned to you yesterday.   Not sure if this is 
>>>> really a P4, sounds like a P3 since we need those tests.
>>>>
>>>> Is this a top priority for you ?   I would really like to get this 
>>>> done sooner than later.
>>>>
>>>> https://bugs.openjdk.java.net/browse/JDK-8023087
>>>>
>>>> Thanks,
>>>> Michel
>>>>
>>>>
>>>
>>>
>>
>




More information about the core-libs-dev mailing list