Option to automatically generate missing exceptions and methods

Øyvind Harboe oyvind.harboe@zylin.com
Tue Mar 11 21:28:00 GMT 2003


Part of the problem of getting GCJ to work can sometimes
be that various classes and methods are not supported
in Classpath.
I've seen that Classpath contains empty methods/classes,
which allow programs to compile and link with GCJ, but 
simply throw a runtime exception if they are ever invoked.
It seems to me that instead of manually writing these stubs,
GCJ could automatically generate the empty classes/methods. 
Is there such an option?
The benefits of such an option would be several:
- No need to add stubs to libgcj/Classpath, unless they 
do something more than the compiler generated
- For some programs, the missing stubs are all that are missing
to get things up and running
- Although most programs would not work with the generated stubs,
it might still have some value for testing/debugging/prototyping
of GCJ and the app in question
Øyvind


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /