Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/checkers/inference/InferenceMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ public DefaultResultHandler(Logger logger) {

@Override
public void handleCompilerResult(boolean success, String javacOutStr) {
if (!javacOutStr.isEmpty()) {
logger.severe(javacOutStr);
}
if (!success) {
logger.severe("Error return code from javac! Quitting.");
logger.info(javacOutStr);
Expand Down
12 changes: 12 additions & 0 deletions testdata/ostrusted-inferrable-test/Unsat.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ostrusted.qual.OsUntrusted;
import ostrusted.qual.OsTrusted;

class Unsat {

@OsUntrusted String bar() { return ""; }

void m() {
// :: error: (assignment.type.incompatible)
@OsTrusted String s = bar();
}
}