Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,43 @@ protected void setOsNameAndVersion() {
}
}

/**
* We get rid of ResourceBundle.getBundle(...) for
* sun.awt.resources.awt
* sun/awt/resources/awt.properties
* sun.awt.resources.awt_en
* sun/awt/resources/awt_en.properties
* sun.awt.resources.awt_en_US
* sun/awt/resources/awt_en_US.properties
* we don't include those bundles anyway, so the search is in vain,
* and we don't need those as they contain strings for GUI elements,
* useless in our exclusively headless setup.
* See https://github.com/quarkusio/quarkus/issues/44622
*/
@TargetClass(className = "java.awt.Toolkit$4")
final class Target_java_awt_Toolkit$4 {
@Substitute
public Void run() {
return null;
}
}

/**
* TODO: This is perhaps too harsh, is it needed?
* See See https://github.com/quarkusio/quarkus/issues/44622
*/
@TargetClass(className = "javax.imageio.spi.IIORegistry")
final class Target_javax_imageio_spi_IIORegistry {
@Substitute
private void registerInstalledProviders() {
// Do nothing. We don't support ImageIO plugins via META-INF/services anyway.
}

@Substitute
private void registerApplicationClasspathSpis() {
// Do nothing. We don't support ImageIO plugins found on classpath.
}
}

public class JDKSubstitutions {
}
Loading