You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Tharindu Dananjaya <th...@gmail.com> on 2017/08/01 17:10:26 UTC
Re: Bug 60966 : getClass().getResource() does not work as a File if
the classpath contains spaces
Hi Felix,
I checked the class that named as
ApdexPerTransactionTest.java.In there I have no idea how above problem
happens.how can i give some test cases to check that bug?can you explain
that simply? :P
Re: Bug 60966 : getClass().getResource() does not work as a File if
the classpath contains spaces
Posted by Felix Schumacher <fe...@internetallee.de>.
Am 01.08.2017 um 19:10 schrieb Tharindu Dananjaya:
> Hi Felix,
> I checked the class that named as
> ApdexPerTransactionTest.java.In there I have no idea how above problem
> happens.how can i give some test cases to check that bug?can you explain
> that simply? :P
That class currently has no getClass().getResource() calls. It uses
getResourceAsStream() which is safe in regard to whitespace in paths.
Maybe you want to look in the subversion (git might be faster) history
of that class. The change #1790830 is the one, that changed
getResource() to getResourceAsStream(). I think (haven't checked), that
the test will fail, if the jmeter source is placed inside a directory,
that contains a space.
Felix
>