Skip to content

Commit bc28d6b

Browse files
authored
Add missing Hocon class in GraalVM config (#354)
Fixes #349
1 parent 76a2848 commit bc28d6b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • kotlin-runtime/src/main/kotlin/io/micronaut/context/env/hocon/nativeimage

kotlin-runtime/src/main/kotlin/io/micronaut/context/env/hocon/nativeimage/HoconFeature.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2020 original authors
2+
* Copyright 2017-2022 original authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ class HoconFeature: Feature {
3333

3434
override fun beforeAnalysis(access: BeforeAnalysisAccess) {
3535
access.findClassByName("com.typesafe.config.Config")?.let {
36+
AutomaticFeatureUtils.registerClassForRuntimeReflection(access, "com.typesafe.config.Config")
3637
AutomaticFeatureUtils.registerClassForRuntimeReflectionAndReflectiveInstantiation(access, "io.micronaut.context.env.hocon.HoconPropertySourceLoaderImpl")
3738
}
3839
}

0 commit comments

Comments
 (0)