Skip to content

Fix Java 11 incompatibilities inside PSurfaceFX #5286

Closed

Description

@benfry

Several methods that we're using are no longer available in JavaFX:

  • Screen class: getRenderScale(), getUIScale()
  • KeyCode class: impl_getChar() and impl_getCode()

Activity

  1. added
    help wanted
    on Oct 18, 2017
  2. JakubValtar commented on Oct 19, 2017

    @JakubValtar
    Contributor

    @benfry Do you known if there is a way to use the current one on jre 8 and a different code when running on jre 9? I don't think there is a solution which would work on both.

  3. benfry commented on Oct 19, 2017

    @benfry
    ContributorAuthor

    Hm, good question. Not that I know of. We could use reflection (harkening back to the bad old days of Processing 1.x where we had to do this heavily b/c of Java version issues like this), but I think it'd be a matter of making the move to Java 9 and not looking back.

    For now, that means it probably has to be done in a branch. It's not a high priority, it's more the inevitability of having to move to Java 9. The macOS side is a mess because they've deprecated/removed all the OS integration stuff that made things work properly but only half-replaced it.

  4. JakubValtar commented on Oct 19, 2017

    @JakubValtar
    Contributor

    *shakes fist at sky*

  5. neilcsmith-net commented on Nov 8, 2017

    @neilcsmith-net

    Be aware that under Oracle's new 6-monthly Java release plan, Java 8 is an LTS, but Java 9 is not! So the move to Java 9 might not be inevitable - sticking to Java LTS releases might be a good thing for Processing?

  6. neilcsmith-net commented on Feb 22, 2018

    @neilcsmith-net

    @JakubValtar btw, in answer to your question earlier, multi-release JARs in 9 are theoretically the way to handle that http://openjdk.java.net/jeps/238

  7. benfry commented on Feb 22, 2018

    @benfry
    ContributorAuthor

    No plans to upgrade to a non-LTS version, so I think we'll be skipping 9. Their roadmap is a clown show. https://github.com/processing/processing/wiki/Supported-Platforms#java-9

  8. neilcsmith-net commented on Feb 22, 2018

    @neilcsmith-net

    @benfry good to know you're sticking with LTS as mentioned earlier - that's one rabbit hole I don't want to follow you down - we're having enough fun getting a stable Apache NetBeans on 9!

    Still, when you do decide to go to 11 (with suitable Spinal Tap codename obviously! 😄) the multi-release JAR's might be handy unless you plan to do everything in one go.

    Personally, I and every other Java dev I've spoken with about it think the new roadmap is a massive plus!

  9. benfry commented on Mar 26, 2018

    @benfry
    ContributorAuthor

    Renaming since we're skipping Java 9.

  10. changed the title [-]Fix Java 9 incompatibilities inside PSurfaceFX[/-] [+]Fix Java 10 incompatibilities inside PSurfaceFX[/+] on Mar 26, 2018
  11. kaofishy commented on Apr 7, 2018

    @kaofishy

    Just FYI JavaFX is slated to be removed from the main distribution starting from Java 11 (the next LTS release) and will be available separately. Tbh I have no idea what Oracle is doing here. https://blogs.oracle.com/java-platform-group/the-future-of-javafx-and-other-java-client-roadmap-updates

  12. changed the title [-]Fix Java 10 incompatibilities inside PSurfaceFX[/-] [+]Fix Java 11 incompatibilities inside PSurfaceFX[/+] on Jan 14, 2019
  13. benfry commented on Jan 14, 2019

    @benfry
    ContributorAuthor

    Updating title since Java 10 is already gone… 

  14. benfry commented on Jan 17, 2020

    @benfry
    ContributorAuthor

    Fixed with processing/processing4#1 and continued development happening at https://github.com/processing/processing4

  15. locked as resolved and limited conversation to collaborators on Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions