Issue 18427: Error in implementation of TypeSupport.newTypeSupport() (dds-psm-java-rtf) Source: ADLINK Technology Ltd (Mr. Julien Enoch, julien.enoch(at)adlinktech.com) Nature: Revision Severity: Significant Summary: In TypeSupport class the newTypeSupport() operation is implemented as following: public static <TYPE> TypeSupport<TYPE> newTypeSupport( Class<TYPE> type, ServiceEnvironment env) { return newTypeSupport(type, type.getClass().getName(), env); } The correct implementation should be: public static <TYPE> TypeSupport<TYPE> newTypeSupport( Class<TYPE> type, ServiceEnvironment env) { return newTypeSupport(type, type.getName(), env); } Since type.getClass().getName() always return "java.lang.Class". Resolution: Revised Text: Actions taken: February 6, 2013: received issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 06 Feb 2013 09:50:05 -0500 To: Subject: Issue/Bug Report ******************************************************************************* Name: Julien Enoch Employer: PrismTech mailFrom: julien.enoch@prismtech.com Terms_Agreement: I agree Specification: Java 5 DDS PSM Section: N/A FormalNumber: ptc/12-12-04 Version: 1.0 Doc_Year: Year Doc_Month: Month Doc_Day: Day Page: 0 Title: Error in implementation of TypeSupport.newTypeSupport() Nature: Revision Severity: Significant CODE: 3TMw8 B1: Report Issue Description: In TypeSupport class the newTypeSupport() operation is implemented as following: public static TypeSupport newTypeSupport( Class type, ServiceEnvironment env) { return newTypeSupport(type, type.getClass().getName(), env); } The correct implementation should be: public static TypeSupport newTypeSupport( Class type, ServiceEnvironment env) { return newTypeSupport(type, type.getName(), env); } Since type.getClass().getName() always return "java.lang.Class".