Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ private void checkReassignmentToField(Set<Obligation> obligations, AssignmentNod
formatMissingMustCallMethods(mcValues),
"field " + lhsElement.getSimpleName().toString(),
lhsElement.asType().toString(),
"Field assignment outside method or declaration might overwrite field's"
"field assignment outside method or declaration might overwrite field's"
+ " current value");
return;
}
Expand Down Expand Up @@ -1667,7 +1667,7 @@ && varTrackedInObligations(obligations, (LocalVariableNode) receiver))
formatMissingMustCallMethods(mcValues),
"field " + lhsElement.getSimpleName().toString(),
lhsElement.asType().toString(),
" Non-final owning field might be overwritten");
"non-final owning field might be overwritten");
}
}
}
Expand Down Expand Up @@ -2045,9 +2045,9 @@ private void propagateObligationsToSuccessorBlock(
// exit, but that doesn't seem to provide additional helpful
// information.
"regular method exit"
: "possible exceptional exit due to "
: "possible exceptional exit before required method call, triggered by "
+ ((ExceptionBlock) currentBlock).getNode().getTree()
+ " with exception type "
+ " throwing exception type "
+ exceptionType;
// Computed outside the Obligation loop for efficiency.
AccumulationStore regularStoreOfSuccessor = cmAtf.getInput(successor).getRegularStore();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
required.method.not.called=@MustCall %s may not have been invoked on %s or any of its aliases.%nThe type of object is: %s.%nReason for going out of scope: %s
required.method.not.called=Required %s may not have been invoked on %s or any of its aliases.%nThe type of object is: %s.%nReason for going out of scope: %s
missing.creates.mustcall.for=Method %s re-assigns the non-final, owning field %s.%s, but does not have a corresponding @CreatesMustCallFor annotation.
incompatible.creates.mustcall.for=Method %s re-assigns the non-final, owning field %s.%s, but its @CreatesMustCallFor annotation targets %s.
reset.not.owning=Calling method %s resets the must-call obligations of the expression %s, which is non-owning. Either annotate its declaration with an @Owning annotation, extract it into a local variable, or write a corresponding @CreatesMustCallFor annotation on the method that encloses this statement.
Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Removed method `InitializationParentAnnotatedTypeFactory.createUnderInitializati

**Closed issues:**

eisop#1247, eisop#1263, eisop#1310, eisop#1326, typetools#7096, eisop#1448, eisop#1543.
eisop#1247, eisop#1263, eisop#1310, eisop#1326, typetools#7096, eisop#1448, eisop#1542, eisop#1543.


Version 3.49.5 (June 30, 2025)
Expand Down
Loading