[ http://issues.apache.org/jira/browse/HADOOP-467?page=comments#action_12430127 ] Owen O'Malley commented on HADOOP-467: --------------------------------------
-1 I think that we should just bite the bullet and move to 1.5's generics, enums, and richer library. I do wish that Sun would open source Java so that more platforms could have current jdks. > Building test cases broken on java-1.4, TextTest.java has string creation bug. > ------------------------------------------------------------------------------ > > Key: HADOOP-467 > URL: http://issues.apache.org/jira/browse/HADOOP-467 > Project: Hadoop > Issue Type: Bug > Affects Versions: 0.5.0 > Environment: Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed > mode) > rajaram.desktop% Java(TM) 2 Runtime Environment, Standard Edition (build > 1.4.2_10-b03) > RHEL3 > Reporter: woyg > Priority: Minor > Attachments: testCasesNotCompilableOnjava1.4.patch > > > *Test Files > --- src/test/org/apache/hadoop/io/TestText.java (revision 432549) > --- src/test/org/apache/hadoop/mapred/MiniMRCluster.java (revision > 432549) > --- src/test/org/apache/hadoop/mapred/TestSequenceFileInputFilter.java > (revision 432549) > --- src/test/org/apache/hadoop/dfs/TestDFSShellGenericOptions.java > (revision 432549) > Broken on java-1.4 > and a bug in static method getTestString(int len). > This function generates a character with code point equal or smaller then > 0xFFFF, and converts this into array of chars of size 2(which should be one) > and appened it buffer. > So resulting into a a null character tobe inserted into string after a no > null character. > ---- > Find Patch attached. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira