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

Grating error message from runtime reflection code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • tbd
    • 9
    • core-libs
    • None

      I was treated to the following in a bug report :
      ---
      java.lang.reflect.InaccessibleObjectException: Unable to make field protected volatile long sun.awt.windows.WComponentPeer.hwnd accessible: module java.desktop does not "opens sun.awt.windows" to unnamed module @7c0d955b
      ---

      I realise there are quotes but 'does not opens' reads badly.
      It can trivially be made less grating by changing it to
      does not use "opens ...
      or
      does not specify "opens ...

            alanb Alan Bateman
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: