[kaffe] Patch: Merge of Classpath glue code for assertion framework
Benja Fallenstein
b.fallenstein at gmx.de
Sun May 11 11:45:01 PDT 2003
Dalibor Topic wrote:
> --- Benja Fallenstein <b.fallenstein at gmx.de> wrote:
>>today I had a problem with a dependency using log4j, because log4j would
>>try to use Class.desiredAssertionStatus() -- a 1.4 method that is part
>>of the assertion framework. Since the library I depended on initialized
>>log4j statically, my test suite wouldn't even start. To fix the problem,
>>I merged the corresponding GNU Classpath code into Kaffe-- not actually
>>implementing the whole assertion framework though, just the methods in
>>Class and ClassLoader :-)
>>
>>I was hoping this could be useful for Kaffe?
>
> sure! thanks a lot for the patch, I'll change the class version handling code
> in the class loader to stop printing an error message for java 1.4 class files.
Cool!
I've noticed one omission on my part though: java.lang.AssertionError
was also introduced in 1.4 and may be depended on by libs using the
assertion-related methods-- probably want to have this too. This was
missing from the diff because it has not been entered into CVS
(obviously). Sorry.
- Benja
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AssertionError.java
Type: text/x-java
Size: 4540 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030511/f8ec2283/attachment-0003.java
More information about the kaffe
mailing list