Kalpak Gadre wrote: >> The j.l.Package spec has a requirement that the specification version >> contains only dot-separated numbers [1], and the method >> #isCompatibleWith() will throw a NumberFormatException if that is not >> the case. >> >> If you get such an exception I think the only safe option is for the >> tool to print a warning and assume the packages are incompatible. >> >> [1] http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Package.html >> > I have reused the code of Package::isCompatibleWith() from harmony > codebase, I hope this is not an issue.
'reused' = copied? Why not just call it from your tool? You have the whole JSE API at your disposal. Regards, Tim
