[trace] Fine grained tracing for structure of Jvm types, e.g. origins of type references, parameters or type parameters are traced

This commit is contained in:
Sebastian Zarnekow 2012-03-05 21:31:40 +01:00
parent 5882670c44
commit cec0e93b34

View file

@ -33,6 +33,9 @@ public class TraceRegion extends AbstractStatefulTraceRegion {
public TraceRegion(int myOffset, int myLength, int myLineNumber, int myEndLineNumber, ILocationData locationData, @Nullable AbstractTraceRegion parent) {
super(new TextRegionWithLineInformation(myOffset, myLength, myLineNumber, myEndLineNumber), locationData, parent);
if (myOffset == myLength && myOffset == 0) {
throw new IllegalArgumentException();
}
if (parent == null) {
if (locationData.getPath() == null) {
throw new IllegalArgumentException("associatedPath may not be null");