Skip to content

Commit 6bdd7cd

Browse files
Add reachability-metadata.json to fix reflection errors during native runtime
1 parent 9b97973 commit 6bdd7cd

File tree

2 files changed

+106
-6
lines changed

2 files changed

+106
-6
lines changed
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"reflection": [
3+
{
4+
"type": "com.google.googlejavaformat.java.JavacTokens$CommentSavingTokenizer"
5+
},
6+
{
7+
"type": "com.sun.source.tree.CaseTree"
8+
},
9+
{
10+
"type": "com.sun.source.tree.ImportTree",
11+
"methods": [
12+
{
13+
"name": "isModule",
14+
"parameterTypes": []
15+
}
16+
]
17+
},
18+
{
19+
"type": "com.sun.tools.javac.parser.JavaTokenizer"
20+
},
21+
{
22+
"type": "com.sun.tools.javac.parser.ParserFactory",
23+
"methods": [
24+
{
25+
"name": "newParser",
26+
"parameterTypes": [
27+
"java.lang.CharSequence",
28+
"boolean",
29+
"boolean",
30+
"boolean"
31+
]
32+
}
33+
]
34+
},
35+
{
36+
"type": "com.sun.tools.javac.parser.UnicodeReader",
37+
"methods": [
38+
{
39+
"name": "getRawCharacters",
40+
"parameterTypes": [
41+
"int",
42+
"int"
43+
]
44+
}
45+
]
46+
},
47+
{
48+
"type": "com.sun.tools.javac.tree.EndPosTable"
49+
},
50+
{
51+
"type": "com.sun.tools.javac.tree.JCTree",
52+
"methods": [
53+
{
54+
"name": "getEndPosition",
55+
"parameterTypes": [
56+
"com.sun.tools.javac.tree.EndPosTable"
57+
]
58+
}
59+
]
60+
},
61+
{
62+
"type": "com.sun.tools.javac.tree.JCTree$JCCompilationUnit",
63+
"fields": [
64+
{
65+
"name": "endPositions"
66+
}
67+
]
68+
},
69+
{
70+
"type": "com.sun.tools.javac.tree.JCTree$JCImport",
71+
"methods": [
72+
{
73+
"name": "getQualifiedIdentifier",
74+
"parameterTypes": []
75+
}
76+
]
77+
},
78+
{
79+
"type": "com.sun.tools.javac.util.Log$DeferredDiagnosticHandler",
80+
"methods": [
81+
{
82+
"name": "<init>",
83+
"parameterTypes": [
84+
"com.sun.tools.javac.util.Log"
85+
]
86+
},
87+
{
88+
"name": "getDiagnostics",
89+
"parameterTypes": []
90+
}
91+
]
92+
},
93+
{
94+
"type": "java.lang.Boolean",
95+
"jniAccessible": true,
96+
"methods": [
97+
{
98+
"name": "getBoolean",
99+
"parameterTypes": [
100+
"java.lang.String"
101+
]
102+
}
103+
]
104+
}
105+
]
106+
}

core/src/main/resources/META-INF/native-image/reflect-config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)