Error in handling of <desc:java-capability-class>
--------------------------------------------------
Key: MUSE-107
URL: http://issues.apache.org/jira/browse/MUSE-107
Project: Muse
Issue Type: Bug
Components: Tooling - Code Generation
Affects Versions: 2.0.0
Reporter: Steve Jerman
Assigned To: Dan Jemiolo
If you specify an implementing class, for example:
<desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
<desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
<desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
</desc:capability>
ClassInfo.java doesn't handle it correctly. I uses the same name for ther
Interface and the abstract class.
Adding :
if(implementingClass == null) {
_packageName = getPackageName(capability.getURI());
_classShortName = JAVA_CLASS_NAME;
_classFullName = _packageName + "." + _classShortName;
_capability.setImplementingClass(_classFullName +
IMPLEMENTATION_SUFFIX);
} else {
_classFullName = implementingClass;
_classShortName =
ReflectUtils.getShortName(_classFullName);
_packageName =
ReflectUtils.getPackageName(_classFullName);
------> _capability.setImplementingClass(implementingClass +
IMPLEMENTATION_SUFFIX);
}
Sorts it..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]