[Clirr-devel] about to commit changes to support a SPI
Status: Alpha
Brought to you by:
lkuehne
From: <lak...@t-...> - 2005-08-22 19:01:23
|
Hi, if nobody objects within the next few days, I will commit changes to clirr-core that introduce an SPI for providing the Java code structure. I think I discussed the idea with Simon a while ago, the basic idea is to let the checks work against a the interfaces /JavaType,/ /Field/ and /Method/ instead of working directly against the BCEL classes. This change has three major objectives: * decouple our core logic from external dependencies (in this case BCEL) * allow replacing BCEL with a faster/smaller/more-full-featured (think Java5) byte code lib. ASM would be one of the candidates * allow Clirr IDE plugins to use their IDE's internal code representation, so compilation to class files is not required. It should be possible to write a plugin that lets users detect incompatible changes while they are typing the code. All existing tests still pass, but this change could cause problems for some corner cases that are currently untested. Let me know what you think. Cheers, Lars |