ICU-12227 Always specify class loader when loading test data.

X-SVN-Rev: 38464
This commit is contained in:
Fredrik Roubert 2016-03-02 19:25:40 +00:00
parent 5c11445c6b
commit 88a80c655c

View file

@ -1,6 +1,6 @@
/*
**********************************************************************
* Copyright (c) 2006-2014, International Business Machines
* Copyright (c) 2006-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Created on 2006-4-21
@ -76,7 +76,8 @@ class ResourceModule implements TestDataModule {
ResourceModule(String baseName, String localeName) throws DataModuleFormatError{
res = (UResourceBundle) UResourceBundle.getBundleInstance(baseName, localeName);
res = (UResourceBundle) UResourceBundle.getBundleInstance(baseName, localeName,
getClass().getClassLoader());
info = getFromTable(res, INFO, UResourceBundle.TABLE);
testData = getFromTable(res, TEST_DATA, UResourceBundle.TABLE);