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

Access violations in combol.ComboInstance

    Details

    • Type: Bug
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      These lines in ComboInstance are triggering messages about illegal access violations.

                  try {
                      Class<?> fmClass = env.fileManager().getClass();
                      Method clear = fmClass.getMethod("clear");
                      clear.setAccessible(true);
                      clear.invoke(env.fileManager());
                  } catch (Exception ex) {
                      throw new IllegalStateException(ex);
                  }

      Passed: tools/javac/processing/T6920317.java
      [2019-11-12 14:14:15,180] Agent[6]: stderr: WARNING: An illegal reflective access operation has occurred
      [2019-11-12 14:14:15,180] Agent[6]: stderr: WARNING: Illegal reflective access by combo.ComboInstance (file:/w/jjg/work/jdk.dev/build/jtreg/work/classes/0/tools/javac/lib/) to method com.sun.tools.javac.file.BaseFileManager.clear()
      [2019-11-12 14:14:15,180] Agent[6]: stderr: WARNING: Please consider reporting this to the maintainers of combo.ComboInstance
      [2019-11-12 14:14:15,180] Agent[6]: stderr: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      [2019-11-12 14:14:15,180] Agent[6]: stderr: WARNING: All illegal access operations will be denied in a future release

      This needs to be fixed before the warnings are promoted to errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jjg Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: