Method and system for loading classes in read-only memory

    公开(公告)号:JP4021520B2

    公开(公告)日:2007-12-12

    申请号:JP14079397

    申请日:1997-05-30

    Abstract: A method and system for providing an executable module having an address space for storing program data that is to reside in a read-only storage medium and an address space for storing program data that is to reside in a random access memory is herein described. The executable module represents Java classes that are structured for dynamic class loading. A static class loader is used to modify the class structure to accommodate static loading. The static class loader also identifies methods that contain unresolved symbolic references and data that varies during the execution of the module. These methods and data are identified in order to place them in the address space that resides in the random access memory. The static loader is beneficial in a distributed computing environment having a client computer that has little or no secondary storage thereby requiring applications to run entirely in random access memory. By utilizing a read-only memory to store statically loadable classes, the random access memory is left available for other uses.

    Support in method references in java language
    14.
    发明专利
    Support in method references in java language 有权
    支持JAVA语言中的方法参考

    公开(公告)号:JP2007141248A

    公开(公告)日:2007-06-07

    申请号:JP2006331172

    申请日:2006-11-09

    Inventor: HAMILTON GRAHAM

    CPC classification number: G06F9/443 G06F8/41

    Abstract: 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

    Abstract translation: 要解决的问题:要修改JAVA编译器,以便当JAVA编译器在编译源代码时确定对期望接收对象的引用的第一种方法的调用传递给第一种方法 ,引用第二种方法而不是对对象的引用,JAVA编译器不会像JAVA编译器通常会发出编译时错误。 解决方案:如果源代码(a)定义了一个实现了调用第二种方法的方法的“桥”类,则JAVA编译器将生成JAVA编译器将生成的编译代码(例如,字节码) )在第一种方法的调用中包含对作为“bridge”类的实例的对象的引用,以代替对第二种方法的引用。 版权所有(C)2007,JPO&INPIT

Patent Agency Ranking