File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/metadata Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -146,14 +146,24 @@ private ConfigurationSet getConfigurationSetForTracing() {
146
146
* (e.g., during shutdown).
147
147
*/
148
148
public ConfigurationType traceReflectionType (String typeName ) {
149
+ if (isInternal (typeName )) {
150
+ return null ;
151
+ }
149
152
return traceReflectionTypeImpl (new NamedConfigurationTypeDescriptor (typeName ));
150
153
}
151
154
152
155
/**
153
156
* Marks the given proxy type as reachable from reflection.
154
157
*/
155
158
public void traceProxyType (List <String > interfaceNames ) {
156
- traceReflectionTypeImpl (new ProxyConfigurationTypeDescriptor (interfaceNames ));
159
+ ProxyConfigurationTypeDescriptor descriptor = new ProxyConfigurationTypeDescriptor (interfaceNames );
160
+ for (String interfaceName : interfaceNames ) {
161
+ if (isInternal (interfaceName )) {
162
+ debug ("proxy type not registered for reflection (uses an internal interface)" , descriptor );
163
+ return ;
164
+ }
165
+ }
166
+ traceReflectionTypeImpl (descriptor );
157
167
}
158
168
159
169
private ConfigurationType traceReflectionTypeImpl (ConfigurationTypeDescriptor typeDescriptor ) {
@@ -165,6 +175,10 @@ private ConfigurationType traceReflectionTypeImpl(ConfigurationTypeDescriptor ty
165
175
return null ;
166
176
}
167
177
178
+ private static boolean isInternal (String typeName ) {
179
+ return typeName .startsWith ("com.oracle.svm.core" );
180
+ }
181
+
168
182
/**
169
183
* Marks the given type as reachable from JNI.
170
184
*
You can’t perform that action at this time.
0 commit comments