certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] Bug jcert CertiLogicalTime


From: Andrej Pancik
Subject: Re: [certi-dev] Bug jcert CertiLogicalTime
Date: Mon, 15 Oct 2012 18:58:01 -0700

Hi Sven,

Yes, it seems you are right! It is a bug.

Best,

Andrej

On Monday, October 15, 2012 at 5:31 AM, Sven Schultschik wrote:

Aloha,

the following is unlogical I think.

You are inside of CertiLogicalTime Class this means that getClass()
returns "CertiLogicalTime" and the addend have to be
LogicalTimeInterval, which means that getClass returns
CertiLogicalTimeIntervall which will be always true!

Am I that wrong or is this really a bug?

public void increaseBy(LogicalTimeInterval addend) throws
IllegalTimeArithmetic {
if (getClass() != addend.getClass()) {
throw new IllegalTimeArithmetic("Different implementation of
logical time supplied" + getClass() + addend.getClass());
}

time += ((CertiLogicalTimeInterval) addend).getInterval();
}

regards

Sven


--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]