You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe when the testcase calls rs.getString(), this is calling RecordedClass.toString() which ultimately uses StructuredWriter.lineSeparator which is initialized to String.format("%n"), and this differs by platform.
Possible solutions
Should we return the java.lang.Class in this case, rather than the RecordedClass object? The Class.toString() method should produce the same result on all platforms.
The text was updated successfully, but these errors were encountered:
Summary
WIndows has trouble with newlines and I'm not sure how you want to proceed.
Failure
When I run
JfrSchemaFactoryTest.canRunSimpleSelectFromClassLoad
on Windows, it fails on column 2 because the newlines are different:Cause
JfrSchema.getConverter
is using the following converter:I believe when the testcase calls
rs.getString()
, this is callingRecordedClass.toString()
which ultimately usesStructuredWriter.lineSeparator
which is initialized toString.format("%n")
, and this differs by platform.Possible solutions
Should we return the
java.lang.Class
in this case, rather than theRecordedClass
object? TheClass.toString()
method should produce the same result on all platforms.The text was updated successfully, but these errors were encountered: