Fix reflection errors

This commit is contained in:
Andrea Cavalli 2024-03-30 00:34:12 +01:00
parent ab49e51a5c
commit f006863813
2 changed files with 15 additions and 8 deletions

View File

@ -2,43 +2,50 @@
{
"name" : "java.lang.String",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "valueOf", "parameterTypes" : ["java.lang.String"] }
]
},
{
"name" : "java.lang.Boolean",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "valueOf", "parameterTypes" : ["java.lang.String"] }
]
},
{
"name" : "java.lang.Integer",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "valueOf", "parameterTypes" : ["java.lang.String"] }
]
},
{
"name" : "java.lang.Long",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "valueOf", "parameterTypes" : ["java.lang.String"] }
]
},
{
"name" : "java.lang.Double",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "valueOf", "parameterTypes" : ["java.lang.String"] }
]
},
{
"name" : "java.lang.Float",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "valueOf", "parameterTypes" : ["java.lang.String"] }
]
},
{
"name" : "java.nio.file.Path",
"methods" : [
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] }
{ "name" : "<init>", "parameterTypes" : ["java.lang.String"] },
{ "name" : "of", "parameterTypes" : ["java.lang.String"] }
]
}
]

View File

@ -39,7 +39,7 @@ public class Main {
.setDefault("main")
.help("Specify database name");
parser.addArgument("-c", "--config")
.type(Path.class)
.type(String.class)
.help("Specify the rockserver-core.conf file path. Do not set if the database is not local");
parser.addArgument("-p", "--print-default-config")
.type(Boolean.class)