publicclass T6345974 { publicstaticvoid main(String[] args) throws Exception {
PrintWriter out = new PrintWriter(System.out, true);
JavacTool tool = JavacTool.create(); try (StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null)) {
File testSrc = new File(System.getProperty("test.src"));
Iterable<? extends JavaFileObject> f =
fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrc, "T6345974.java")));
JavacTask task = tool.getTask(out, fm, null, null, null, f);
Iterable<? extends CompilationUnitTree> trees = task.parse();
out.flush();
Scanner s = new Scanner(); for (CompilationUnitTree t: trees)
s.scan(t, null);
}
}
privatestaticclass Scanner extends TreeScanner<Void,Void> { publicVoid visitPrimitiveType(PrimitiveTypeTree node, Void ignore) { // The following call of getPrimitiveTypeKind should not throw an AssertionError
System.out.println(node + " " + node.getPrimitiveTypeKind()); returnnull;
}
}
boolean b; byte by; char c; double d; float f; int i; long l; short s; void f() { }
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.15Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-10)
¤