GP-890: Added dialog for adding mappings and fixing various db/ui issues re/ length.

This commit is contained in:
Dan 2021-04-28 15:43:27 -04:00
parent bd2ac52c9b
commit e6fd14f88c
13 changed files with 967 additions and 111 deletions

View file

@ -76,7 +76,7 @@ public class DBTraceStaticMappingManager implements TraceStaticMappingManager, D
public DBTraceStaticMapping add(AddressRange range, Range<Long> lifespan, URL toProgramURL,
String toAddress)
throws TraceConflictedMappingException {
if (lifespan.lowerBoundType() != BoundType.CLOSED) {
if (lifespan.hasLowerBound() && lifespan.lowerBoundType() != BoundType.CLOSED) {
throw new IllegalArgumentException("Lower bound must be closed");
}
try (LockHold hold = LockHold.lock(lock.writeLock())) {

View file

@ -63,7 +63,7 @@ public interface TraceStaticMapping {
/**
* Get the length of the mapping, i.e., the length of the range
*
* @return the length
* @return the length, where 0 indicates {@code 1 << 64}
*/
long getLength();