support Java6