Searched refs:diagnostics (Results 1 - 25 of 31) sorted by relevance

12

/openjdk10/langtools/src/java.compiler/share/classes/javax/tools/
H A DDiagnosticCollector.java34 * Provides an easy way to collect diagnostics in a list.
36 * @param <S> the type of source objects used by diagnostics received
43 private List<Diagnostic<? extends S>> diagnostics = field in class:DiagnosticCollector
48 diagnostics.add(diagnostic);
52 * Returns a list view of diagnostics collected by this object.
54 * @return a list view of diagnostics
57 return Collections.unmodifiableList(diagnostics);
/openjdk10/langtools/src/jdk.jshell/share/classes/jdk/jshell/
H A DSnippet.java568 private DiagList diagnostics; field in class:Snippet
651 DiagList diagnostics() { method in class:Snippet
652 return diagnostics;
690 void setCompilationStatus(Status status, List<String> unresolved, DiagList diagnostics) { argument
693 this.diagnostics = diagnostics;
696 void setDiagnostics(DiagList diagnostics) { argument
697 this.diagnostics = diagnostics;
700 void setFailed(DiagList diagnostics) { argument
[all...]
H A DUnit.java227 // set corralled diagnostics, but don't reset unresolved
235 // set corralled diagnostics, but don't reset unresolved
374 DiagList diagnostics = new DiagList();
378 diagnostics.addAll(ue.otherAll());
381 diagnostics.addAll(diags);
383 diagnostics.addAll(generatedDiagnostics);
384 return diagnostics;
H A DTaskFactory.java338 final DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<>(); field in class:TaskFactory.BaseTask
359 fileManager, diagnostics, options, null,
403 for (Diagnostic<? extends JavaFileObject> in : diagnostics.getDiagnostics()) {
/openjdk10/langtools/test/jdk/jshell/
H A DRejectedFailedTest.java53 List<Diag> diagnostics = getState().diagnostics(e.snippet()).collect(toList());
54 assertTrue(diagnostics.size() > 0, "Expected diagnostics, got none");
64 assertEquals(getState().diagnostics(key).collect(toList()), diagnostics, "Expected retrieved diagnostics to match, but didn't.");
H A DIllegalArgumentExceptionTest.java74 testIllegalArgumentException((key) -> getState().diagnostics(key));
H A DKullaTesting.java245 assertEquals(getState().diagnostics(sn).count(), (long) diagnosticsSize, "Given input: " + input + ", checking diagnostics");
594 List<Diag> diagnostics = getState().diagnostics(mainKey).collect(toList());
597 assertEquals(diagnostics.size(), 0, "Expected no diagnostics, got: " + diagnosticsToString(diagnostics));
600 assertFalse(hasFatalError(diagnostics), "Expected no errors, got: " + diagnosticsToString(diagnostics));
603 assertTrue(hasFatalError(diagnostics), "Expecte
1078 diagnosticsToString(List<Diag> diagnostics) argument
1089 hasFatalError(List<Diag> diagnostics) argument
[all...]
H A DJShellQueryTest.java108 assertStreamMatch(getState().diagnostics(sx));
110 String res = getState().diagnostics(broken)
H A DErrorTranslationTest.java64 ExpectedDiagnostic[] diagnostics = new ExpectedDiagnostic[]{
71 list.add(a -> assertDiagnostic(a, mods[finalI] + " " + code, diagnostics[finalI]));
H A DJShellStateClosedTest.java137 testStateClosedWithoutException((key) -> getState().diagnostics(key));
H A DClassesTest.java214 List<Diag> diagsA = getState().diagnostics(a).collect(toList());
215 List<Diag> diagsB = getState().diagnostics(b).collect(toList());
/openjdk10/langtools/test/tools/javac/annotations/repeatingAnnotations/combo/
H A DHelper.java80 DiagnosticCollector<JavaFileObject> diagnostics) {
90 CompilationTask task = compiler.getTask(null, null, diagnostics, null, null, compilationUnit);
98 public static boolean compileCode(DiagnosticCollector<JavaFileObject> diagnostics, Iterable<? extends JavaFileObject> files) { argument
108 JavacTask task = (JavacTask) compiler.getTask(null, fm, diagnostics, null, null, files);
116 for (Diagnostic<? extends JavaFileObject> d : diagnostics.getDiagnostics()) {
123 CompilationTask task = compiler.getTask(null, null, diagnostics, null, null, files);
79 compileCode(String className, String contents, DiagnosticCollector<JavaFileObject> diagnostics) argument
H A DBasicSyntaxCombo.java136 DiagnosticCollector<JavaFileObject> diagnostics =
138 boolean ok = Helper.compileCode(diagnostics,files);
140 checkErrorKeys(className, diagnostics);
146 String className, DiagnosticCollector<JavaFileObject> diagnostics) throws Exception {
148 for (Diagnostic<?> d : diagnostics.getDiagnostics()) {
145 checkErrorKeys( String className, DiagnosticCollector<JavaFileObject> diagnostics) argument
H A DDeprecatedAnnoCombo.java71 DiagnosticCollector<JavaFileObject> diagnostics =
73 ok = compileCode(clName.toString(), contents, diagnostics);
77 List<Diagnostic<? extends JavaFileObject>> diags = diagnostics.getDiagnostics();
H A DDocumentedAnnoCombo.java74 DiagnosticCollector<JavaFileObject> diagnostics =
76 ok = compileCode(className.toString(), contents, diagnostics);
H A DInheritedAnnoCombo.java74 DiagnosticCollector<JavaFileObject> diagnostics =
76 ok = compileCode(className.toString(), contents, diagnostics);
H A DRetentionAnnoCombo.java120 DiagnosticCollector<JavaFileObject> diagnostics =
122 boolean ok = compileCode(className, contents, diagnostics);
127 for (Diagnostic<?> d : diagnostics.getDiagnostics()) {
H A DTargetAnnoCombo.java424 DiagnosticCollector<JavaFileObject> diagnostics =
426 Helper.compileCode(diagnostics, files);
430 int numDiags = diagnostics.getDiagnostics().size();
448 for (Diagnostic<?> d : diagnostics.getDiagnostics()) {
469 for (Diagnostic<?> d : diagnostics.getDiagnostics()) {
/openjdk10/langtools/test/tools/javac/api/
H A DEndPositions.java67 DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>();
69 JavacTask task = (JavacTask)javac.getTask(null, null, diagnostics, options, null, compilationUnits);
74 List<Diagnostic<? extends JavaFileObject>> errors = diagnostics.getDiagnostics();
82 "; diagnostics code: " + error.getCode());
H A DTestGetElementReference.java68 DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<>();
69 JavacTask ct = (JavacTask) ToolProvider.getSystemJavaCompiler().getTask(null, null, diagnostics, Arrays.asList("-Xjcov"), null, files);
75 for (Diagnostic<? extends JavaFileObject> d : diagnostics.getDiagnostics()) {
77 throw new IllegalStateException("Should have been attributed without errors: " + diagnostics.getDiagnostics());
/openjdk10/langtools/test/tools/javac/Paths/
H A DTestCompileJARInClassPath.java120 DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<>();
121 try (StandardJavaFileManager stdFileManager = javac.getStandardFileManager(diagnostics, null, null)) {
130 if (!javac.getTask(null, stdFileManager, diagnostics, null, null, sourceFiles).call()) {
/openjdk10/langtools/test/tools/javac/parser/extend/
H A DJavacExtensionTest.java84 DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<>();
87 diagnostics, options, null, fileObjects, context);
/openjdk10/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/
H A DSchemaGenerator.java235 DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>();
236 StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);
246 diagnostics,
256 for( Diagnostic<? extends JavaFileObject> d : diagnostics.getDiagnostics() ) {
/openjdk10/langtools/test/tools/javac/warnings/suppress/
H A DVerifySuppressWarnings.java81 final List<Diagnostic<?>> diagnostics = new ArrayList<>();
84 diagnostics.add(diagnostic);
140 final List<Diagnostic<?>> foundErrors = new ArrayList<>(diagnostics);
/openjdk10/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/
H A DWsgenTool.java191 DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>();
192 StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);
196 diagnostics,

Completed in 206 milliseconds

12