Builds fail due to use of preview features & removed arguments
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Dec 20 00:14:35 UTC 2019
On 19/12/2019 23:49, Jonathan Gibbons wrote:
>
>
> On 12/19/19 3:30 PM, David Holmes wrote:
>>>
>>> /home/ty/Downloads/jdk-master/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor14.java:30:
>>> warning: [preview] RecordComponentElement is an API that is part of
>>> a preview feature
>>> import javax.lang.model.element.RecordComponentElement;
>>> ^
>>> /home/ty/Downloads/jdk-master/src/java.compiler/share/classes/javax/lang/model/util/SimpleElementVisitor14.java:30:
>>> warning: [preview] RecordComponentElement is an API that is part of
>>> a preview feature
>>> import javax.lang.model.element.RecordComponentElement;
>>> ^
>>> error: warnings found and -Werror specified
>>
>> I think this is more an issue for the language and compiler folk on
>> compiler-dev. I'm not clear on all the rules around use of preview
>> features but it seems to me that if we are using them internally and
>> that generates warnings then we should be suppressing those warnings
>> (@supressedWarning) at those call sites. Though I don't know whether
>> you can suppress a warning for an import statement??
>>
>> David
>> -----
>
> This sounds like a bug. In other analogous situations, we decided
> not to give warnings on imports.
>
This was an issue that was fixed few weeks ago by Chris and Jan
http://hg.openjdk.java.net/jdk/jdk/rev/8e76f81d057a?revcount=20#l110.18
I believe something else is at play here (like a repository not fully up
to date).
Maurizio
> -- Jon
>
More information about the build-dev
mailing list