home.social

#java11 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #java11, aggregated by home.social.

  1. Last week I migrated one of my #dataIntegration #software applications. It went from #XML input and #JSON output to JSON input and output, and at the same time from #Oracle #Java8 to #IBM #Java11.

    That move cut away 2/3rds of the #sourceCode.

    The functionality stayed roughly the same. Some validations got omitted. I may wind up adding them back in.

    This is the way forward. It wouldn't have been possible without tooling that produces JSON documents. #OpenText #BizMapper

  2. 👍 TV-Browser 4.2 Final

    📌 Heute veröffentlichen wir TV-Browser 4.2. Die Veröffentlichung hat diesmal etwas länger gedauert, da durch den Wechsel auf Java 11 längere Tests nötig waren, um sicher zu stellen, dass TV-Browser stabil läuft.

    #TVBrowser #TVBrowser42 #TV-Browser #Java11 #TV #Programm #Fernsehprogramm

    tvbrowser.org/index.php?id=new

  3. See, in #java all data types that aren't primitives inherit from the Object class. And that means that any process could generate an Object #array as its return value. It would be a single compound value, the elements of which can be accessed by index.

    Up until #java11 however, if we were to access those elements, we were responsible for telling the compiler what #dataType we expected, and we would have to perform a type cast.

    And the compiler couldn't check for type safety.

  4. #TodayILearned that the new #Java11 #java.net.http #HttpClient and #HttpRequest are not equipped to handle multipart/form-data out of the box. One has to generate and add their own form boundaries.

    This is a problem for those of us who never needed to know the #HTTP/1.1 and #Multipart RFCs by heart, and had hoped that the tools built into the programming language's ecosystem would handle common use cases.

    Which HTTP component do you use for multipart/form-data?