summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* 2008-04-18 Mario Torre <neugens@aicas.com>Mario Torre2008-04-181-828/+796
| | | | | | | PR classpath/35974 * java/util/logging/Logger.java: fix a deadlock and reformat code. Now all the methods of the class get a lock on a static lock, this avoids a lock when getLogger and log are used concurrently.
* 2008-04-09 Mario Torre <neugens@aicas.com>Mario Torre2008-04-091-1/+1
| | | | | | | | | | | * java/io/File.java (canWrite): use canWriteDirectory(String). * vm/reference/java/io/VMFile.java (canWriteDirectory): new native method. * native/jni/java-io/java_io_VMFile.c: correct indentation, sync function names with header file definition. (Java_java_io_VMFile_canRead): use cpio_checkAccess to get access permission. Removed unused variable. (Java_java_io_VMFile_canWrite): likewise. (Java_java_io_VMFile_canWriteDirectory): new function.
* 2008-03-27 Mario Torre <neugens@aicas.com>Mario Torre2008-03-271-2/+2
| | | | | | | | | | | * gnu/xml/stream/SAXParser.java (getProperty): throw SAXNotRecognizedException instead of SAXNotSupportedException after fall through all known properties. * javax/xml/namespace/QName.java (valueOf): throw IllegalArgumentException if string is null. * java/util/concurrent/CopyOnWriteArrayList.java (lastIndexOf): fixed indentation. (indexOf): likewise.
* 2008-03-26 Mario Torre <neugens@aicas.com>Mario Torre2008-03-261-180/+232
| | | | | | | | | | | | | | | | | | | * java/util/concurrent/CopyOnWriteArrayList.java (SubList.set): (SubList.clear): new method. (SubList.checkMod): fix indentation. (SubList.checkBoundsInclusive): likewise. (SubList.checkBoundsExclusive): likewise. (SubList): added synchronization. Now throw IndexOutOfBoundsException instead of IllegalArgumentException when index are out of range. (SubList.size): added synchronization. (SubList.get): likewise. (SubList.listIterator): fixed indentation. (SubList.set): added synchronization. Update the state of the storage after modification. (SubList.add): likewise. (SubList.remove): likewise. (SubList.addAll): likewise.
* 2008-03-26 Mario Torre <neugens@aicas.com>Mario Torre2008-03-261-5/+14
| | | | | | * java/util/concurrent/CopyOnWriteArrayList.java (equals): removed useless local variable. (hashCode): new method.
* 2008-03-25 Mario Torre <neugens@aicas.com>Mario Torre2008-03-251-2/+40
| | | | | | | * java/util/concurrent/CopyOnWriteArrayList.java (clone): clone method in CopyOnWriteArrayList should just do a shallow copy. Fixed. (equals): new method, override from base class. (toString): likewise.
* 2008-03-25 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-253-6/+6
| | | | | | | | | | | * java/awt/image/ColorModel.java: (coerceDataWorker(WritableRaster,boolean)): Make package-private, not protected. * java/awt/image/ComponentColorModel.java: Call coerceDataWorker directly. * java/awt/image/DirectColorModel.java: Likewise. (coerceData(WritableRaster,boolean)): Made final.
* 2008-03-24 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-241-4/+22
| | | | | | | | * java/text/SimpleDateFormat.java: (standardChars): Corrected. (RFC822_TIMEZONE_FIELD): Added. (formatWithAttribute(Date,FormatBuffer,FieldPosition)): Support RFC822 timezone field ('Z').
* 2008-03-16 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-1620-40/+77
| | | | | | | | | | | | | | | | | | | | | | | | | PR classpath/21869 * java/security/AlgorithmParameterGenerator.java, * java/security/AlgorithmParameters.java, * java/security/KeyFactory.java, * java/security/KeyPairGenerator.java, * java/security/MessageDigest.java, * java/security/SecureRandom.java, * java/security/Signature.java, * java/security/cert/CertPathBuilder.java, * java/security/cert/CertPathValidator.java, * java/security/cert/CertStore.java, * java/text/SimpleDateFormat.java, * java/util/AbstractMap.java, * java/util/Arrays.java, * java/util/Calendar.java, * java/util/Date.java, * java/util/Formatter.java, * java/util/Hashtable.java, * java/util/Properties.java, * java/util/TreeMap.java, * java/util/regex/Matcher.java: Use CPStringBuilder in preference to StringBuilder.
* 2008-03-16 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-1611-24/+44
| | | | | | | | | | | | | | | | | | | | | | | | PR classpath/21869 * gnu/java/security/Engine.java, * gnu/java/security/hash/Whirlpool.java, * gnu/java/security/key/dss/DSSKey.java, * gnu/java/security/key/dss/DSSPrivateKey.java, * gnu/java/security/key/dss/DSSPublicKey.java, * gnu/java/security/key/rsa/GnuRSAKey.java, * gnu/java/security/key/rsa/GnuRSAPrivateKey.java, * gnu/java/security/key/rsa/GnuRSAPublicKey.java, * java/awt/datatransfer/MimeType.java, * java/io/BufferedReader.java, * java/io/DataInputStream.java, * java/lang/Double.java, * java/lang/Float.java, * java/lang/String.java, * java/lang/reflect/Proxy.java, * java/math/BigDecimal.java, * java/net/URI.java, * java/net/URLClassLoader.java, * java/net/URLEncoder.java: Use CPStringBuilder in preference to StringBuilder.
* 2008-03-14 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-141-3/+3
| | | | | | | PR classpath/34840 * java/lang/AbstractStringBuffer.java: (append(CharSequence,int,int)): Just set sequence to "null" don't append it.
* 2008-03-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-1215-129/+557
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/beans/beancontext/BeanContextServicesSupport.java: (BCSSProxyServiceProvider(BeanContextServiceProvider)): Add package-private constructor. * java/lang/StringBuffer.java: (ensureCapacity_unsynchronized(int)): Make package-private. * java/rmi/activation/Activatable.java: (export(ActivationID, Remote, int, RMIServerSocketFactory)): Make private. (makeId(ActivationID)): Likewise. * java/security/MessageDigest.java: (update(ByteBuffer)): Make final. * java/security/cert/PolicyQualifierInfo.java: (getPolicyQualifierId()): Likewise. (getEncoded()): Likewise. (getPolicyQualifier()): Likewise. * java/text/DateFormat.java: (ISO_YEAR_FIELD): Removed. (LOCALIZED_DAY_OF_WEEK_FIELD): Likewise. (EXTENDED_YEAR_FIELD): Likewise. (MODIFIED_JULIAN_DAY_FIELD): Likewise. (MILLISECOND_IN_DAY_FIELD): Likewise. (RFC822_TIMEZONE_FIELD): Likewise. (Field.ISO_YEAR_FIELD): Likewise. (Field.LOCALIZED_DAY_OF_WEEK_FIELD): Likewise. (Field.EXTENDED_YEAR_FIELD): Likewise. (Field.MODIFIED_JULIAN_DAY_FIELD): Likewise. (Field.MILLISECOND_IN_DAY_FIELD): Likewise. (Field.RFC822_TIMEZONE_FIELD): Likewise. * java/text/DecimalFormat.java: (format(Object,StringBuffer,FieldPosition)): Make final. * java/text/Format.java: (Format()): Make protected. * java/text/NumberFormat.java: (NumberFormat()): Likewise. * java/text/SimpleDateFormat.java: Remove code using RFC822_TIMEZONE_FIELD. * java/util/Stack.java: Use array of Objects rather than instances of T. * java/util/Vector.java: Likewise. * java/util/concurrent/CopyOnWriteArrayList.java: Don't extend AbstractList. (containsAll(Collection)): Implemented. (listIterator()): Likewise. (subList(int,int)): Likewise. * java/util/zip/Deflater.java: (getTotalIn()): Remove deprecation. (getTotalOut()): Likewise. * java/util/zip/Inflater.java, (getTotalIn()): Likewise. (getTotalOut()): Likewise.
* 2008-03-11 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-122-1/+8
| | | | | | | | | * java/awt/MouseInfo.java: (MouseInfo()): Private constructor to prevent instance creation. * java/lang/AbstractStringBuilder.java: (ensureCapacity_unsynchronized(int)): Make package-private, not protected.
* 2008-03-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-063-3/+6
| | | | | | | | | | | | | | | | | | | * java/lang/reflect/Constructor.java: (cons): Make package-private. (Constructor(VMConstructor)): Set cons in VM interface. * java/lang/reflect/Field.java: (f): Make package-private. (Field(VMField)): Set f in VM interface. * java/lang/reflect/Method.java: (m): Make package-private. (Method(VMMethod)): Set m in VM interface. * vm/reference/java/lang/reflect/VMConstructor.java: (cons): Added reference to Constructor instance. * vm/reference/java/lang/reflect/VMField.java: (f): Added reference to Field instance. * vm/reference/java/lang/reflect/VMMethod.java, (m): Added reference to Method instance.
* 2008-03-04 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-054-0/+146
| | | | | | | | | | | | | | | | * java/lang/reflect/AccessibleObject.java: (getAnnotation(Class)): Documented. (getAnnotations()): Likewise. (getDeclaredAnnotations()): Likewise. (isAnnotationPresent(Class)): Likewise. * java/lang/reflect/Constructor.java, * java/lang/reflect/Field.java, * java/lang/reflect/Method.java, * vm/reference/java/lang/reflect/VMConstructor.java, * vm/reference/java/lang/reflect/VMField.java, * vm/reference/java/lang/reflect/VMMethod.java: (getAnnotation(Class)): Added. (getDeclaredAnnotations()): Likewise.
* 2008-03-03 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-033-133/+77
| | | | | | | | | | | | | | * java/lang/reflect/Constructor.java, * java/lang/reflect/Field.java, * java/lang/reflect/Method.java, * vm/reference/java/lang/reflect/VMConstructor.java: (equals(Object)): Added. * vm/reference/java/lang/reflect/VMField.java: (equals(Object)): Added. * vm/reference/java/lang/reflect/VMMethod.java: (equals(Object)): Added. Move variables from Classpath classes to VM classes and make class methods into instance methods.
* 2008-02-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-033-0/+1641
| | | | | | | | | | | | | | | | * java/lang/reflect/Constructor.java, * java/lang/reflect/Field.java, * java/lang/reflect/Method.java: New classes within GNU Classpath that provide common reflection functionality. * vm/reference/java/lang/reflect/Constructor.java, * vm/reference/java/lang/reflect/Field.java, * vm/reference/java/lang/reflect/Method.java: Removed. * vm/reference/java/lang/reflect/VMConstructor.java, * vm/reference/java/lang/reflect/VMField.java, * vm/reference/java/lang/reflect/VMMethod.java: New VM interface for reflection.
* 2008-02-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-012-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/classpath/CPStringBuilder.java: Removed. * gnu/java/awt/font/OpenTypeFontPeer.java, * gnu/java/awt/font/autofit/Edge.java, * gnu/java/awt/font/autofit/LatinBlue.java, * gnu/java/awt/font/autofit/Segment.java, * gnu/java/awt/font/autofit/Width.java, * gnu/java/awt/font/opentype/truetype/Point.java, * gnu/java/awt/java2d/ActiveEdges.java, * gnu/java/awt/peer/GnomeDesktopPeer.java, * gnu/java/awt/peer/KDEDesktopPeer.java, * gnu/java/awt/peer/x/XFontPeer.java: Use CPStringBuilder. * gnu/java/lang/CPStringBuilder.java: Moved from gnu.classpath. * gnu/java/lang/ClassHelper.java, * gnu/java/lang/reflect/GenericSignatureParser.java, * gnu/java/lang/reflect/TypeSignature.java, * gnu/java/net/protocol/http/ChunkedInputStream.java, * gnu/java/net/protocol/http/Cookie.java, * gnu/java/net/protocol/http/HTTPConnection.java, * gnu/java/net/protocol/http/Headers.java, * gnu/java/net/protocol/http/Request.java: Use CPStringBuilder. * java/lang/reflect/Modifier.java: Corrected import to point to correct package. * java/util/Formatter.java: Use CPStringBuilder. * vm/reference/java/lang/reflect/Constructor.java, * vm/reference/java/lang/reflect/Field.java, * vm/reference/java/lang/reflect/Method.java: Corrected import to point to correct package.
* 2008-02-30 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-011-17/+7
| | | | | | | | | | | * gnu/classpath/CPStringBuffer.java, * gnu/classpath/CPStringBuilder.java: Rename class to CPStringBuilder. * java/lang/reflect/Modifier.java, * vm/reference/java/lang/reflect/Constructor.java, * vm/reference/java/lang/reflect/Field.java, * vm/reference/java/lang/reflect/Method.java: Use CPStringBuilder.
* 2008-02-29 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-291-0/+6
| | | | | | | * gnu/classpath/CPStringBuffer.java: New non-copying string buffer. * java/lang/AbstractStringBuffer.java: Add note about CPStringBuffer.
* 2008-02-28 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-282-2/+2
| | | | | | | | | | | | | | * gnu/java/util/EmptyEnumeration.java: Add generic type parameter. * java/lang/ClassLoader.java: Use EmptyEnumeration with type parameter. * java/util/zip/ZipFile.java: Likewise. * javax/swing/text/html/StyleSheet.java, * javax/swing/text/html/ViewAttributeSet.java: Add generics. * javax/swing/tree/DefaultMutableTreeNode.java: Use EmptyEnumeration with type parameter.
* 2008-02-28 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-281-77/+482
| | | | | | | | | | | | | | | | | | | | | | | | | PR classpath/28664 * include/Makefile.am: Add generation of header file java_math_VMBigInteger.h * java/math/BigInteger.java: Separate NativeMPI into VMBigInteger. * native/jni/Makefile.am: Add java-math. * native/jni/java-math/java_math_VMBigInteger.c: Renamed from java_math_BigInteger.c. * vm/reference/java/math/VMBigInteger.java: Former NativeMPI class from java.math.BigInteger. 2006-11-28 Raif S. Naffah <classpath@naffah-raif.name> Jeroen Frijters <jeroen@sumatra.nl> PR classpath/28664 * configure.ac: Add support for configuring GNU MP. * native/jni/Makefile.am: Include java-math directory if required. * native/jni/java-math/.cvsignore: New file. * native/jni/java-math/Makefile.am: Likewise. * native/jni/java-math/java_math_BigInteger.c: Likewise. * java/math/BigInteger.java: Added support for native methods. * gnu/classpath/Configuration.java.in (WANT_NATIVE_BIG_INTEGER): New field.
* 2008-02-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-263-748/+1202
| | | | | | | | PR classpath/21869: * java/lang/AbstractStringBuffer.java: New class. * java/lang/StringBuffer.java, * java/lang/StringBuilder.java: Changed to use AbstractStringBuffer.
* 2008-02-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-261-24/+28
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Removed again. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Revert to pre-release versions.
* 2008-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-221-28/+24
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Re-added. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Regress to 0.96 versions.
* 2008-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-211-1/+1
| | | | | | * java/net/URI.java: (compareTo(URI)): Change comparison sign so it operates in the correct direction.
* 2008-02-21 Roman Kennke <kennke@aicas.com>Roman Kennke2008-02-211-2/+27
| | | | | | * java/awt/image/PixelInterleavedSampleModel.java (createCompatibleSampleModel): Adjust scanline stride for new width and optimize band offsets.
* 2008-02-18 Roman Kennke <kennke@aicas.com>Roman Kennke2008-02-181-1/+1
| | | | | * java/awt/image/RGBImageFilter.java (setPixels): Don't mask the source pixel.
* 2008-02-12 Roman Kennke <kennke@aicas.com>Roman Kennke2008-02-121-4/+9
| | | | | | * java/awt/color/ICC_Profile.java (getInstance()): Wrap call to InputStream.read(byte[],int,int) in a loop, in order to read the whole thing.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-1/+4
| | | | * java/lang/Float.java (floatToIntBits): Simplified.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-1/+4
| | | | * java/lang/Double.java (doubleToLongBits): Simplified.
* 2008-02-07 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-02-071-21/+26
| | | | | | | | | | | * java/lang/String.java (replace): Only copy "live" portion of String. Use array copies in preference to clone. (toLowerCaseTurkish): likewise (toLowerCase): likewise (toUpperCaseTurkish): likewise (toUpperCase): likewise (toCharArray): Use array copies in preference to clone.
* 2008-02-05 Ian Rogers <ian.rogers@manchester.ac.uk>Ian Rogers2008-02-0513-50/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/lang/reflect/TypeSignature.java * java/io/BufferedReader.java * java/io/DataInputStream.java * java/lang/StackTraceElement.java * java/lang/Throwable.java * java/lang/reflect/Proxy.java * java/net/URI.java * java/net/URLClassLoader.java * java/net/URLEncoder.java * java/text/SimpleDateFormat.java * java/util/AbstractMap.java * java/util/Calendar.java * java/util/Date.java * java/util/Hashtable.java Use StringBuilder in preference to StringBuffer * java/util/Calendar.java * java/util/Hashtable.java Make private fields that can be final, final * java/net/URI.java Avoid creating Integer objects for the sake of comparison * java/lang/reflect/Proxy.java * java/text/SimpleDateFormat.java Swap use of "new Character/Integer" to use of valueOf methods