Improving compiler messages for preview API

Jonathan Gibbons jonathan.gibbons at oracle.com
Sat Aug 3 20:57:54 UTC 2019


On 6/21/19 10:38 AM, Joe Darcy wrote:
>
> PS Prototype version of what this sort of message improvement could 
> look like, initially coded with a JDK-internal annotation type as 
> opposed to one in java.lang:
>
> http://cr.openjdk.java.net/~darcy/8226585.0/
>
Joe,

Could you expand more on the expected use of the "feature" string?

   48     /**
   49      * Name of the preview feature the annotated API is associated
   50      * with.
   51      */
   52     String feature() default "";


Could you maybe give some examples of what feature strings might be, and 
how you might expect the string to be used, especially in a non-English 
locale? Would you expect to see any enforcement of the set of permitted 
strings?

-- Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190803/b30bacba/attachment.html>


More information about the compiler-dev mailing list