summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo and access to VMSecureRandom.Andrew John Hughes2009-02-031-63/+2
| | | | | | | | | | | | | | | | 2009-02-03 Andrew John Hughes <ahughes@redhat.com> PR classpath/38417: * gnu/java/security/jce/prng/SecureRandomAdapter.java: Remove unneeded import. * gnu/javax/crypto/jce/prng/FortunaImpl.java: Fix typo. * java/security/SecureRandom.java: Remove duplicate use of VMSecureRandom, call SecureRandomAdapter instead. * vm/reference/gnu/java/security/jce/prng/VMSecureRandom.java: Moved from java/security so SecureRandomAdapter can access it.
* Use an IntegerInstance of NumberFormat for formatting integers.Andrew John Hughes2009-01-021-6/+1
| | | | | | | | 2009-01-02 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/MessageFormat.java: (setLocale(Locale)): Integer format should use NumberFormat.getIntegerInstance.
* Emulate Vector.setSize() with ArrayList.Andrew John Hughes2008-12-311-1/+6
| | | | | | | | 2008-12-31 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/MessageFormat.java: (parse(String,ParsePosition)): Emulate behaviour of Vector's setSize() which was being implicitly relied on.
* Remove empty line.Andrew John Hughes2008-12-311-1/+0
| | | | | | | | 2008-12-31 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/SimpleDateFormat.java: Remove superfluous empty line introduced in last commit.
* Cleanup of java.text classes.Andrew John Hughes2008-12-314-80/+82
| | | | | | | | | | | | | | | | | | | | | | | | 2008-12-31 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/MessageFormat.java: Convert variables to use generic types, use CPStringBuilder in place of StringBuilder. (Field()): Suppress warning due to only being used by deserialization. (scanFormat(String,int,CPStringBuilder,List,Locale)): Use ArrayList instead of Vector as no synchronisation needed. (parse(String,ParsePosition)): Likewise. * java/text/NumberFormat.java: (Field()): Suppress warning due to only being used by deserialization. * java/text/RuleBasedCollator.java: Convert variables to use generic types. (CollationElement): Make fields final. (CollationSorter): Likewise. (CollationSorter(int,String,int,boolean)): New constructor. * java/text/SimpleDateFormat.java, Convert variables to use generic types. (applyPattern(String)): Clear list rather than creating a new instance.
* 2008-12-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-12-311-3/+4
| | | | | | | * java/text/SimpleDateFormat.java: (standardChars): Use standard characters from CLDR. (RFC822_TIMEZONE_FIELD): Fixed to match new standard characters.
* Add missing 1.6 String methods.Andrew John Hughes2008-12-231-24/+99
| | | | | | | | | | | | | 2008-12-22 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/lang/String.java: (byte[],int,int,String): Call new Charset method. (stringToCharset(String)): Private method added to handle exception conversion. (byte[],int,int,Charset): Implemented. (byte[], Charset): Likewise. (getBytes(String)): Call new Charset method. (getBytes(Charset)): Implemented.
* Backport cleanups from the GCJ merge.Andrew John Hughes2008-09-3019-78/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-09-28 Andrew John Hughes <gnu_andrew@member.fsf.org> * configure.ac: Always check for JAVA prior to ANTLR check. * java/lang/ThreadLocal.java, * java/lang/ThreadLocalMap.java: Rename notFound back to sentinel to avoid potential issues with use of the old name. Cleanup formatting. * java/nio/Buffer.java, * java/nio/ByteBuffer.java, * java/nio/ByteBufferImpl.java, * java/nio/CharBuffer.java, * java/nio/CharViewBufferImpl.java, * java/nio/DirectByteBufferImpl.java, * java/nio/DoubleBuffer.java, * java/nio/DoubleBufferImpl.java, * java/nio/FloatBuffer.java, * java/nio/FloatBufferImpl.java, * java/nio/IntBuffer.java, * java/nio/LongBuffer.java, * java/nio/LongBufferImpl.java, * java/nio/MappedByteBuffer.java, * java/nio/ShortBuffer.java, * java/nio/ShortBufferImpl.java, * java/nio/ShortViewBufferImpl.java: Cleanup formatting.
* Reinstate use of EnvironmentMap.Andrew John Hughes2008-09-171-3/+3
| | | | | | | | 2008-09-16 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/lang/System.java (getenv): Reinstate use of EnvironmentMap as opposed to raw HashMap.
* 2008-09-16 Mario Torre <neugens@aicas.com>Mario Torre2008-09-161-11/+19
| | | | | * java/lang/System.java (getenv): Fix env entries of the form key=value=value=value not parsed correctly.
* Optimise storage of ThreadLocals.Andrew John Hughes2008-09-104-45/+360
| | | | | | | | | | | | 2007-08-23 Daniel Frampton <zyridium@zyridium.net> * AUTHORS: Added. * java/lang/InheritableThreadLocal.java, * java/lang/Thread.java, * java/lang/ThreadLocal.java: Modified to use java.lang.ThreadLocalMap. * java/lang/ThreadLocalMap.java: New cheaper ThreadLocal-specific WeakHashMap.
* ZipEntry tweaks to improve performance.Andrew John Hughes2008-09-101-70/+96
| | | | | | | | | | | | | | | | | 2008-02-07 Ian Rogers <ian.rogers@manchester.ac.uk> * java/util/zip/ZipEntry.java: Use byte fields instead of integer fields, store the time as well as the DOS time and don't retain a global Calendar instance. (setDOSTime(int)): Set KNOWN_DOSTIME instead of KNOWN_TIME, and unset KNOWN_TIME. (getDOSTime()): Compute DOS time from UNIX time only when needed. (clone()): Provide cloning via the ZipEntry constructor where possible. (setTime(long)): Don't compute DOS time at this point. (getCalendar()): Removed.
* Fix problem when using \u00a4 in number format patterns.Robert Schuster2008-09-031-3/+3
| | | | | | | | 2008-09-04 Robert Schuster <robertschuster@fsfe.org> * java/text/DecimalFormat.java: (scanFix): Use 'i + 1' when looking at following character. (scanNegativePattern): Dito.
* Reset the append position when resetting a Matcher instance.Andrew John Hughes2008-08-211-0/+1
| | | | | | | | | 2008-08-23 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/regex/Matcher.java: (reset()): Reset append position so we don't try and append to the end of the old input.
* Fix setCurrency in DecimalFormat.Andrew John Hughes2008-08-173-5/+28
| | | | | | | | | | | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/31895: * java/text/DecimalFormat.java: (setCurrency(Currency)): Update prefixes and suffixes when currency changes. * java/text/DecimalFormatSymbols.java: (DecimalFormatSymbols(Locale)): Set locale earlier so it can be used by setCurrency(Currency). (setCurrency(Currency)): Set the symbol correctly using the locale of the instance. * java/util/Currency.java: Throw error instead of just printing a message.
* Add initial implementation of java.util.Scanner.Andrew John Hughes2008-08-161-0/+2223
| | | | | | | | | | | | | | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> * AUTHORS: Added Laszlo. 2008-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/30436: * java/util/Scanner.java: Fix package to be java.util and correct indentation. 2007-07-25 Laszlo Andras Hernadi <e0327023@student.tuwien.ac.at> PR classpath/30436: * java/util/Scanner.java: Initial implementation.
* Implement java.util.regex.Matcher#toMatchResult()Andrew John Hughes2008-08-161-1/+17
| | | | | | | 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/regex/Matcher.java: (toMatchResult()): Implemented.
* Regenerate locale data without use of the 'v' pattern character.Andrew John Hughes2008-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-12 Andrew John Hughes <gnu_andrew@member.fsf.org> * resource/gnu/java/locale/LocaleInformation.properties, * resource/gnu/java/locale/LocaleInformation_aa.properties, * resource/gnu/java/locale/LocaleInformation_af.properties, * resource/gnu/java/locale/LocaleInformation_af_NA.properties, * resource/gnu/java/locale/LocaleInformation_ak.properties, * resource/gnu/java/locale/LocaleInformation_am.properties, * resource/gnu/java/locale/LocaleInformation_ar.properties, * resource/gnu/java/locale/LocaleInformation_as.properties, * resource/gnu/java/locale/LocaleInformation_az.properties, * resource/gnu/java/locale/LocaleInformation_be.properties, * resource/gnu/java/locale/LocaleInformation_bg.properties, * resource/gnu/java/locale/LocaleInformation_bn.properties, * resource/gnu/java/locale/LocaleInformation_bs.properties, * resource/gnu/java/locale/LocaleInformation_byn.properties, * resource/gnu/java/locale/LocaleInformation_ca.properties, * resource/gnu/java/locale/LocaleInformation_cch.properties, * resource/gnu/java/locale/LocaleInformation_cop.properties, * resource/gnu/java/locale/LocaleInformation_cs.properties, * resource/gnu/java/locale/LocaleInformation_cy.properties, * resource/gnu/java/locale/LocaleInformation_da.properties, * resource/gnu/java/locale/LocaleInformation_de.properties, * resource/gnu/java/locale/LocaleInformation_de_BE.properties, * resource/gnu/java/locale/LocaleInformation_dv.properties, * resource/gnu/java/locale/LocaleInformation_dz.properties, * resource/gnu/java/locale/LocaleInformation_ee.properties, * resource/gnu/java/locale/LocaleInformation_el.properties, * resource/gnu/java/locale/LocaleInformation_en.properties, * resource/gnu/java/locale/LocaleInformation_en_BE.properties, * resource/gnu/java/locale/LocaleInformation_en_BZ.properties, * resource/gnu/java/locale/LocaleInformation_en_GB.properties, * resource/gnu/java/locale/LocaleInformation_en_IE.properties, * resource/gnu/java/locale/LocaleInformation_en_MT.properties, * resource/gnu/java/locale/LocaleInformation_en_SG.properties, * resource/gnu/java/locale/LocaleInformation_eo.properties, * resource/gnu/java/locale/LocaleInformation_es.properties, * resource/gnu/java/locale/LocaleInformation_es_AR.properties, * resource/gnu/java/locale/LocaleInformation_es_CL.properties, * resource/gnu/java/locale/LocaleInformation_es_CO.properties, * resource/gnu/java/locale/LocaleInformation_es_EC.properties, * resource/gnu/java/locale/LocaleInformation_es_PE.properties, * resource/gnu/java/locale/LocaleInformation_es_US.properties, * resource/gnu/java/locale/LocaleInformation_et.properties, * resource/gnu/java/locale/LocaleInformation_eu.properties, * resource/gnu/java/locale/LocaleInformation_fa.properties, * resource/gnu/java/locale/LocaleInformation_fi.properties, * resource/gnu/java/locale/LocaleInformation_fil.properties, * resource/gnu/java/locale/LocaleInformation_fo.properties, * resource/gnu/java/locale/LocaleInformation_fr.properties, * resource/gnu/java/locale/LocaleInformation_fr_BE.properties, * resource/gnu/java/locale/LocaleInformation_fr_CA.properties, * resource/gnu/java/locale/LocaleInformation_fr_CH.properties, * resource/gnu/java/locale/LocaleInformation_fur.properties, * resource/gnu/java/locale/LocaleInformation_ga.properties, * resource/gnu/java/locale/LocaleInformation_gaa.properties, * resource/gnu/java/locale/LocaleInformation_gez.properties, * resource/gnu/java/locale/LocaleInformation_gl.properties, * resource/gnu/java/locale/LocaleInformation_gu.properties, * resource/gnu/java/locale/LocaleInformation_gv.properties, * resource/gnu/java/locale/LocaleInformation_ha.properties, * resource/gnu/java/locale/LocaleInformation_haw.properties, * resource/gnu/java/locale/LocaleInformation_he.properties, * resource/gnu/java/locale/LocaleInformation_hi.properties, * resource/gnu/java/locale/LocaleInformation_hr.properties, * resource/gnu/java/locale/LocaleInformation_hu.properties, * resource/gnu/java/locale/LocaleInformation_hy.properties, * resource/gnu/java/locale/LocaleInformation_ia.properties, * resource/gnu/java/locale/LocaleInformation_id.properties, * resource/gnu/java/locale/LocaleInformation_ig.properties, * resource/gnu/java/locale/LocaleInformation_is.properties, * resource/gnu/java/locale/LocaleInformation_it.properties, * resource/gnu/java/locale/LocaleInformation_it_CH.properties, * resource/gnu/java/locale/LocaleInformation_iu.properties, * resource/gnu/java/locale/LocaleInformation_ja.properties, * resource/gnu/java/locale/LocaleInformation_ka.properties, * resource/gnu/java/locale/LocaleInformation_kaj.properties, * resource/gnu/java/locale/LocaleInformation_kam.properties, * resource/gnu/java/locale/LocaleInformation_kcg.properties, * resource/gnu/java/locale/LocaleInformation_kfo.properties, * resource/gnu/java/locale/LocaleInformation_kk.properties, * resource/gnu/java/locale/LocaleInformation_kl.properties, * resource/gnu/java/locale/LocaleInformation_km.properties, * resource/gnu/java/locale/LocaleInformation_kn.properties, * resource/gnu/java/locale/LocaleInformation_ko.properties, * resource/gnu/java/locale/LocaleInformation_kok.properties, * resource/gnu/java/locale/LocaleInformation_kpe.properties, * resource/gnu/java/locale/LocaleInformation_kw.properties, * resource/gnu/java/locale/LocaleInformation_ky.properties, * resource/gnu/java/locale/LocaleInformation_ln.properties, * resource/gnu/java/locale/LocaleInformation_lo.properties, * resource/gnu/java/locale/LocaleInformation_lt.properties, * resource/gnu/java/locale/LocaleInformation_lv.properties, * resource/gnu/java/locale/LocaleInformation_mk.properties, * resource/gnu/java/locale/LocaleInformation_ml.properties, * resource/gnu/java/locale/LocaleInformation_mn.properties, * resource/gnu/java/locale/LocaleInformation_mr.properties, * resource/gnu/java/locale/LocaleInformation_ms.properties, * resource/gnu/java/locale/LocaleInformation_ms_BN.properties, * resource/gnu/java/locale/LocaleInformation_mt.properties, * resource/gnu/java/locale/LocaleInformation_my.properties, * resource/gnu/java/locale/LocaleInformation_nb.properties, * resource/gnu/java/locale/LocaleInformation_ne.properties, * resource/gnu/java/locale/LocaleInformation_nl.properties, * resource/gnu/java/locale/LocaleInformation_nn.properties, * resource/gnu/java/locale/LocaleInformation_nr.properties, * resource/gnu/java/locale/LocaleInformation_nso.properties, * resource/gnu/java/locale/LocaleInformation_ny.properties, * resource/gnu/java/locale/LocaleInformation_om.properties, * resource/gnu/java/locale/LocaleInformation_or.properties, * resource/gnu/java/locale/LocaleInformation_pa.properties, * resource/gnu/java/locale/LocaleInformation_pl.properties, * resource/gnu/java/locale/LocaleInformation_ps.properties, * resource/gnu/java/locale/LocaleInformation_pt.properties, * resource/gnu/java/locale/LocaleInformation_pt_PT.properties, * resource/gnu/java/locale/LocaleInformation_ro.properties, * resource/gnu/java/locale/LocaleInformation_ru.properties, * resource/gnu/java/locale/LocaleInformation_ru_UA.properties, * resource/gnu/java/locale/LocaleInformation_rw.properties, * resource/gnu/java/locale/LocaleInformation_sa.properties, * resource/gnu/java/locale/LocaleInformation_se.properties, * resource/gnu/java/locale/LocaleInformation_si.properties, * resource/gnu/java/locale/LocaleInformation_sid.properties, * resource/gnu/java/locale/LocaleInformation_sk.properties, * resource/gnu/java/locale/LocaleInformation_sl.properties, * resource/gnu/java/locale/LocaleInformation_so.properties, * resource/gnu/java/locale/LocaleInformation_sq.properties, * resource/gnu/java/locale/LocaleInformation_sr.properties, * resource/gnu/java/locale/LocaleInformation_sr_BA_Cyrl.properties, * resource/gnu/java/locale/LocaleInformation_sr_ME_Latn.properties, * resource/gnu/java/locale/LocaleInformation_ss.properties, * resource/gnu/java/locale/LocaleInformation_st.properties, * resource/gnu/java/locale/LocaleInformation_sv.properties, * resource/gnu/java/locale/LocaleInformation_sw.properties, * resource/gnu/java/locale/LocaleInformation_syr.properties, * resource/gnu/java/locale/LocaleInformation_ta.properties, * resource/gnu/java/locale/LocaleInformation_te.properties, * resource/gnu/java/locale/LocaleInformation_tg.properties, * resource/gnu/java/locale/LocaleInformation_th.properties, * resource/gnu/java/locale/LocaleInformation_ti.properties, * resource/gnu/java/locale/LocaleInformation_tig.properties, * resource/gnu/java/locale/LocaleInformation_tn.properties, * resource/gnu/java/locale/LocaleInformation_to.properties, * resource/gnu/java/locale/LocaleInformation_tr.properties, * resource/gnu/java/locale/LocaleInformation_trv.properties, * resource/gnu/java/locale/LocaleInformation_ts.properties, * resource/gnu/java/locale/LocaleInformation_tt.properties, * resource/gnu/java/locale/LocaleInformation_ug.properties, * resource/gnu/java/locale/LocaleInformation_uk.properties, * resource/gnu/java/locale/LocaleInformation_ur.properties, * resource/gnu/java/locale/LocaleInformation_uz.properties, * resource/gnu/java/locale/LocaleInformation_uz_Arab.properties, * resource/gnu/java/locale/LocaleInformation_ve.properties, * resource/gnu/java/locale/LocaleInformation_vi.properties, * resource/gnu/java/locale/LocaleInformation_wal.properties, * resource/gnu/java/locale/LocaleInformation_wo.properties, * resource/gnu/java/locale/LocaleInformation_xh.properties, * resource/gnu/java/locale/LocaleInformation_yo.properties, * resource/gnu/java/locale/LocaleInformation_zh.properties, * resource/gnu/java/locale/LocaleInformation_zh_Hant.properties, * resource/gnu/java/locale/LocaleInformation_zu.properties: Correct use of 'v' with 'z' in locale data as Java does not support this new pattern character.
* Add missing standard zone names.Andrew John Hughes2008-07-071-1/+26
| | | | | | | | 2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/DateFormatSymbols.java: (getZoneStrings(ResourceBundle,Locale)): Handle missing standard zone names.
* Add fallback to parent locales.Andrew John Hughes2008-07-071-30/+35
| | | | | | | | 2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/DateFormatSymbols.java: (getZoneStrings(ResourceBundle,Locale)): Fallback on to parent locales.
* Support translating metazone names to standard zone names.Andrew John Hughes2008-07-071-2/+47
| | | | | | | | | | | | 2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/DateFormatSymbols.java: Use metazones to convert metazone names to standard Continent/City form. Also add hack to include GMT as a short name. * resource/java/text/metazones.properties: New properties file for mapping metazones to standard zone names.
* 2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-07-071-1/+12
| | | | | | * java/text/DateFormatSymbols.java: (getZoneStrings(ResourceBundle,Locale)): Pad arrays smaller than 5 with empty strings.
* Use weeks.properties instead of bundles for week data.Andrew John Hughes2008-07-071-3/+29
| | | | | | | | | | | | 2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Calendar.java: (Calendar(TimeZone,Locale)): Use weeks.properties instead of LocaleInformation bundles. * resource/java/util/iso4217.properties: Updated with new supplementgen header. * resource/java/util/weeks.properties: New resource file.
* Implement cache clearing for java.util.ResourceBundleAndrew John Hughes2008-07-061-3/+54
| | | | | | | | | 2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/ResourceBundle.java, (BundleKey.toString()): Implemented. (clearCache()): Implemented. (clearCache(ClassLoader)): Implemented.
* 2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-07-061-3/+4
| | | | | * java/util/ResourceBundle.java: Fix generic warnings.
* Add support for non-ISO-8859-1 property files.Andrew John Hughes2008-07-062-7/+42
| | | | | | | | | | 2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Properties.java: (load(Reader)): Implemented. (load(InputStream)): Fixed to use load(Reader). * java/util/PropertyResourceBundle.java: (PropertyResourceBundle(Reader)): Implemented.
* 2008-07-01 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2008-07-011-1/+8
| | | | | | * java/lang/Integer.java (signum): Implemented properly as described in Hacker's Delight Section 2-7, plus Andrew Haley's explanation.
* 2008-07-01 Andrew Haley <aph@redhat.com>Andrew Haley2008-07-011-1/+7
| | | | * java/lang/Long.java: Comment change only.
* 2008-07-01 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2008-07-011-1/+2
| | | | | * java/lang/Long.java (signum): Implemented properly as described in Hacker's Delight Section 2-7.
* 2008-06-23 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-06-234-19/+22
| | | | | | | | | | | | | | | | | | | | | | * gnu/xml/xpath/CountFunction.java, * gnu/xml/xpath/EqualityExpr.java, * gnu/xml/xpath/Expr.java, * gnu/xml/xpath/IdFunction.java, * gnu/xml/xpath/LocalNameFunction.java, * gnu/xml/xpath/NameFunction.java, * gnu/xml/xpath/NamespaceUriFunction.java, * gnu/xml/xpath/ParenthesizedExpr.java, * gnu/xml/xpath/Steps.java, * gnu/xml/xpath/SumFunction.java, * gnu/xml/xpath/UnionExpr.java, * gnu/xml/xpath/XPathParser.java, * gnu/xml/xpath/XPathParser.y, * java/lang/Enum.java, * java/lang/reflect/Constructor.java, * java/lang/reflect/Field.java, * java/lang/reflect/Method.java: Reduce scope of unchecked warning suppression, and remove unneeded uses.
* 2008-06-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-06-221-54/+55
| | | | | | | | | | | | | | | | | | | PR classpath/28664: * gnu/java/math/GMP.java: Renamed from VMBigInteger.java and fixed to use GMP instances directly. * include/Makefile.am: Generate GMP.h not VMBigInteger.h. * java/math/BigInteger.java: Send instances of GMP in calls to GMP rather than the wrapping BigInteger class. * native/jni/java-math/Makefile.am: Fix filename of source code file. * native/jni/java-math/gnu_java_math_GMP.c: Renamed from java_math_VMBigInteger.c. * native/jni/java-math/java_math_VMBigInteger.c, * vm/reference/java/math/VMBigInteger.java: Removed.
* 2008-06-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-06-061-1/+1
| | | | | * java/lang/Integer.java: (parseInt(String, int, boolean)): Disallow "-+".
* 2008-05-29 Mario Torre <neugens@aicas.com>Mario Torre2008-05-292-13/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): now set directly the foreground color the application wants to use to draw. On null, behave like OpenJDK, drawing black. (renderScanline): fixed NPE, paintContext never initialized. Correctely retrieve destination raster (getColor): Return the correct type. (static initializer): HashMap now typed. (background): now defaults to black and not null. (getPaintContext): new method. Initialize lazily the PaintContext. (foreground): new field. (isForegroundColorNull): likewise. (getDeviceBounds): made abstract. * gnu/java/awt/java2d/RasterGraphics.java (getDeviceBounds): new method. * gnu/java/awt/java2d/ScanlineConverter.java (renderShape): pass correct value of Y to doScanline. * gnu/java/awt/peer/x/GLGraphics.java (getDeviceBounds): new method. (setBackground): synch with new Escher 2.0 API. * gnu/java/awt/peer/x/XGraphicsConfiguration.java (getDefaultTransform): implemented. (getBounds): new method. * java/awt/AlphaComposite.java (derive(int) and derive(float)): new methods. * java/awt/image/WritableRaster.java (createWritableTranslatedChild): now call createWritableChild. (createWritableChild): reformatted.
* 2008-05-15 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2008-05-151-1/+47
| | | | | | | | | | | | | | | | | | * java/net/NetworkInterface.java: (isUp): New method. (isPointToPoint): Dito. (isLoopback): Dito. (supportsMulticast): Dito. * vm/reference/java/net/VMNetworkInterface.java: (isUp): New method. (isPointToPoint): Dito. (isLoopback): Dito. (supportsMulticast): Dito. * native/jni/java-net/java_net_VMNetworkInterface.c: (isUp): New method. (isPointToPoint): Dito. (isLoopback): Dito. (supportsMulticast): Dito.
* 2008-05-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-121-5/+8
| | | | | | | Reported by Nicolas Geoffray <nicolas.geoffray@menlina.com> * java/lang/Integer.java: (parseInt(String,int,boolean)): Parse +x as x, not -x.
* 2008-05-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-121-7/+259
| | | | | | | | | | | | | | | | | | | | | | | * java/util/regex/Matcher.java: (regionStart): New variable. (regionEnd): Likewise. (transparentBounds): Likewise. (anchoringBounds): Likewise. (Matcher()): Initialise new variables. (find()): Alter to use new settings. (find(int)): Likewise. (lookingAt()): Likewise. (matches()): Likewise. (reset()): Reset region. (reset(CharSequence)): Documented. (toString()): Include new variables. (region(int,int)): Implemented. (regionStart()): Likewise. (regionEnd()): Likewise. (hasTransparentBounds()): Likewise. (useTransparentBounds(boolean)): Likewise. (hasAnchoringBounds()): Likewise. (useAnchoringBounds(boolean)): Likewise.
* 2008-05-07 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-071-4/+2
| | | | | | | | | | | | | Add generics to these classes. * gnu/java/util/regex/RETokenOneOf.java: Use an ArrayList and a Deque instead of a Vector and a Stack to remove unnecessary synchronisation. * gnu/java/util/regex/RETokenRepeated.java: Replace custom FindMatchControlStack class with a generic Deque. * java/util/regex/Pattern.java: Use a generic ArrayList instance.
* 2008-05-07 Mario Torre <neugens@aicas.com>Mario Torre2008-05-071-1/+1
| | | | | | | | | | | | | | | * gnu/java/awt/peer/x/XEventPump.java (handleEvent): xEvent.code is now masked to identify and react to syntetic events. Added UnmapNotify, DestroyNotify and ClientMessage to the list of event handled. * gnu/java/awt/peer/x/XFramePeer.java (getState): initial implementation. * gnu/java/awt/peer/x/XGraphics2D.java (setPaint): fix NPE, this is a workaround, the code have to be fixed in a better way. * gnu/java/awt/peer/x/XWindowPeer.java (getXwindow): new method to allow access to the underling xwindow. (standardSelect): add more events for notification. (XWindowPeer): call set_wm_delete_window to ask the WM to notify us when a delete event occur.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0612-23/+48
| | | | | | | | | | | | | | | | | PR classpath/21869 * java/util/AbstractCollection.java, * java/util/BitSet.java, * java/util/Collections.java, * java/util/Locale.java, * java/util/ResourceBundle.java, * java/util/TimeZone.java, * java/util/logging/FileHandler.java, * java/util/logging/Logger.java, * java/util/logging/SimpleFormatter.java, * java/util/logging/XMLFormatter.java, * java/util/prefs/AbstractPreferences.java, * java/util/regex/PatternSyntaxException.java: Swap use of StringBuffer for CPStringBuilder.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-067-18/+28
| | | | | | | | | | | | PR classpath/21869 * java/text/AttributedString.java, * java/text/ChoiceFormat.java, * java/text/CollationElementIterator.java, * java/text/Collator.java, * java/text/DecimalFormat.java, * java/text/MessageFormat.java, * java/text/RuleBasedCollator.java: Swap use of StringBuffer for CPStringBuilder.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0610-10/+26
| | | | | | | | | | | | | | | | | PR classpath/21869 * java/security/CodeSource.java, * java/security/MessageDigest.java, * java/security/Permission.java, * java/security/PermissionCollection.java, * java/security/ProtectionDomain.java, * java/security/cert/CertPath.java, * java/security/cert/PKIXBuilderParameters.java, * java/security/cert/PKIXCertPathBuilderResult.java, * java/security/cert/X509CRLSelector.java, * java/security/cert/X509CertSelector.java, * org/ietf/jgss/Oid.java, * org/omg/CORBA/portable/Delegate.java: Swap use of StringBuffer for CPStringBuilder.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0614-21/+46
| | | | | | | | | | | | | | | | | | | PR classpath/21869 * java/beans/Statement.java, * java/io/File.java, * java/io/StreamTokenizer.java, * java/lang/Throwable.java, * java/math/BigDecimal.java, * java/math/BigInteger.java, * java/net/Inet4Address.java, * java/net/Inet6Address.java, * java/net/NetworkInterface.java, * java/net/SocketPermission.java, * java/net/URLDecoder.java, * java/net/URLStreamHandler.java, * java/nio/channels/FileLock.java, * java/rmi/dgc/VMID.java: Swap use of StringBuffer for CPStringBuilder.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-0617-21/+49
| | | | | | | | | | | | | | | | | | | | | | PR classpath/21869 * java/awt/Component.java, * java/awt/Container.java, * java/awt/JobAttributes.java, * java/awt/event/ActionEvent.java, * java/awt/event/ComponentEvent.java, * java/awt/event/HierarchyEvent.java, * java/awt/event/InputEvent.java, * java/awt/event/InputMethodEvent.java, * java/awt/event/KeyEvent.java, * java/awt/event/MouseEvent.java, * java/awt/event/WindowEvent.java, * java/awt/font/TextLayout.java, * java/awt/image/BandedSampleModel.java, * java/awt/image/BufferedImage.java, * java/awt/image/MultiPixelPackedSampleModel.java, * java/awt/image/Raster.java, * java/awt/image/SinglePixelPackedSampleModel.java: Swap use of StringBuffer for CPStringBuilder.
* 2008-05-06 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-061-2/+2
| | | | | | | | PR classpath/35482 * java/lang/String.java: (toLowerCase()): Fix calculation of number of characters to copy. (toLowerCaseTurkish()): Likewise.
* 2008-05-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-05-051-0/+2
| | | | | | | | | | | | | | PR classpath/21869 * gnu/java/lang/CPStringBuilder.java: (CPStringBuilder(StringBuffer)): Added. (CPStringBuulder(StringBuilder)): Likewise. * gnu/java/text/AttributedFormatBuffer.java: Swap use of StringBuffer for CPStringBuilder, and make fields final. * gnu/java/text/StringFormatBuffer.java: Make fields final. * java/text/SimpleDateFormat.java: Add thread safety warning.
* 2008-04-26 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-04-262-6/+34
| | | | | | | | | | | * java/util/ArrayList (raiseBoundsError): new method to raise bound exceptions in uncommon case. (checkBoundInclusive): use raiseBoundsError. (checkBoundExclusive): likewise. * java/util/ArrayList (raiseBoundsError): new method to raise bound exceptions in uncommon case. (checkBoundInclusive): use raiseBoundsError. (checkBoundExclusive): likewise.
* 2008-04-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-04-211-1/+1
| | | | | | * java/lang/Byte.java: Use int instead of short as a loop counter for efficiency.
* 2008-04-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-04-211-2/+2
| | | | | | * java/lang/Byte.java: (static): Use a short as the loop counter, not a byte as this can't exceed MAX_VALUE.
* 2008-04-18 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-04-1825-147/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/nio/Buffer.java (cap): make field private and final. (address): make field final. (Buffer): add address argument to package protected constructor thereby allowing it to be made final. * java/nio/ByteBuffer.java (backing_buffer): make field final. (array_offset): make field final. (ByteBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/ByteBufferImpl.java (readOnly): make field final. (ByteBufferImpl): modify call to super class constructor to pass backing_buffer and array_offset. * java/nio/CharBuffer.java (array_offset): make field final. (backing_buffer): make field final. (CharBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/CharBufferImpl.java (readOnly): make field final. (CharBufferImpl): modify call to super class constructor to pass backing_buffer and array_offset. (CharBufferImpl(CharBufferImpl)): likewise. * java/nio/CharSequenceBuffer.java (charSequence): make field final. (CharSequenceBuffer): modify call to super class constructor, allowing fields to be made final. (duplicate): use capacity call rather than cap, to allow better encapsulation. * java/nio/CharViewBufferImpl.java (offset): make field final. (bb): likewise. (readOnly): likewise. (endian): likewise. (CharViewBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/DirectByteBufferImpl.java: modify calls to super class constructors, allowing fields to be made final. * java/nio/DoubleBuffer.java (array_offset): make field final. (backing_buffer): make field final. (DoubleBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/DoubleBufferImpl.java (readOnly): make field final. (DoubleBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/DoubleViewBufferImpl.java (offset): make field final. (bb): likewise. (readOnly): likewise. (endian): likewise. (DoubleViewBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/FloatBuffer.java (array_offset): make field final. (backing_buffer): make field final. (FloatBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/FloatBufferImpl.java (readOnly): make field final. (FloatBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/FloatViewBufferImpl.java (offset): make field final. (bb): likewise. (readOnly): likewise. (endian): likewise. (FloatViewBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/IntBuffer.java (array_offset): make field final. (backing_buffer): make field final. (IntBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/IntBufferImpl.java (readOnly): make field final. (IntBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/IntViewBufferImpl.java (offset): make field final. (bb): likewise. (readOnly): likewise. (endian): likewise. (IntViewBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/LongBuffer.java (array_offset): make field final. (backing_buffer): make field final. (LongBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/LongBufferImpl.java (readOnly): make field final. (LongBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/LongViewBufferImpl.java (offset): make field final. (bb): likewise. (readOnly): likewise. (endian): likewise. (LongViewBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/MappedByteBuffer.java (MappedByteBuffer): modify arguments add call to constructor, allowing fields to be final. * java/nio/MappedByteBufferImpl.java (readOnly): make field final. (MappedByteBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/ShortBuffer.java (array_offset): make field final. (backing_buffer): make field final. (ShortBuffer): add address, backing_buffer and array_offset to constructor, allowing fields to be made final. * java/nio/ShortBufferImpl.java (readOnly): make field final. (ShortBufferImpl): modify call to super class constructor, allowing fields to be made final. * java/nio/ShortViewBufferImpl.java (offset): make field final. (bb): likewise. (readOnly): likewise. (endian): likewise. (ShortViewBufferImpl): modify call to super class constructor, allowing fields to be made final.
* 2008-04-18 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-04-187-109/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/Byte.java (static): initialize byteCache. (valueOf(String,int)): use valueOf(byte) rather than new. (valueOf(String)): likewise. (valueOf(byte)): Switch from lazy initialization of cached values to initialization at class initialization time. This removes the need for synchronization in the common case. (decode): use valueOf(byte) rather than new. * java/lang/Character.java (static): initialize charCache. (valueOf): Switch from lazy initialization of cached values to initialization at class initialization time. This removes the need for synchronization in the common case. * java/lang/Double.java (ZERO): new private field. (ONE): likewise. (valueOf(double)): don't create new doubles for the case of 0 and 1. (valueOf(String)): use valueOf(double) rather than new. (equals): use raw bits for comparison to avoid division. * java/lang/Float.java (ZERO): new private field. (ONE): likewise. (valueOf(float)): don't create new floats for the case of 0 and 1. (valueOf(String)): use valueOf(float) rather than new. (equals): use raw bits for comparison to avoid division. * java/lang/Integer.java (static): initialize intCache. (stringSize): new private method to estimate size of string for an int. (toString): reuse digits for single character strings, for multiple character strings estimate their length using string size method. (valueOf(String,int)): use valueOf(int) rather than new. (valueOf(String)): likewise. (valueOf(int)): Switch from lazy initialization of cached values to initialization at class initialization time. This removes the need for synchronization in the common case. (getInteger): use valueOf(int) rather than new. (decode): use valueOf(int) rather than new. (signum): use shift and subtract to compute value. (toUnsignedString): calculate string size rather than using 32 chars. * java/lang/Long.java (longCache): new private field. (stringSize): new private method to estimate size of string for a long. (toString): reuse digits for single character strings, for multiple character strings estimate their length using string size method. (valueOf(String,int)): use valueOf(long) rather than new. (valueOf(String)): likewise. (valueOf(long)): use cache of values. (decode): use valueOf(long) rather than new. (signum): use shift and subtract to compute value. (toUnsignedString): calculate string size rather than using 64 chars. * java/lang/Short.java (static): initialize shortCache. (valueOf(String,int)): use valueOf(short) rather than new. (valueOf(String)): likewise. (valueOf(short)): Switch from lazy initialization of cached values to initialization at class initialization time. This removes the need for synchronization in the common case. (decode): use valueOf(short) rather than new.