Skip to content
Permalink
Browse files
Special-case IDL:omg.org/CORBA/WStringValue:1.0
  • Loading branch information
ngmr committed May 27, 2015
1 parent 9b0f17f commit 5aad6813317b6482c07f30d3809e334ff327414a
Showing 1 changed file with 7 additions and 0 deletions.
@@ -72,6 +72,10 @@ private static Class<?> toClass(final QueryImpl query) {
if (LOGGER.isLoggable(Level.FINE))
LOGGER.fine(String.format("Searching for class from repid \"%s\" using suffix \"%s\"", repid, suffix));
Class<?> result = null;

//Special case IDL:omg.org/CORBA/WStringValue:1.0
if ("IDL:omg.org/CORBA/WStringValue:1.0".equals(repid) && "".equals(suffix)) return String.class;

final String className = toClassName(query);

if (LOGGER.isLoggable(Level.FINE))
@@ -99,6 +103,9 @@ private static String toClassName(QueryImpl query) {
final String repid = query.repid;
final String suffix = query.suffix;

//Special case IDL:omg.org/CORBA/WStringValue:1.0
if ("IDL:omg.org/CORBA/WStringValue:1.0".equals(repid) && "".equals(suffix)) return String.class.getName();

String result = null;
if (repid.startsWith("IDL:")) {
result = idlToClassName(repid);

0 comments on commit 5aad681

Please sign in to comment.