Skip to content

Do we need Java 11 migration? #5750

Closed
Closed

Description

@sampottinger

Hey friends! Thank you for a beautiful community and tool. Sorry I couldn't quite fit this in the prescribed format but hopefully this helps...

I'm writing because it's January and, unfortunately, Java 8 is slated to stop receiving public updates this month (article, roadmap, Oracle blog post) so we're nearing a kind of EOL for Java 8. I'd love to help with the Java 11 migration if that's a thing we want to do and have started preparing a pull request. However, I wanted to first enumerate the (ahem) exciting growth opportunities presented by moving to JDK 11 to see if this resonates with the other developers here. With that, Oracle have been busy...


Changes to the runtime structure
Moving on from Java 8, there were a number of changes in fundamental runtime structures:


Changes to the licensing
Java 11's official Oracle JDK release changes licensing. As far I can tell, it's a bit complicated but generally seems to require a commercial license to use Java in "production" settings (helpful walkthrough, entertaining walkthrough, Oracle blog). I think Proceessing intended core to be LGPL so that the resulting builds could be used in a permissive way but, if bundling with the Oracle release, this could be complicated. I know this been a topic of discussion before (#4415) but this may require movement to OpenJDK to continue accomplishing permissive licensing goals.


JavaFx
As discussed here before (#5286), JavaFx has had a number of API modifications and is also being removed from non-commercial JDK release starting with JDK 11. OpenFX is a thing now (it still is official OpenJDK) but the bundling will need to change.


Other Misc Changes
There's a few other bits that I think might require some attention:


The Upside
Well... silver linings... There's a lot of cool new features in Java 11 and it is LTS...

Activity

  1. sampottinger commented on Jan 12, 2019

    @sampottinger
    Author

    If it is welcome, happily the JDK and I are good friends so I'm hoping to address this issue with at least a draft PR this weekend to get the ball rolling. That said, I suspect though that this may require some discussion and testing as these changes are going to cut a bit deep if we take them on.

    It is also worth noting that lambda has gotten a bit more traction in the broader java community since its original introduction and, since this may provide a good opportunity to revisit, I love to pick up #3054 after this gets a bit more sorted...

  2. changed the title [-]Java 11[/-] [+]Do we need Java 11 migration?[/+] on Jan 12, 2019
  3. neilcsmith-net commented on Jan 14, 2019

    @neilcsmith-net

    This will require a move to OpenJDK anyway - there are no free Oracle LTS releases. But, it's also true that this only affects the Oracle build - OpenJDK 8 is not being EOL'd. It might be worth migrating to the AdoptOpenJDK 8 build prior to any move to Java 11?

    https://adoptopenjdk.net
    https://adoptopenjdk.net/support.html#roadmap

  4. benfry commented on Jan 14, 2019

    @benfry
    Contributor

    Thanks @sampottinger. The “official” word is this section of the platforms page.

    The short version is that I've not had time to work on it, and most people on here are lecturing me about how important it is, and how it should be done, rather than doing anything about it. Really appreciate you taking a look into fixing some of the issues. It's a huge step, especially for a project this complex.

  5. sampottinger commented on Jan 14, 2019

    @sampottinger
    Author

    Hello @benfry! Really happy to help. For some quick background, I just started a 6 month sabbatical to work on open source / open data (I'm gonna be turning a lot of public PDFs into spreadsheets). So, I've got a few months to try to dig into some things a bit more deeply. If it is ok with you, I really would love to spend some time contributing here and to p5.js.

    Hey @neilcsmith-net! I think that's a very good point and I have been looking into OpenJDK8 as well. I'd normally agree with you on orthogonalizing these changes but I'd like to post a bit more on that today / tomorrow (hopefully with some more concrete experimentation with OpenJDK8 in a PR). To kinda preview that though... We are seeing some bifurcation already in the broader community outside the JDK. That doesn't mean we should jump right to OpenJDK11 but, doing some looking around, I think there are a few points to consider that might counterintuitively make a case for at least considering it.

    Separately, I just posted a OpenJDK11 POC working on Mac and I am trying to sort out Linux. I don't have access to a windows machine presently though... Is anyone out there with Windows super excited to try some JDK plumbing with me?

  6. neilcsmith-net commented on Jan 14, 2019

    @neilcsmith-net

    @sampottinger there is very little, if any, work required to switch over to OpenJDK 8 - possibly just removing the warning in PDE. I have numerous users using Processing core in PraxisLIVE on Mac and Windows with OpenJDK 8 (whether they know it or not 😄). Switching to this for Processing and PDE as a whole might throw up a few minor issues, but they're things that are likely to need fixing in the move to OpenJDK 11 too!

    That would give some leeway then for some modifications to Processing needed for the adventurous amongst us to start testing and reporting issues. I'm not entirely sure what the license redistribution situation is for Oracle Java 8 from the end of this month - it's possible it's no longer allowed.

    My 2c anyway.

  7. sampottinger commented on Jan 15, 2019

    @sampottinger
    Author

    Hey @neilcsmith-net, thanks for the response! I do certainly see the logic. Review below...


    there is very little, if any, work required to switch over to OpenJDK

    I think there might be a curse of a long tail here. Doing some testing on #5753, there's a lot that's working again but the Processing documentation seems to suggest there's some stuff that still needs addressing.


    license redistribution situation is for Oracle Java 8 from the end of this month - it's possible it's no longer allowed.

    A cursory reading of the license doesn't look like there's a sunset but can't be sure. In general, I agree that moving to OpenJDK is generally a (very) good idea.


    I may fork or repurpose #5753 to tackle OpenJDK8 first (and I'll post some more commentary on that shortly). That said, in the meantime, I just tackled some stuff in the build chain (see 79f6353) which is required for either.

    Progress!

  8. benfry commented on Jan 17, 2020

    @benfry
    Contributor

    Closing now that development has moved to https://github.com/processing/processing4

  9. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions