Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160831

GioFileTypeDetector always calls deprecated g_type_init

    XMLWordPrintable

Details

    • b127
    • Not verified

    Description

      GioFileTypeDetector calls g_type_init, without checking whether dlsym successfully located it. g_type_init has been deprecated since Glib 2.36 as it is initialized automatically [1]. At some point in the future it will be removed which will cause problems for GioFileTypeDetector. Checks should be done to ensure the function exists before attempting to call it.

      [1] https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init

      Attachments

        Issue Links

          Activity

            People

              mwalsh Martin Walsh (Inactive)
              mwalsh Martin Walsh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: