-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix for issue #274 #275
🐛 fix for issue #274 #275
Conversation
api/src/main/java/com/microsoft/gctoolkit/time/DateTimeStamp.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add the test log :-)
This PR should be in draft mode. Sorry for not making that so. |
IT/src/test/java/com/microsoft/gctoolkit/integration/CaptureJVMTerminationEventTest.java
Outdated
Show resolved
Hide resolved
IT/src/test/java/com/microsoft/gctoolkit/integration/MissingAnnotationTest.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/microsoft/gctoolkit/jvm/AbstractJavaVirtualMachine.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/microsoft/gctoolkit/time/DateTimeStamp.java
Outdated
Show resolved
Hide resolved
...er/src/test/java/com/microsoft/gctoolkit/parser/unittests/UnifiedGenerationalParserTest.java
Outdated
Show resolved
Hide resolved
…MTerminationEventTest.java Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
…notationTest.java Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
DateTimeStamp implements Comparable<DateTimeStamp> so delegate before and after methods to the compareTo method
DateTimeStamp smaller = new DateTimeStamp(123); | ||
DateTimeStamp greater = new DateTimeStamp(124); | ||
assertEquals(-1, smaller.compareTo(greater)); | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should leave this test in, especially since the compareTo implementation hasn't changed (it should still throw an IllegalStateException). This will help flag possible changes in behavior down the road.
@@ -6,7 +6,7 @@ | |||
<parent> | |||
<groupId>com.microsoft.gctoolkit</groupId> | |||
<artifactId>gctoolkit</artifactId> | |||
<version>3.0.3-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back this change out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
parser/pom.xml
Outdated
@@ -5,7 +5,7 @@ | |||
<parent> | |||
<groupId>com.microsoft.gctoolkit</groupId> | |||
<artifactId>gctoolkit</artifactId> | |||
<version>3.0.3-SNAPSHOT</version> | |||
<version>3.0.3</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back this change out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
use case for DateTimeStamp without the time stamp has been added to support logs that don't have a time stamp set. The fix is to convert the date stamp to seconds from epoch.