alex-therapeutics / diga-api-client

Production-ready java library for DiGA (Digital Health Application) manufacturers to integrate with DiGA API endpoints for code validation and billing.
https://github.com/alex-therapeutics/diga-api-client
Apache License 2.0
32 stars 13 forks source link

Up Java version to 17 #141

Closed fongie closed 11 months ago

fongie commented 12 months ago

Problem

we should note in the changelog that now Java 17 is required. You dont notice it when validating the DiGA testcode, but for other codes the Base32Check Java 0.1.0 will crash with Java 11

Originally posted by @jakob-p in https://github.com/alex-therapeutics/diga-api-client/issues/115#issuecomment-1786915195

Solution

Describe how you are going to implement it, or "dont know" if you don't know yet.

jakob-p commented 12 months ago

When trying to validate the Code DIGACODE12345678 with Java 11 i get this error:

java.lang.UnsupportedClassVersionError: de/bitmarck/bms/base32/Base32Check1 has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

on Java 17 i get the correct error message

Invalid DiGA code