• Sigmatics@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 year ago

    I very much doubt that you can run old code unchanged on newer Java versions. Especially not without dependency updates

    This problem is not exclusive to Python

    • brianorca@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      Java has had some breaking changes, especially the move to Jakarta namespace for certain dependencies, (thanks Oracle trademark enforcement) but I have had other code taken from 9 to 19 with no changes at all. I have some dependencies that I haven’t recompiled since 6 which still work in 19.

      Now dependency dependencies, yeah that can get tricky to get them all the right version.