The latest units/quantities packages (for the upcoming JScience 3.0) has been submitted to the JSR-275 expert group for review. It provides compile time check of quantities consistency through class parameterization. You can browse the proposed API here (two new packages javax.quantities and javax.units). The JScience pre-release implementation is available here: sources, binaries.
I can use this.
Thanks for posting!