-
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.
Merge pull request #13644 from gsmet/graalvm-20.3
Upgrade to GraalVM 20.3
- Loading branch information
Showing
9 changed files
with
63 additions
and
16 deletions.
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
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
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
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
2 changes: 1 addition & 1 deletion
2
...alvm/CleanerNotSupportedSubstitution.java → ...raal/CleanerNotSupportedSubstitution.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
37 changes: 37 additions & 0 deletions
37
extensions/tika/runtime/src/main/java/io/quarkus/tika/runtime/graal/PDFBoxSubstitutions.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,37 @@ | ||
package io.quarkus.tika.runtime.graal; | ||
|
||
import java.awt.color.ColorSpace; | ||
import java.awt.color.ICC_ColorSpace; | ||
|
||
import com.oracle.svm.core.annotate.Alias; | ||
import com.oracle.svm.core.annotate.RecomputeFieldValue; | ||
import com.oracle.svm.core.annotate.Substitute; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
|
||
@TargetClass(className = "org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB") | ||
final class Target_org_apache_pdfbox_pdmodel_graphics_color_PDDeviceRGB { | ||
@Substitute | ||
private void init() { | ||
// This method appears to be just a workaround for PDFBOX-2184 | ||
} | ||
|
||
// awtColorSpace is not actually used in PDDeviceRGB | ||
@Alias | ||
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) | ||
private volatile ColorSpace awtColorSpace; | ||
} | ||
|
||
@TargetClass(className = "org.apache.pdfbox.pdmodel.graphics.color.PDICCBased") | ||
final class Target_org_apache_pdfbox_pdmodel_graphics_color_PDICCBased { | ||
// This class provides alternative paths for when awtColorSpace is null, so it is safe to reset it | ||
@Alias | ||
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) | ||
private volatile ICC_ColorSpace awtColorSpace; | ||
} | ||
|
||
// Substitutions to prevent ICC_ColorSpace instances from appearing in the native image when using Apache Tika | ||
// See https://github.com/quarkusio/quarkus/pull/13644 | ||
// These substitutions can be removed when moving from GraalVM 20.3 to GraalVM 21.0. | ||
class PDFBoxSubstitutions { | ||
|
||
} |
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
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
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