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

Unable to load system L&F class name in module mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 9-repo-jigsaw
    • core-libs

      Consider the following two lines of code:

              String name = UIManager.getSystemLookAndFeelClassName();
              Class c = Class.forName(name);

      Currently this code might not work in module-mode.

      A JCK test if executed on Solaris machine in one-module mode fails:

      TestURL: api/javax_swing/UIManager/descriptions.html#getset[UIManager2015]

      Output:
      ---
      UIManager2002: Passed. OKAY
      UIManager2003: Passed. OKAY
      UIManager2004: Passed. OKAY
      UIManager2005: Passed. OKAY
      UIManager2006: Passed. OKAY
      UIManager2007: Passed. OKAY
      UIManager2008: Passed. OKAY
      UIManager2009: Passed. OKAY
      UIManager2010: Passed. OKAY
      UIManager2011: Passed. OKAY
      UIManager2012: Passed. OKAY
      UIManager2013: Passed. OKAY
      UIManager2014: Passed. OKAY
      UIManager2015: Failed. Method return incorrect class name (java.lang.ClassNotFoundException: com.sun.java.swing.plaf.motif.MotifLookAndFeel : requested by +tests)
      UIManager2016: Passed. OKAY
      UIManager2017: Passed. OKAY
      UIManager2018: Passed. OKAY
      UIManager2019: Passed. OKAY
      UIManager2020: Passed. OKAY
      UIManager2021: Passed. OKAY
      UIManager2022: Passed. OKAY
      UIManager2023: Passed. OKAY
      UIManager2024: Passed. OKAY
      STATUS:Failed.test cases: 23; passed: 22; failed: 1; first test case failure: UIManager2015
      ----------out2:(27/2063)----------

            Unassigned Unassigned
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: