Skip to content

Commit

Permalink
Merge pull request #3246 from dmlloyd/jaxb-j2d
Browse files Browse the repository at this point in the history
Java 11: Disable Graphics for JAXB
  • Loading branch information
gsmet authored Jul 17, 2019
2 parents 2d12cf4 + ef87e55 commit 25cb52e
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package io.quarkus.runtime.graal;

import java.awt.Graphics;
import java.awt.GraphicsEnvironment;

import com.oracle.svm.core.annotate.AlwaysInline;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(GraphicsEnvironment.class)
final class Target_java_awt_GraphicsEnvironment {
@AlwaysInline("DCE for things using Java2D")
@Substitute
public static Graphics getLocalGraphicsEnvironment() {
throw new UnsupportedOperationException("Not implemented yet for GraalVM native images");
}
}

class Java2DSubstitutions {
}

0 comments on commit 25cb52e

Please sign in to comment.