Skip to content

Commit

Permalink
Merge pull request quarkusio#43698 from zakkak/2024-10-04-drop-obsole…
Browse files Browse the repository at this point in the history
…te-checks

Drop support for unsupported JDK versions
  • Loading branch information
gsmet authored Oct 5, 2024
2 parents 979219f + e13d5bf commit 98d0f77
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void write(String s, byte[] bytes) {
}, GRAAL_FEATURE, null,
Object.class.getName(), Feature.class.getName());

// Add getDescription (from GraalVM 22.2.0+)
// Add getDescription method
MethodCreator getDescription = file.getMethodCreator("getDescription", String.class);
getDescription.returnValue(getDescription.load("Auto-generated class by Quarkus from the existing extensions"));

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.oracle.svm.core.annotate.RecomputeFieldValue;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(className = "sun.security.jca.JCAUtil", onlyWith = JDK17OrLater.class)
@TargetClass(className = "sun.security.jca.JCAUtil")
public final class Target_sun_security_jca_JCAUtil {

@Alias
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

import io.quarkus.runtime.graal.JDK17OrLater;

@TargetClass(className = "org.apache.avro.generic.GenericDatumReader")
final class Target_org_apache_avro_generic_GenericDatumReader {

Expand Down Expand Up @@ -68,7 +66,7 @@ public Target_org_apache_avro_generic_GenericDatumReader_ReaderCache(

}

@TargetClass(className = "org.apache.avro.reflect.ReflectionUtil", onlyWith = JDK17OrLater.class)
@TargetClass(className = "org.apache.avro.reflect.ReflectionUtil")
final class Target_org_apache_avro_reflect_ReflectionUtil {

@Substitute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import io.quarkus.deployment.builditem.nativeimage.JniRuntimeAccessFieldBuildItem;
import io.quarkus.deployment.builditem.nativeimage.JniRuntimeAccessMethodBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourcePatternsBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeMinimalJavaVersionBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem;
import io.quarkus.deployment.builditem.nativeimage.UnsupportedOSBuildItem;
Expand Down Expand Up @@ -52,13 +51,6 @@ UnsupportedOSBuildItem osSupportCheck() {
"java.lang.UnsatisfiedLinkError: no awt in java.library.path.");
}

@BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)
NativeMinimalJavaVersionBuildItem nativeMinimalJavaVersionBuildItem() {
return new NativeMinimalJavaVersionBuildItem("11.0.13",
"AWT: Some MLib related operations, such as filter in awt.image.ConvolveOp will not work. " +
"See https://bugs.openjdk.java.net/browse/JDK-8254024");
}

@BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)
void resources(
BuildProducer<NativeImageResourcePatternsBuildItem> resourcePatternsBuildItemBuildProducer) {
Expand Down

0 comments on commit 98d0f77

Please sign in to comment.