Просмотр исходного кода

Log more info about what package is trying to be registered into

Jared 6 лет назад
Родитель
Сommit
c7466e5c37
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java

+ 1
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java Просмотреть файл

265
 				className = specifiedName.substring(specifiedName.lastIndexOf('.') + 1);
265
 				className = specifiedName.substring(specifiedName.lastIndexOf('.') + 1);
266
 			} else if (specifiedName.indexOf('.') >= 0) {
266
 			} else if (specifiedName.indexOf('.') >= 0) {
267
 				if (!specifiedName.startsWith(pkg.fullName))
267
 				if (!specifiedName.startsWith(pkg.fullName))
268
-					throw new IllegalArgumentException("Specified @Name as \"" + specifiedName + "\" for class: \"" + cls.toString() + "\" but it's not in the module root package");
268
+					throw new IllegalArgumentException("Specified @Name as \"" + specifiedName + "\" for class: \"" + cls.toString() + "\" but it's not in the module root package: \"" + pkg.fullName + "\"");
269
 
269
 
270
 				classPkg = getPackage(basePackage + specifiedName.substring(pkg.fullName.length()));
270
 				classPkg = getPackage(basePackage + specifiedName.substring(pkg.fullName.length()));
271
 				className = specifiedName.substring(specifiedName.lastIndexOf('.') + 1);
271
 				className = specifiedName.substring(specifiedName.lastIndexOf('.') + 1);

Загрузка…
Отмена
Сохранить