Skip to content

Commit

Permalink
Allow static analysis to see into ObjectStreamClass
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed Jun 2, 2022
1 parent fc95742 commit b8b6fb9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
import com.oracle.svm.reflect.hosted.ReflectionFeature;
import com.oracle.svm.reflect.serialize.SerializationRegistry;
import com.oracle.svm.reflect.serialize.SerializationSupport;
import com.oracle.svm.util.ModuleSupport;
import com.oracle.svm.util.ReflectionUtil;

import jdk.internal.reflect.ReflectionFactory;
Expand Down Expand Up @@ -125,6 +126,8 @@ public void duringSetup(DuringSetupAccess a) {
loadedConfigurations = ConfigurationParserUtils.parseAndRegisterConfigurations(parser, imageClassLoader, "serialization",
ConfigurationFiles.Options.SerializationConfigurationFiles, ConfigurationFiles.Options.SerializationConfigurationResources,
ConfigurationFile.SERIALIZATION.getFileName());

ModuleSupport.accessModuleByClass(ModuleSupport.Access.OPEN, SerializationFeature.class, ObjectStreamClass.class);
}

private static GraphBuilderConfiguration buildLambdaParserConfig() {
Expand Down

0 comments on commit b8b6fb9

Please sign in to comment.