You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "olivier carrey (Jira)" <ji...@apache.org> on 2020/05/02 13:03:00 UTC
[jira] [Created] (MEECROWAVE-243) Long type not supported in
properties parser
olivier carrey created MEECROWAVE-243:
-----------------------------------------
Summary: Long type not supported in properties parser
Key: MEECROWAVE-243
URL: https://issues.apache.org/jira/browse/MEECROWAVE-243
Project: Meecrowave
Issue Type: Bug
Affects Versions: 1.2.9
Environment: any
Reporter: olivier carrey
Need to setup OAuth2 token lifetime in properties file :
{code:java}
properties.oauth2-access-token-lifetime=5
properties.oauth2-refresh-token-lifetime=5{code}
Using Meecrowave.Builder().loadFromProperties(p) throws exception below :
{code:java}
Caused by: java.lang.IllegalArgumentException: Unsupported type longCaused by: java.lang.IllegalArgumentException: Unsupported type long at org.apache{code}
org.apache.meecrowave.configuration.Configuration snippets :
{code:java}
if (t == String.class) {
f.set(instance, value);
} else if (t == int.class) {
f.set(instance, Integer.parseInt(value));
} else if (t == boolean.class) {
f.set(instance, Boolean.parseBoolean(value));
} else {
throw new IllegalArgumentException("Unsupported type " + t);
}.meecrowave.configuration.Configuration.lambda$bind$5(Configuration.java:1201){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)