Author: johndament
Date: Tue Aug 1 02:09:57 2017
New Revision: 1803608
URL: http://svn.apache.org/viewvc?rev=1803608&view=rev
Log:
GERONIMO-6576 - Update proper FQCN for java classes. Use proper regex for dot replacement.
Replace exception message with something more meaningful.
Modified:
geronimo/components/config/trunk/impl/src/main/java/org/apache/geronimo/config/cdi/ConfigExtension.java
Modified: geronimo/components/config/trunk/impl/src/main/java/org/apache/geronimo/config/cdi/ConfigExtension.java
URL: http://svn.apache.org/viewvc/geronimo/components/config/trunk/impl/src/main/java/org/apache/geronimo/config/cdi/ConfigExtension.java?rev=1803608&r1=1803607&r2=1803608&view=diff
==============================================================================
--- geronimo/components/config/trunk/impl/src/main/java/org/apache/geronimo/config/cdi/ConfigExtension.java
(original)
+++ geronimo/components/config/trunk/impl/src/main/java/org/apache/geronimo/config/cdi/ConfigExtension.java
Tue Aug 1 02:09:57 2017
@@ -108,7 +108,7 @@ public class ConfigExtension implements
hasValue = false;
}
if (!hasValue) {
- deploymentProblems.add(new IllegalArgumentException("Missing converter
for '" + key + "' from " + injectionPoint));
+ deploymentProblems.add(new IllegalArgumentException("No configured value
for '" + key + "' from " + injectionPoint));
}
}
@@ -286,7 +286,7 @@ public class ConfigExtension implements
AnnotatedMember member = (AnnotatedMember) ip.getAnnotated();
AnnotatedType declaringType = member.getDeclaringType();
if (declaringType != null) {
- String[] parts = declaringType.getJavaClass().getName().split(".");
+ String[] parts = declaringType.getJavaClass().getCanonicalName().split("\\.");
String cn = parts[parts.length - 1];
parts[parts.length - 1] = Character.toLowerCase(cn.charAt(0)) + (cn.length()
> 1 ? cn.substring(1) : "");
StringBuilder sb = new StringBuilder(parts[0]);
|