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

Some javac tests ignore the result of task.call()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • 24
    • tools

      When looking at the test SOEDeeplyNestedBlocksTest, I noticed that the test crashes javac with a StackOverflowException. And yet, the test seems to pass.

      After a closer look I realized that this odd behavior is caused by the test calling `JavacTask::call` w/o checking the boolean result. This API method wraps any exception (except for those originated in client code).

      I found many instances of such test (see attached file).

            vromero Vicente Arturo Romero Zaldivar
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: