|
@@ -262,15 +262,15 @@ public class JavaNativeModule {
|
262
|
262
|
String specifiedName = nameAnnotation.value();
|
263
|
263
|
if (specifiedName.startsWith(".")) {
|
264
|
264
|
classPkg = getPackage(specifiedName);
|
265
|
|
- className = className.substring(className.lastIndexOf('.') + 1);
|
|
265
|
+ className = specifiedName.substring(specifiedName.lastIndexOf('.') + 1);
|
266
|
266
|
} else if (specifiedName.indexOf('.') >= 0) {
|
267
|
267
|
if (!specifiedName.startsWith(pkg.fullName))
|
268
|
268
|
throw new IllegalArgumentException("Specified @Name as \"" + specifiedName + "\" for class: \"" + cls.toString() + "\" but it's not in the module root package");
|
269
|
269
|
|
270
|
270
|
classPkg = getPackage(basePackage + specifiedName.substring(pkg.fullName.length()));
|
271
|
|
- className = className.substring(className.lastIndexOf('.') + 1);
|
|
271
|
+ className = specifiedName.substring(specifiedName.lastIndexOf('.') + 1);
|
272
|
272
|
} else {
|
273
|
|
- classPkg = getPackage(className);
|
|
273
|
+ classPkg = getPackage(specifiedName);
|
274
|
274
|
className = nameAnnotation.value();
|
275
|
275
|
}
|
276
|
276
|
}
|