Improving compiler messages for preview API

Jonathan Gibbons jonathan.gibbons at
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:

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 

-- Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list