| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
2009-01-02 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/text/MessageFormat.java:
(setLocale(Locale)): Integer format should use
NumberFormat.getIntegerInstance.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
2008-12-31 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/text/SimpleDateFormat.java:
Remove superfluous empty line introduced
in last commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
* java/text/SimpleDateFormat.java:
(standardChars): Use standard characters from CLDR.
(RFC822_TIMEZONE_FIELD): Fixed to match new standard
characters.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* java/lang/System.java (getenv): Fix env entries of the form
key=value=value=value not parsed correctly.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
2008-09-04 Robert Schuster <robertschuster@fsfe.org>
* java/text/DecimalFormat.java:
(scanFix): Use 'i + 1' when looking at following character.
(scanNegativePattern): Dito.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/regex/Matcher.java:
(toMatchResult()): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/text/DateFormatSymbols.java:
(getZoneStrings(ResourceBundle,Locale)):
Handle missing standard zone names.
|
|
|
|
|
|
|
|
| |
2008-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/text/DateFormatSymbols.java:
(getZoneStrings(ResourceBundle,Locale)):
Fallback on to parent locales.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* java/text/DateFormatSymbols.java:
(getZoneStrings(ResourceBundle,Locale)):
Pad arrays smaller than 5 with empty strings.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
2008-07-06 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/ResourceBundle.java,
(BundleKey.toString()): Implemented.
(clearCache()): Implemented.
(clearCache(ClassLoader)): Implemented.
|
|
|
|
|
| |
* java/util/ResourceBundle.java:
Fix generic warnings.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* java/lang/Integer.java (signum): Implemented properly as
described in Hacker's Delight Section 2-7, plus Andrew Haley's
explanation.
|
|
|
|
| |
* java/lang/Long.java: Comment change only.
|
|
|
|
|
| |
* java/lang/Long.java (signum): Implemented properly as described
in Hacker's Delight Section 2-7.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* java/lang/Integer.java:
(parseInt(String, int, boolean)): Disallow "-+".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
Reported by Nicolas Geoffray <nicolas.geoffray@menlina.com>
* java/lang/Integer.java:
(parseInt(String,int,boolean)): Parse +x
as x, not -x.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
PR classpath/35482
* java/lang/String.java:
(toLowerCase()): Fix calculation of number
of characters to copy.
(toLowerCaseTurkish()): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* java/lang/Byte.java:
Use int instead of short as a loop counter
for efficiency.
|
|
|
|
|
|
| |
* java/lang/Byte.java:
(static): Use a short as the loop counter, not
a byte as this can't exceed MAX_VALUE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|