Class NativeImageUtil


  • public class NativeImageUtil
    extends java.lang.Object
    Utilities for graal native image support; mostly to improve error message handling in case of missing information for native image.
    Since:
    2.14
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isUnsupportedFeatureError​(java.lang.Throwable e)
      Check whether the given error is a substratevm UnsupportedFeatureError
      static boolean needsReflectionConfiguration​(java.lang.Class<?> cl)
      Check whether the given class is likely missing reflection configuration (running in native image, and no members visible in reflection).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isUnsupportedFeatureError

        public static boolean isUnsupportedFeatureError​(java.lang.Throwable e)
        Check whether the given error is a substratevm UnsupportedFeatureError
      • needsReflectionConfiguration

        public static boolean needsReflectionConfiguration​(java.lang.Class<?> cl)
        Check whether the given class is likely missing reflection configuration (running in native image, and no members visible in reflection).