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

test/tools/javac/api/6410643/T6410643.java is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • tools
    • b17
    • Verified

        This test declares a utility method but ignores the args it is given.

            void testGetTask(Iterable<String> options,
                             Iterable<String> classes,
                             Iterable<? extends JavaFileObject> compilationUnits) {
                try {
                    task = tool.getTask(null, null, null, null, null, singleton((JavaFileObject)null));
                    throw new AssertionError("Error expected");
                } catch (NullPointerException e) {
                    System.err.println("Expected error occurred: " + e);
                }
            }

              jjg Jonathan Gibbons
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: