ServiceRegistry uses class restricted by Google App Engine

Description

ServiceRegistry uses the javax.imageio.spi.ServiceRegistry class. However, this class is restricted in the Google App Engine, which prohibits calls like repoConn.prepareTupleQuery(QueryLanguage.SPARQL, sparqlString); in code deployed there. The following note is already in the file: // Note: Using javax.imageio.spi.ServiceRegistry as it publicly exposes // the sun.misc.Service functionality. Starting from Java 6, this // functionality is also available java.util.ServiceLoader Iterator<S> services = javax.imageio.spi.ServiceRegistry.lookupProviders(serviceClass, serviceClass.getClassLoader()); Proposal: Changing this code to the non-restricted java.util.ServiceLoader in future releases as mentioned in the comment.

Environment

aduna-commons-lang-2.9.0.jar

Status

Assignee

Jeen Broekstra

Reporter

Hannes Muehleisen

Labels

None

Components

Fix versions

Priority

Major
Configure