Fighting Old JIRA Issues

This is a page for fighting old JIRA issues, any value-add are welcome:)

Guideline

Process

  1. Verify all these old issues to find out whether it's still an issue with the latest code.
  2. Post a comment if it is no longer an issue.
  3. If it is still an issue:
    • Post a patch for those without patch till now if possible.
    • For those already have patches, verify the reason why it was ignored, and then
      • Enrich testcase if caused by lack of test.
      • Supply another patch if the patch is out of date.
      • Add comments to support it if the patch is ok.

Volunteers

Tony Wu is in JIRA 1116 1114 1103 1082 985 953 882

Spark Shen is in JIRA 1367 866 855 839 780 944 1244

Issue List

JIRA ISSUE

DESCRIPTION

https://issues.apache.org/jira/browse/HARMONY-1375

[classlib][net]Refine native code interface of setSocketOption

https://issues.apache.org/jira/browse/HARMONY-1370

[classlib][luni] HttpsURLConnection enhancement allowing work over HTTP proxy server

https://issues.apache.org/jira/browse/HARMONY-1367

[classlib][util] unexpected ClassCastException for Collections.binarySearch(..)

https://issues.apache.org/jira/browse/HARMONY-1366

[classlib][text] Bidi(AttributedCharacterIterator) throws ArrayIndexOutOfBoundsException on RI and works OK on Harmony

https://issues.apache.org/jira/browse/HARMONY-1360

[classlib][nio charset] Charset.forName() returns different value vs Charset.availableCharsets()

https://issues.apache.org/jira/browse/HARMONY-1353

[classlib][text] unexpected ParseException for new RuleBasedCollator("'n'")

https://issues.apache.org/jira/browse/HARMONY-1352

[classlib][text] unexpected IllegalArgumentException for RuleBasedCollator.getCollationElementIterator((String)null)

https://issues.apache.org/jira/browse/HARMONY-1351

[classlib][text] compatibility: NumberFormat.getCurrency() returns string on RI and null on Harmony for incorrect locale

https://issues.apache.org/jira/browse/HARMONY-1346

[classlib][net] no URISyntaxException for URI(null, ":2:3:4:5:6:7:8", "/", null)

https://issues.apache.org/jira/browse/HARMONY-1284

[classlib][lang-management] MemoryUsage.from(CompositeData) allows invalid "init" values

https://issues.apache.org/jira/browse/HARMONY-1248

[classlib][math] exception compatibility BigDecimal.valueOf(0L, -22).shortValueExact()

https://issues.apache.org/jira/browse/HARMONY-1244

[classlib][text] AttributedString.addAttribute(null, ...) throws nothing while RI throws NPE

https://issues.apache.org/jira/browse/HARMONY-1194

[classlib][nio] unexpected "Memory Spy! Fixed attempt to free memory that was not allocated PlatformAddress[xxx]" messages

https://issues.apache.org/jira/browse/HARMONY-1187

[classlib][text] unexpected MissingResourceException for new DecimalFormat("#######0.0000")

https://issues.apache.org/jira/browse/HARMONY-1175

[classlib][io] BufferedWriter.write() exception behavior differ from RI

https://issues.apache.org/jira/browse/HARMONY-1171

[classlib][jndi] no InvalidNameException for CompoundName.addAll()

https://issues.apache.org/jira/browse/HARMONY-1158

[classlib][luni]Compatibility: java.net.URL new URL("ss", null, -3, null) throws MalformedURLException while RI throws NPE

https://issues.apache.org/jira/browse/HARMONY-1147

[classlib][kernel] Harmony+j9 throws NPE while Harmony+drlvm and RI throws IndexOutOfBoundsException for SecureClassLoader.defineClass()

https://issues.apache.org/jira/browse/HARMONY-1130

[classlib][net] compatibility: method URLStreamHandler().parseURL() throws SecurityException on RI and works silently on Harmony.

https://issues.apache.org/jira/browse/HARMONY-1127

[classlib][net] compatibility: Harmony constructor URI(String * 5) throws URISyntaxExceptionwhile RI does not

https://issues.apache.org/jira/browse/HARMONY-1126

[classlib][net] unexpected URISyntaxException for URI.parseServerAuthority()

https://issues.apache.org/jira/browse/HARMONY-1117

[classlib][net] Harmony implementation of SocketImpl.getFileDescriptor() return real object, but RI return null

https://issues.apache.org/jira/browse/HARMONY-1116

[classlib][text] Bidi.getLength() result differs from RI when flag > 61

https://issues.apache.org/jira/browse/HARMONY-1111

[classlib][lang] unexpected IllegalArgumentException for String(byte[], int, int, String)

https://issues.apache.org/jira/browse/HARMONY-1110

[classlib][text] ChoiceFormat(String) pattern parser differs from RI

https://issues.apache.org/jira/browse/HARMONY-1107

[classlib][io] compatibility: different exception order for FileInputStream("log").read(null, -1, 1)

https://issues.apache.org/jira/browse/HARMONY-1106

[classlib][io] java.io.SequenceInputStream(InputStream, null) throws unexpected NPE

https://issues.apache.org/jira/browse/HARMONY-1103

[classlib][io] compatibility: different checks order for DataInputStream(null).readFully(byte[], int, int)

https://issues.apache.org/jira/browse/HARMONY-1082

[classlib][io]compatibility:java.io.BufferedOutputStream.write(byte[], int, int) throws ArrayIndexOutOfBoundsException while RI throws NullPointerException

https://issues.apache.org/jira/browse/HARMONY-1047

[classlib][math]exception compatibility: new BigInteger(Integer.MAX_VALUE, (Random)null)

https://issues.apache.org/jira/browse/HARMONY-996

Difference in behaviour of java.util.Date(int year, int month, int date) with large negative third parameter

https://issues.apache.org/jira/browse/HARMONY-988

Formatting doubles: different behaviour with RI

https://issues.apache.org/jira/browse/HARMONY-985

[classlib][luni] bug-to-bug compatibility java.util.Formatter.Formatter(Appendable a)

https://issues.apache.org/jira/browse/HARMONY-982

Portlib should be extended to support NIO's mmap funtions

https://issues.apache.org/jira/browse/HARMONY-944

[classlib][text] java.text.BreakIterator.getInt(byte[], Integer.MAX_VALUE) does not throw ArrayIndexOutOfBoundsException

https://issues.apache.org/jira/browse/HARMONY-938

[classlib][text] compatibility: Harmony Collator.getDecomposition() returns 0 whie RI returns 1

https://issues.apache.org/jira/browse/HARMONY-937

[classlib][text] compatibility: java.text.Collator.compare(null,null) returns true while RI throws NPE

https://issues.apache.org/jira/browse/HARMONY-922

[classlib][text] unexpected NPE for MessageFormat("rr", null).hashCode()

https://issues.apache.org/jira/browse/HARMONY-921

[classlib][lang] compatibility: ClassLoader.getSystemResource(null) returns null while RI throws NPE

https://issues.apache.org/jira/browse/HARMONY-916

[classlib][lang] unexpected IllegalCharsetNameException for new String(bye[], int, int, "zzz\\");

https://issues.apache.org/jira/browse/HARMONY-895

[classlib][net] java.net.URL((URL) null, String, handler) does not throw MalformedURLException for unknown protocol

https://issues.apache.org/jira/browse/HARMONY-894

[classlib][net] java.net.DatagramSocket(null).getBroadcast() returns different values for harmony vs RI

https://issues.apache.org/jira/browse/HARMONY-890

[classlib][net] compatibility: incorrect default port number for new DatagramPacket(new byte[], int)

https://issues.apache.org/jira/browse/HARMONY-877

[classlib][lang] compatibility: Harmony method ClassLoader.getResource(null) returns null while RI throws NPE

https://issues.apache.org/jira/browse/HARMONY-875

[classlib][lang]API+j9 unexpected ClassFormatError for the method ClassLoader.defineClass(name, array, 4, -2);

https://issues.apache.org/jira/browse/HARMONY-866

Arrays.binarySearch should always return -1on empty array

https://issues.apache.org/jira/browse/HARMONY-858

Exception throwing compatibility: java.util.Scanner.nextInt(int radix)

https://issues.apache.org/jira/browse/HARMONY-855

Some java.uiti.Collections methods do not throw unspecified NPE while RI does

https://issues.apache.org/jira/browse/HARMONY-839

WeakHashMap(Map arg) throws NPE if arg.entrySet() returns null

https://issues.apache.org/jira/browse/HARMONY-833

[classlib][lang] unexpected IllegalCharsetNameException for ByteArrayOutputStream().toString("~]?-??-?");

https://issues.apache.org/jira/browse/HARMONY-829

[classlib][io] unexpected result for java.io.File.compareTo(File) method

https://issues.apache.org/jira/browse/HARMONY-780

[classlib][util] unexpected ClassCastException for java.util.TreeMap.put(Object, new Object)

https://issues.apache.org/jira/browse/HARMONY-747

java.lang.Doulbe.parseDouble(String) does not support Hex number

https://issues.apache.org/jira/browse/HARMONY-693

[classlib][logging] unexpected NPE for XMLFormatter().getHead((Handler) null)

https://issues.apache.org/jira/browse/HARMONY-690

[classlib][lang]Compatibility: Harmony Runtime.removeShutdownHook(null) does not throw unspecified NPE while RI does.

https://issues.apache.org/jira/browse/HARMONY-654

[classlib] hytty_printf("%d", -1) outputs "01"

https://issues.apache.org/jira/browse/HARMONY-617

[classlib][luni] HttpURLConnection does not support persistent connections

https://issues.apache.org/jira/browse/HARMONY-535

java.io.File doesn't properly work with the file names which have non-latin chars

https://issues.apache.org/jira/browse/HARMONY-517

File.listFiles returns empty list but should return null

https://issues.apache.org/jira/browse/HARMONY-424

NullPointerException in java.text.DecimalFormat.getCurrency()

https://issues.apache.org/jira/browse/HARMONY-329

Endless loop when using Double.parseDouble(String) with certain types of value

https://issues.apache.org/jira/browse/HARMONY-308

java.nio.charset.Charset.encode(CharBuffer) returns bytes in a different order in Harmony and RI for the UTF-16 charset

https://issues.apache.org/jira/browse/HARMONY-248

Using java.io.File.deleteOnExit() and System.runFinalizersOnExit(true) in the same application causes crash on exit.

https://issues.apache.org/jira/browse/HARMONY-217

java.text.BreakIterator.following() incorrectly calculates the following boundary

https://issues.apache.org/jira/browse/HARMONY-139

ICU - characters 0x0384 and 0xB7 are unmapped in ICU implementation of ISO8859-7

https://issues.apache.org/jira/browse/HARMONY-100

text/BidiWrapper issue?

https://issues.apache.org/jira/browse/HARMONY-64

java.nio.charset.Charset.forName(String name) does not throw UnsupportedCharsetException if valid name starts with "x-"

https://issues.apache.org/jira/browse/HARMONY-62

java.text.BreakIterator.getSentenceInstance().next() treats '\n' as the end of the sentence

https://issues.apache.org/jira/browse/HARMONY-32

java.text.Collator.setDecomposition(FULL_DECOMPOSITION) throws IllegalArgumentException