Re: RFR: 8349373: Support JavaFX preview features [v6]

2025-03-17 Thread Andy Goryachev
On Sat, 15 Mar 2025 03:41:29 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v6]

2025-03-15 Thread Kevin Rushforth
On Sat, 15 Mar 2025 03:41:29 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v6]

2025-03-14 Thread Michael Strauß
> This PR contains a definition of preview features for JavaFX, as well as a > helper class to verify that an application has opted into preview features. Michael Strauß has updated the pull request incrementally with one additional commit since the last revision: banner -> warning -

Re: RFR: 8349373: Support JavaFX preview features [v5]

2025-03-14 Thread Kevin Rushforth
On Fri, 14 Mar 2025 16:21:22 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v5]

2025-03-14 Thread Andy Goryachev
On Fri, 14 Mar 2025 16:21:22 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v5]

2025-03-14 Thread Michael Strauß
> This PR contains a definition of preview features for JavaFX, as well as a > helper class to verify that an application has opted into preview features. Michael Strauß has updated the pull request incrementally with one additional commit since the last revision: rename system property

Re: RFR: 8349373: Support JavaFX preview features [v4]

2025-03-14 Thread Kevin Rushforth
On Thu, 13 Mar 2025 03:29:28 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v4]

2025-03-13 Thread Kevin Rushforth
On Thu, 13 Mar 2025 03:29:28 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v4]

2025-03-13 Thread Andy Goryachev
On Thu, 13 Mar 2025 03:29:28 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v4]

2025-03-13 Thread Kevin Rushforth
On Thu, 13 Mar 2025 03:29:28 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-03-12 Thread Michael Strauß
On Wed, 12 Mar 2025 14:24:08 GMT, Andy Goryachev wrote: > > Should we specify that the `@Deprecated` annotation on preview features be > > marked as `forRemoval=true` > > wouldn't this send a wrong message? could we invent a new annotation > `@Preview` ? We could, but then we'd lose the integ

Re: RFR: 8349373: Support JavaFX preview features [v4]

2025-03-12 Thread Michael Strauß
> This PR contains a definition of preview features for JavaFX, as well as a > helper class to verify that an application has opted into preview features. Michael Strauß has updated the pull request incrementally with one additional commit since the last revision: warning can be suppressed -

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-03-12 Thread Andy Goryachev
On Wed, 12 Mar 2025 13:31:11 GMT, Kevin Rushforth wrote: > Should we specify that the `@Deprecated` annotation on preview features be > marked as `forRemoval=true` wouldn't this send a wrong message? could we invent a new annotation `@Preview` ? - PR Comment: https://git.openjdk.o

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-03-12 Thread Kevin Rushforth
On Wed, 12 Mar 2025 14:24:08 GMT, Andy Goryachev wrote: > > Should we specify that the `@Deprecated` annotation on preview features be > > marked as `forRemoval=true` > > wouldn't this send a wrong message? Yes, that's the main counter-argument. Unlike incubator modules, which necessarily nee

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-03-12 Thread Kevin Rushforth
On Fri, 7 Feb 2025 09:16:54 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with four > additiona

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-02-14 Thread Andy Goryachev
On Fri, 7 Feb 2025 09:16:54 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with four > additiona

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-13 Thread Kevin Rushforth
On Thu, 13 Feb 2025 21:53:25 GMT, Michael Strauß wrote: >> Yeah, that's what I came to realize as well. So our property should remain >> boolean. >> >> The only other thing I could think of is for us to provide a new utility >> method (in some class in javafx.base) that an application must cal

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-13 Thread Michael Strauß
On Thu, 13 Feb 2025 18:41:21 GMT, Kevin Rushforth wrote: >> This is only done at compilation time, not at runtime. JEP 12 elaborates on >> this: >> >>> --enable-preview itself does not take a version number because it would be >>> easy to misinterpret. For example, on JDK 18, the (hypothetical

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-13 Thread Kevin Rushforth
On Fri, 7 Feb 2025 15:07:26 GMT, Michael Strauß wrote: >> modules/javafx.base/src/main/java/com/sun/javafx/PreviewFeature.java line 52: >> >>> 50: private static final String SUPPRESS_WARNING_PROPERTY = >>> "javafx.suppressPreviewBanner"; >>> 51: >>> 52: private static final boolean en

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-02-13 Thread Kevin Rushforth
On Fri, 7 Feb 2025 09:16:54 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with four > additiona

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-07 Thread Michael Strauß
On Tue, 4 Feb 2025 19:47:34 GMT, Kevin Rushforth wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> move enum field to top > > modules/javafx.base/src/main/java/com/sun/javafx/PreviewFeature.java line 52: > >> 50:

Re: RFR: 8349373: Support JavaFX preview features [v3]

2025-02-07 Thread Michael Strauß
> This PR contains a definition of preview features for JavaFX, as well as a > helper class to verify that an application has opted into preview features. Michael Strauß has updated the pull request incrementally with four additional commits since the last revision: - javadoc - remove support

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Kevin Rushforth
On Tue, 4 Feb 2025 19:39:07 GMT, Michael Strauß wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > Michael Strauß has updated the pull request incrementally with one additional >

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Kevin Rushforth
On Tue, 4 Feb 2025 19:47:08 GMT, Kevin Rushforth wrote: >> We could also do that, but the problem is that the contents of JEP 12 only >> map to JavaFX in some parts, but not in others. So we would need to include >> weasel language like "where applicable" (which always leaves a bit of room >>

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Kevin Rushforth
On Tue, 4 Feb 2025 19:25:40 GMT, Michael Strauß wrote: >> PREVIEW-FEATURES.md line 1: >> >>> 1: # Preview features >> >> is this a good location of this document? >> should it be in /doc-files somewhere? > > I think it's not a documentation of JavaFX itself, but more like a > meta-documentatio

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Kevin Rushforth
On Tue, 4 Feb 2025 19:20:47 GMT, Michael Strauß wrote: >> The space of people who know what a JDK preview is is larger than that of >> JFX people. I think we might want to point to JEP12 and explicitly explain >> the difference, that's all. > > We could also do that, but the problem is that th

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Andy Goryachev
On Tue, 4 Feb 2025 19:34:29 GMT, Michael Strauß wrote: >> modules/javafx.base/src/main/java/com/sun/javafx/PreviewFeature.java line 37: >> >>> 35: * has opted into preview features. >>> 36: */ >>> 37: public enum PreviewFeature { >> >> Why enum? >> Maybe use a regular class with a public cons

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Michael Strauß
On Tue, 4 Feb 2025 18:18:31 GMT, Andy Goryachev wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> move enum field to top > > modules/javafx.base/src/main/java/com/sun/javafx/PreviewFeature.java line 37: > >> 35:

Re: RFR: 8349373: Support JavaFX preview features [v2]

2025-02-04 Thread Michael Strauß
> This PR contains a definition of preview features for JavaFX, as well as a > helper class to verify that an application has opted into preview features. Michael Strauß has updated the pull request incrementally with one additional commit since the last revision: move enum field to top

Re: RFR: 8349373: Support JavaFX preview features

2025-02-04 Thread Michael Strauß
On Tue, 4 Feb 2025 18:44:57 GMT, Andy Goryachev wrote: >> This definition is, as you point out, largely lifted from JEP 12. Aside from >> wording changes, here are some key differences: >> >> * JEP 12 assumes that a feature should be finished within two releases. I >> think for JavaFX, being j

Re: RFR: 8349373: Support JavaFX preview features

2025-02-04 Thread Michael Strauß
On Tue, 4 Feb 2025 18:13:19 GMT, Andy Goryachev wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > PREVIEW-FEATURES.md line 1: > >> 1: # Preview features > > is this a good loca

Re: RFR: 8349373: Support JavaFX preview features

2025-02-04 Thread Andy Goryachev
On Tue, 4 Feb 2025 18:41:13 GMT, Michael Strauß wrote: >> PREVIEW-FEATURES.md line 32: >> >>> 30:application has not opted into the use of preview features. All >>> preview features have equal status >>> 31:in any given JavaFX release and can not be enabled individually. >>> 32: >> >>

Re: RFR: 8349373: Support JavaFX preview features

2025-02-04 Thread Michael Strauß
On Tue, 4 Feb 2025 18:16:22 GMT, Andy Goryachev wrote: >> This PR contains a definition of preview features for JavaFX, as well as a >> helper class to verify that an application has opted into preview features. > > PREVIEW-FEATURES.md line 32: > >> 30:application has not opted into the use

Re: RFR: 8349373: Support JavaFX preview features

2025-02-04 Thread Andy Goryachev
On Wed, 7 Feb 2024 20:05:01 GMT, Michael Strauß wrote: > This PR contains a definition of preview features for JavaFX, as well as a > helper class to verify that an application has opted into preview features. PREVIEW-FEATURES.md line 1: > 1: # Preview features is this a good location of this

RFR: 8349373: Support JavaFX preview features

2025-02-04 Thread Michael Strauß
This PR contains a definition of preview features for JavaFX, as well as a helper class to verify that an application has opted into preview features. - Commit messages: - Use enum constants instead of feature names - Merge branch 'master' into feature/previewfeature - Preview fea