flipt-io/flipt-client-sdks

[FLI-963] java: only try to load engine for supported hosts

markphelps opened this issue · 1 comments

CLibrary INSTANCE = (CLibrary) Native.load("fliptengine", CLibrary.class);

In our other client side SDKs we check the OS/Arch before loading the engine.

A user has gotten the following error when trying to use the Java client SDK on an Intel Mac:

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed: java.lang.UnsatisfiedLinkError: Unable to load library 'fliptengine':

Acceptance Critera:

  • Java Client should error if trying to load on unsupported platform (like we do in Python and others)

FLI-963