Skip to content

Commit ac4e5ae

Browse files
authored
Fix MissingResourceRegistration for native-image (palantir#1216)
Fix MissingResourceRegistration for native-image
1 parent 8ac6005 commit ac4e5ae

8 files changed

Lines changed: 195 additions & 104 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type: fix
2+
fix:
3+
description: Fix MissingResourceRegistration for native-image
4+
links:
5+
- https://github.com/palantir/palantir-java-format/pull/1216

‎palantir-java-format-native/src/main/resources/META-INF/native-image/jni-config.json‎

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

‎palantir-java-format-native/src/main/resources/META-INF/native-image/predefined-classes-config.json‎

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

‎palantir-java-format-native/src/main/resources/META-INF/native-image/proxy-config.json‎

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
{
2+
"reflection": [
3+
{
4+
"type": "[Lcom.fasterxml.jackson.databind.deser.Deserializers;"
5+
},
6+
{
7+
"type": "[Lcom.fasterxml.jackson.databind.ser.BeanSerializerModifier;"
8+
},
9+
{
10+
"type": "[Lcom.fasterxml.jackson.databind.ser.Serializers;"
11+
},
12+
{
13+
"type": "[Ljava.lang.Object;"
14+
},
15+
{
16+
"type": "com.fasterxml.jackson.databind.ext.Java7SupportImpl",
17+
"methods": [
18+
{
19+
"name": "<init>",
20+
"parameterTypes": []
21+
}
22+
]
23+
},
24+
{
25+
"type": "com.fasterxml.jackson.datatype.guava.deser.util.RangeHelper$RangeProperties",
26+
"fields": [
27+
{
28+
"name": "lowerBoundType"
29+
},
30+
{
31+
"name": "lowerEndpoint"
32+
},
33+
{
34+
"name": "upperBoundType"
35+
},
36+
{
37+
"name": "upperEndpoint"
38+
}
39+
]
40+
},
41+
{
42+
"type": "com.google.common.collect.ImmutableCollection",
43+
"allDeclaredFields": true
44+
},
45+
{
46+
"type": "com.google.common.collect.ImmutableList",
47+
"allDeclaredFields": true
48+
},
49+
{
50+
"type": "com.google.common.collect.SingletonImmutableList",
51+
"allDeclaredFields": true
52+
},
53+
{
54+
"type": "com.google.common.collect.RegularImmutableList",
55+
"allDeclaredFields": true
56+
},
57+
{
58+
"type": "com.palantir.javaformat.java.JavacTokens$CommentSavingTokenizer"
59+
},
60+
{
61+
"type": "com.palantir.javaformat.java.Replacement",
62+
"allDeclaredFields": true,
63+
"methods": [
64+
{
65+
"name": "getReplaceRange",
66+
"parameterTypes": []
67+
},
68+
{
69+
"name": "getReplacementString",
70+
"parameterTypes": []
71+
}
72+
]
73+
},
74+
{
75+
"type": "com.palantir.javaformat.java.java14.Java14InputAstVisitor",
76+
"methods": [
77+
{
78+
"name": "<init>",
79+
"parameterTypes": [
80+
"com.palantir.javaformat.OpsBuilder",
81+
"int"
82+
]
83+
}
84+
]
85+
},
86+
{
87+
"type": "com.sun.source.tree.BindingPatternTree"
88+
},
89+
{
90+
"type": "com.sun.source.tree.CaseTree"
91+
},
92+
{
93+
"type": "com.sun.source.tree.ClassTree",
94+
"methods": [
95+
{
96+
"name": "getPermitsClause",
97+
"parameterTypes": []
98+
}
99+
]
100+
},
101+
{
102+
"type": "com.sun.source.tree.CompilationUnitTree",
103+
"methods": [
104+
{
105+
"name": "getModule",
106+
"parameterTypes": []
107+
}
108+
]
109+
},
110+
{
111+
"type": "com.sun.tools.javac.parser.JavaTokenizer",
112+
"fields": [
113+
{
114+
"name": "reader"
115+
}
116+
]
117+
},
118+
{
119+
"type": "com.sun.tools.javac.parser.UnicodeReader",
120+
"methods": [
121+
{
122+
"name": "getRawCharacters",
123+
"parameterTypes": [
124+
"int",
125+
"int"
126+
]
127+
}
128+
]
129+
},
130+
{
131+
"type": "java.io.Serializable"
132+
},
133+
{
134+
"type": "java.lang.Iterable"
135+
},
136+
{
137+
"type": "java.util.AbstractCollection",
138+
"allDeclaredFields": true
139+
},
140+
{
141+
"type": "java.util.Collection"
142+
},
143+
{
144+
"type": "java.util.List"
145+
},
146+
{
147+
"type": "java.util.RandomAccess"
148+
}
149+
],
150+
"resources": [
151+
{
152+
"glob": "META-INF/services/java.lang.System$LoggerFinder"
153+
},
154+
{
155+
"glob": "com/sun/tools/javac/resources/compiler_en.properties"
156+
},
157+
{
158+
"glob": "com/sun/tools/javac/resources/compiler_en_US.properties"
159+
},
160+
{
161+
"module": "jdk.compiler",
162+
"glob": "com/sun/tools/javac/resources/compiler_en.properties"
163+
},
164+
{
165+
"module": "jdk.compiler",
166+
"glob": "com/sun/tools/javac/resources/compiler_en_US.properties"
167+
}
168+
],
169+
"bundles": [
170+
{
171+
"name": "com.sun.tools.javac.resources.compiler",
172+
"locales": [
173+
"en-US"
174+
]
175+
}
176+
],
177+
"jni": [
178+
{
179+
"type": "java.lang.Boolean",
180+
"methods": [
181+
{
182+
"name": "getBoolean",
183+
"parameterTypes": [
184+
"java.lang.String"
185+
]
186+
}
187+
]
188+
}
189+
]
190+
}

‎palantir-java-format-native/src/main/resources/META-INF/native-image/reflect-config.json‎

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

‎palantir-java-format-native/src/main/resources/META-INF/native-image/resource-config.json‎

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

‎palantir-java-format-native/src/main/resources/META-INF/native-image/serialization-config.json‎

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

0 commit comments

Comments
 (0)