On Tue, 1 Nov 2022 00:09:21 GMT, David Schlosnagle <d...@openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Add @SafeVarargs declarations
>
> src/java.base/share/classes/java/lang/runtime/TemplateSupport.java line 201:
> 
>> 199:     @SuppressWarnings("unchecked")
>> 200:     public static <E> List<E> toList(E... elements) {
>> 201:         return JUCA.listFromTrustedArrayNullsAllowed(elements);
> 
> Is this public method leaking access to the JUCA shared secrets method here?

It is also a duplicate of a private method in TemplateRuntime

-------------

PR: https://git.openjdk.org/jdk/pull/10889

Reply via email to