发明名称 SUPPORT IN METHOD REFERENCES IN JAVA LANGUAGE
摘要 PROBLEM TO BE SOLVED: To modify a JAVA compiler so that when the JAVA compiler determines, while compiling source code, that an invocation of a first method, which expects to receive a reference to an object, passes, to the first method, a reference to a second method instead of a reference to an object, the JAVA compiler does not issue a compile-time error as the JAVA compiler normally would. SOLUTION: The JAVA compiler generates compiled code (e.g., byte code) that the JAVA compiler would have generated if the source code had (a) defined a "bridge" class that implemented a method that invoked the second method and (b) contained, in the invocation of the first method, a reference to an object that is an instance of the "bridge" class in the place of the reference to the second method. COPYRIGHT: (C)2007,JPO&INPIT
申请公布号 JP2007141248(A) 申请公布日期 2007.06.07
申请号 JP20060331172 申请日期 2006.11.09
申请人 SUN MICROSYST INC 发明人 HAMILTON GRAHAM
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址