We're updating the issue view to help you get more done. 

ICUResourceBundleReader.getString fails on Java 6

Description

When using the official ICU4J 54.1 binary JAR with JRE 6 we get the following Exception:

1 2 3 4 5 6 java.lang.NoSuchMethodError: java.nio.CharBuffer.subSequence(II)Ljava/nio/CharBuffer; at com.ibm.icu.impl.ICUResourceBundleReader.getString(ICUResourceBundleReader.java:649) at com.ibm.icu.impl.ICUResourceBundleImpl$ResourceContainer.getString(ICUResourceBundleImpl.java:136) at com.ibm.icu.util.UResourceBundleIterator.nextString(UResourceBundleIterator.java:73) at com.ibm.icu.text.RuleBasedNumberFormat.<init>(RuleBasedNumberFormat.java:794) at com.ibm.icu.text.RuleBasedNumberFormat.<init>(RuleBasedNumberFormat.java:758)

It does work fine using JRE 7 & 8.

The (temporary) solution for us was to build ICU4J from source (SVN tag 54.1) using JDK 6.

Environment

Status

Assignee

Yoshito Umaoka

Reporter

TracBot

Labels

tracCreated

Oct 08, 2014, 11:24 AM

tracOwner

yoshito

tracProject

ICU4J

tracReporter

Bernhard Fey <bernhard.fey@edeee27d493b90c0

tracResolution

fixed

tracReviewer

scott_russell

tracStatus

closed

Components

Fix versions

Priority

assess