package org.optaplanner.quarkus.runtime.graal;

import org.graalvm.nativeimage.ImageSingletons;
import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.impl.RuntimeClassInitializationSupport;

import com.oracle.svm.core.annotate.AutomaticFeature;

@AutomaticFeature
public class OptaPlannerFeature implements Feature {
    @Override
    public void afterRegistration(AfterRegistrationAccess access) {
        final RuntimeClassInitializationSupport runtimeInit = ImageSingletons.lookup(RuntimeClassInitializationSupport.class);
        final String reason = "Quarkus run time init for OptaPlanner";
        runtimeInit.initializeAtRunTime("org.drools.compiler.kproject.models.KieModuleMarshaller", reason);
    }
}

@@ -614,16 +614,104 @@
 anner%22;%0A
+        // TODO: Remove after https://issues.redhat.com/browse/DROOLS-6643 is resolved.%0A
         

Add link to a Drools issue (#1598)