-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust LCMS substitutions for GraalVM JDK 17
Fixes #19356
- Loading branch information
Showing
2 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
core/runtime/src/main/java/io/quarkus/runtime/graal/LCMSSubstitutionsJDK17.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package io.quarkus.runtime.graal; | ||
|
||
import java.awt.color.ICC_Profile; | ||
|
||
import com.oracle.svm.core.annotate.Substitute; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
import com.oracle.svm.core.jdk.JDK17OrLater; | ||
|
||
@TargetClass(className = "sun.java2d.cmm.lcms.LCMS", onlyWith = JDK17OrLater.class) | ||
final class Target_sun_java2d_cmm_lcms_LCMS_JDK17 { | ||
|
||
@Substitute | ||
static long loadProfileNative(byte[] data, Object ref) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
static void getProfileDataNative(long ptr, byte[] data) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
static byte[] getTagNative(long profileID, int signature) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
static void setTagDataNative(long ptr, int tagSignature, | ||
byte[] data) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
public byte[] getProfileData(Profile p) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
public byte[] getTagData(Profile p, int tagSignature) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
public void setTagData(Profile p, int tagSignature, byte[] data) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
private static long createNativeTransform( | ||
long[] profileIDs, int renderType, | ||
int inFormatter, boolean isInIntPacked, | ||
int outFormatter, boolean isOutIntPacked, | ||
Object disposerRef) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
public static void initLCMS(Class<?> Trans, Class<?> IL, Class<?> Pf) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
static synchronized LCMSProfile getProfileID(ICC_Profile profile) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@Substitute | ||
public static void colorConvert(LCMSTransform trans, | ||
LCMSImageLayout src, | ||
LCMSImageLayout dest) { | ||
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images"); | ||
} | ||
|
||
@TargetClass(className = "sun.java2d.cmm.Profile") | ||
static final class Profile { | ||
} | ||
|
||
@TargetClass(className = "sun.java2d.cmm.lcms.LCMSProfile") | ||
static final class LCMSProfile { | ||
} | ||
|
||
@TargetClass(className = "sun.java2d.cmm.lcms.LCMSImageLayout") | ||
static final class LCMSImageLayout { | ||
} | ||
|
||
@TargetClass(className = "sun.java2d.cmm.lcms.LCMSTransform") | ||
static final class LCMSTransform { | ||
} | ||
|
||
} |