JDK-8234054 : Access violations in combol.ComboInstance
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 13
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-11-12
  • Updated: 2020-06-11
  • Resolved: 2020-06-11
Related Reports
Duplicate :  
Relates :  
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.
Comments
Has been fixed under JDK-8236997.
11-06-2020