The gcj compiler warns on many unused imports, variables and other issues in the test source code.
Committed fix in 925947. gcj still complains about DerivedPatternLayout in PatternTestCase and EnhancedPatternTestCase which are used to check accessibility of pattern internals at compile time and are intentionally not used at run time.