| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
* java/lang/Float.java
(toString(float)): Call VMFloat instead of VMDouble.
(parseFloat): Call VMFloat. Fixed comment.
* vm/reference/java/lang/VMFloat.java
(toString, parseFloat): New methods.
NEWS: added note about these changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/nio/CharViewBufferImpl.java
(slice): Fixed offset for slice buffer.
* java/nio/DoubleViewBufferImpl.java
(slice): Fixed offset for slice buffer.
* java/nio/FloatViewBufferImpl.java
(slice): Fixed offset for slice buffer.
* java/nio/IntViewBufferImpl.java
(slice): Fixed offset for slice buffer.
* java/nio/LongViewBufferImpl.java
(slice): Fixed offset for slice buffer.
* java/nio/ShortViewBufferImpl.java
(slice): Fixed offset for slice buffer.
|
|
|
|
|
| |
PR classpath/31646:
* java/util/Arrays.java (qsort): Corrected initial median calculation.
|
|
|
|
|
|
|
|
|
| |
* java/io/ObjectInputStream.java: (parseContent): Call (String,
Object) version of dumpElementln.
(dumpElementln(String, Object)): New method.
* java/io/ObjectOutputStream.java (writeObject): Call (String,
Object) version of dumpElementln.
(dumpElementln(String, Object)): New method.
|
|
|
|
| |
* java/net/URI.java (parseServerAuthority): Allow empty portStr.
|
|
|
|
|
|
|
|
| |
* java/nio/Buffer.java
(array): New abstract method.
(hasArray): New abstract method.
(arrayOffset): New abstract method.
(isDirect): New abstract method.
|
|
|
|
|
|
|
|
| |
* java/nio/CharBuffer.java
(wrap(CharSequence,int,int)): Reimplemented using specialized
subclass.
* java/nio/CharSequenceBuffer.java: New class. Implements char
buffers that wrap CharSequences.
|
|
|
|
|
| |
* java/util/Hashtable.java:
(putAllInternal(Map)): Remove redundant semi-colon.
|
|
|
|
|
|
|
|
| |
* lib/mkcollections.pl.in: Add externalclasses.
* java/util/Collections.java: Unroll enhanced for loops.
* java/util/HashMap.java: Likewise.
* java/util/Hashtable.java: Likewise.
* java/util/TreeMap.java: Likewise.
|
|
|
|
|
| |
* java/util/GregorianCalendar.java
(computeFields): Fix WEEK_OF_MONTH calculation.
|
|
|
|
|
| |
* java/util/GregorianCalendar.java
(GregorianCalendar(TimeZone, Locale)): Remove redundant complete().
|
|
|
|
|
|
|
|
| |
* java/nio/channels/spi/SelectorProvider.java
(inheritedChannel): Make method concrete and move default impl
to here. Perform security checks as mandated by the spec.
* gnu/java/nio/SelectorProviderImpl.java
(inheritedChannel): Removed. Default impl is in SelectorProvider.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Frame.java
(weakFrames): Make private.
(weakFramesQueue): New field. A reference queue to collect
GCed references.
(getFrames): Only do one iterations to avoid collecting null
references.
(hasDisplayableFrames): New helper method. Checks if there
are any displayable frames. This is used by the event queue
shutdown check.
(noteFrame): Clean up GCed frames in the list.
* java/awt/EventQueue.java
(isShutdown): Move frame checking code into Frame.
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/System.java
(inheritedChannel): New method, wraps
SelectorProvider.inheritedChannel().
* java/nio/channels/spi/SelectorProvider.java
(inheritedChannel): New abstract method.
* gnu/java/nio/SelectorProviderImpl.java
(inheritedChannel): New method, return null as default.
|
|
|
|
|
|
| |
* java/nio/ByteOrder.java
(nativeByteOrder): Let this fail when the corresponding
property is not set properly.
|
|
|
|
|
|
| |
PR classpath/31402:
* java/util/concurrent/CopyOnWriteArrayList.java
(remove): Fixed ArrayIndexOutOfBoundsException when index == 0.
|
|
|
|
|
| |
* gnu/java/util/jar/JarUtils.java (log): Commented out.
(readSFManifest): Don't log.
|
|
|
|
|
|
| |
* java/util/logging/LogManager.java (readConfiguration): Handle
comma-separated 'handlers'. Don't try to add a non-existing
handler.
|
|
|
|
|
|
| |
* java/io/OutputStreamWriter.java,
* java/io/InputStreamReader.java: Revert big stream patch due to
problems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/io/InputStreamReader.java
(BUFFER_SIZE): New constant.
(bytesCache): Removed.
(cacheLock): Removed.
(hasSavedSurrogate): Removed.
(lastArray): New field. Used for caching CharBuffers.
(lastBuffer): New field. Used for caching CharBuffers.
(maxBytesPerChar): Removed.
(oneChar): New field. Caches a char array for read().
(savedSurrogate): New field.
(InputStreamReader): (all constructors) Cleaned up.
Use initDecoderAndBuffer() method. Check for null parameters.
Use new EncodingHelper.getDefaultCharset() for fetching the
default charset.
(decode): New helper method. Decodes using the NIO decoder or
using a raw Latin1 decoding.
(getCharBuffer): New helper method. Implements caching of
CharBuffers for output arrays.
(initDecoderAndBuffer): New helper method. Initializes the decoder
and input buffer.
(read): Use cached array.
(read(char[],int,int)): Reworked using a cleaner NIO based
implementation. This decodes the incoming data in bigger chunks
rather then calling the decoder for each character.
(ready): Also check the input buffer.
(refillInputBuffer): New helper methods. Refills the input buffer
when it runs out of data.
* java/io/OutputStreamWriter.java
(lastArray): Implements caching of the output array buffer.
(lastBuffer): Implements caching of the output array buffer.
(oneChar): New field. Caches a char array for write().
(outputBuffer): Make this a ByteBuffer.
(OutputStreamWriter): (all constructors) Cleaned up.
Use initEncoderAndBuffer() method. Check for null parameters.
Use new EncodingHelper.getDefaultCharset() for fetching the
default charset.
(encode): New helper method. Encodes the input buffer to the output
buffer using either the NIO encoder or a raw Latin1 encoding.
(encodeChars): New helper method. The encoding loop.
(flush): Directly use the array of the output buffer.
(getCharBuffer): New helper method. Implements caching of the
output buffer.
(initEncoderAndBuffer): New helper method for initialization.
(write(char[],int,int)): Reworked to make better use of the NIO
encoders.
(write): Use cached array.
(write(String,int,int)): Don't copy the string but rather wrap it
and handle it the same as the wrapped char array.
(writeConvert): Removed.
* gnu/java/nio/charset/EncodingHelper.java
(getDefaultCharset): New method. Returns the default charset for
the case when the file.encoding charset is not valid. This
always returns an UTF8 codec.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Frame.java
(weakFrames): Make this generic and package private.
(noteFrame): Use generic WeakReference.
* java/awt/EventQueue.java
(isShutdown): Iterate over the weakFrames directly, rather than
using Frame.getFrames(). The latter iterates several times over
weakFrames completely and creates a new array on each call. The
former iterates only once and aborts when it finds a frame which
is displayable.
|
|
|
|
|
|
|
| |
* java/net/ServerSocket.java (implAccept): set implCreated flag on
socket.
* java/net/Socket.java (implCreated): Make package accessible for
ServerSocket.
|
|
|
|
|
|
|
| |
* java/net/Socket.java
(implCreated): New field.
(getImpl): Call impl.create() if it hasn't been called yet.
(bind): Removed explicit impl.create() call.
|
|
|
|
|
|
| |
* java/awt/image/SinglePixelPackageSampleModel.java
(createDataBuffer): Avoid use of Buffers class and create
DataBuffer directly in place.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/image/ComponentSampleModel.java
(tightPixelPacking): Removed.
(ComponentSampleModel): Removed unnecessary 'optimization' code.
(createDataBuffer): Avoid use of Buffers helper class.
(getDataElements(int,int,int,int,Object,DataBuffer): Removed.
(getDataElements(int,int,Object,DataBuffer): Do not use Buffers
helper class and instead fetch the values directly. Don't expect
any specific DataBuffer subclass.
(setDataElements(int,int,int,int,Object,DataBuffer): Removed.
(setDataElements(int,int,Object,DataBuffer): Do not use Buffers
helper class and instead set the values directly. Don't expect
any specific DataBuffer subclass.
|
|
|
|
| |
* java/net/MulticastSocket.java (setTimeToLive): Allow ttl==0.
|
|
|
|
| |
* java/util/regex/Pattern.java (toString): New method.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Desktop.java: new java 1.6 class.
* java/awt/peer/DesktopPeer.java: new inteface.
* gnu/java/awt/peer/GnomeDesktopPeer.java: new class.
* gnu/java/awt/peer/ClasspathDesktopPeer.java: new class.
* gnu/java/awt/peer/KDEDesktopPeer.java: new class.
* java/awt/Toolkit.java (createDesktopPeer): new method to support the
creation of DesktopPeer instances.
* gnu/java/awt/peer/qt/QtToolkit.java: update copyright notice and
organize import.
* gnu/java/awt/ClasspathToolkit.java (createDesktopPeer): new method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Canvas.java
(graphicsConfiguration): Removed duplicate (from Component) field.
(Canvas(GraphicsConfiguration)): Set the Component's graphicsConfig
field.
(getGraphicsConfigurationImpl): Removed.
* java/awt/Component.java
(getGraphicsConfiguration): Moved implementation here. Synchronize
on tree lock to prevent threading nastiness. Don't query peer
and instead return the setting of the graphicsConfig field.
(getGraphicsConfigurationImpl): Removed.
* java/awt/Window.java
(graphicsConfiguration): Removed duplicate (from Component) field.
(Window): Set the Component's graphicsConfig field.
(Window(GraphicsConfiguration)): Set the Component's graphicsConfig
field.
(Window(Window,GraphicsConfiguration)): Set the Component's
graphicsConfig field.
(getGraphicsConfigurationImpl): Removed.
(getGraphicsConfiguration): Fetch the local graphics env here
if not already done and return that.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Jakub Jelinek <jakub@redhat.com>
PR libgcj/17002
PR classpath/28550
* java/util/Date.java (parse): Properly parse 09:01:02 as
hours/minutes/seconds, not as hours/minutes/year.
* java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify
{start,end}TimeMode constructor by calling shorter constructor,
set {start,end}TimeMode fields after it returns.
(setStartRule): Don't adjust startTime into WALL_TIME. Set
startTimeMode to WALL_TIME.
(endStartRule): Similarly.
(getOffset): Handle properly millis + dstOffset overflowing into the
next day. Adjust startTime resp. endTime based on startTimeMode
resp. endTimeMode.
* java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New
static fields.
(timezones): Remove synchronized keyword. Set zoneinfo_dir.
If non-null, set up aliases0 and don't put anything into
timezones0.
(defaultZone): Call getTimeZone instead of timezones().get.
(getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6. Use
getTimeZoneInternal instead of timezones().get.
(parseTime): Parse correctly hour:minute.
(getTimeZoneInternal): New private method.
(getTimeZone): Do the custom ID checking first, canonicalize
ID for custom IDs as required by documentation. Call
getTimeZoneInternal to handle the rest.
(getAvailableIDs(int)): Add locking. Handle zoneinfo_dir != null.
(getAvailableIDs(File,String,ArrayList)): New private method.
(getAvailableIDs()): Add locking. Handle zoneinfo_dir != null.
* vm/reference/java/util/VMTimeZone.java (getDefaultTimeZoneId):
To read /etc/localtime, use ZoneInfo.readTZFile instead of
VMTimeZone.readtzFile. Get better timezone name for
/etc/localtime, either if it is a symlink or through
/etc/sysconfig/clock.
(readSysconfigClockFile): New static method.
(readtzFile): Removed.
* gnu/java/util/ZoneInfo.java: New file.
* java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
* NEWS: Documented TimeZone interface changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/ClasspathGraphicsEnvironment.java: New file.
* gnu/java/awt/peer/gtk/CairoSurface.java
(CairoDataBuffer): Removed inner class.
(CairoSurface(int,int,int,int)): New constructor.
(CairoSurface(int,int)): Delegate to new constructor.
(CairoSurface(SampleModel,CairoSurface,Rectangle,Point)): New constructor
for creating child rasters.
(create): Added int[] parameter.
(createChild): New method.
(createCompatibleWritableRaster): New methods.
(createTranslatedChild): New method.
(createWritableChild): New method.
(createWritableTranslatedChild): New method.
(destroy): Added int[] parameter.
(dispose): Only free native resources if this Surface has no parents.
(isCompatibleColorModel): New method.
(isCompatibleSampleModel): New method.
* gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java
(draw): Set transform, smarter bounds generation.
(drawComposite): Improved clipping.
(drawImage): Fixed bounds translation.
(drawRenderedImage): Set transform in buffer.
(fill): Set transform in buffer.
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
(createRaster): New method.
* java/awt/image/BufferedImage.java
(BufferedImage(int,int,int)): Use optimized raster if possible.
* include/gnu_java_awt_peer_gtk_CairoSurface.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
(Java_gnu_java_awt_peer_gtk_CairoSurface_create): Share data buffer between
Cairo and Java.
(Java_gnu_java_awt_peer_gtk_CairoSurface_destroy): Free data array.
|
|
|
|
|
| |
* java/nio/ByteOrder.java
(nativeOrder): Avoid NPE when comparing a system property.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/ClasspathToolkit.java:
* gnu/java/awt/peer/gtk/AsyncImage.java,
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java,
* gnu/java/awt/peer/gtk/CairoGraphics2D.java,
* gnu/java/awt/peer/gtk/CairoSurface.java,
* gnu/java/awt/peer/gtk/ComponentGraphics.java,
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
* gnu/java/awt/peer/gtk/GdkFontPeer.java,
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
* gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java,
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
* gnu/java/awt/peer/gtk/GtkChoicePeer.java,
* gnu/java/awt/peer/gtk/GtkClipboard.java,
* gnu/java/awt/peer/gtk/GtkClipboardNotifier.java,
* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
* gnu/java/awt/peer/gtk/GtkFramePeer.java,
* gnu/java/awt/peer/gtk/GtkImage.java,
* gnu/java/awt/peer/gtk/GtkImageConsumer.java,
* gnu/java/awt/peer/gtk/GtkLabelPeer.java,
* gnu/java/awt/peer/gtk/GtkListPeer.java,
* gnu/java/awt/peer/gtk/GtkMainThread.java,
* gnu/java/awt/peer/gtk/GtkMenuBarPeer.java,
* gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java,
* gnu/java/awt/peer/gtk/GtkMenuPeer.java,
* gnu/java/awt/peer/gtk/GtkMouseInfoPeer.java,
* gnu/java/awt/peer/gtk/GtkScrollbarPeer.java,
* gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
* gnu/java/awt/peer/gtk/GtkSelection.java,
* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
* gnu/java/awt/peer/gtk/GtkToolkit.java,
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
* java/awt/RenderingHints.java,
* java/awt/image/BufferedImage.java: Reformatted and added generics.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 23566
* scripts/timezones.pl: Parse each file in 2 passes, in one parse
just Rule lines, in the other everything else. Pass 0 instead of
$savings as second argument to parseRule when parsing the start
rule.
* java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.
2007-02-12 Jakub Jelinek <jakub@redhat.com>
* vm/reference/java/util/VMTimeZone.java: Rewrite to handle both
the old 'TZif\0' format and the new one.
* java/util/TimeZone.java: Handle default (one hour) daylight
savings.
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/GraphicsConfiguration.java
(createCompatibleVolatileImage(int,int,ImageCapabilities): Provide
default implementation that delegates to
createCompatibleVolatileImage(int,int).
(createCompatibleVolatileImage(int,int,ImageCapabilities,int):
New method from JDK5 spec. Default implementation by delegating to
(createCompatibleVolatileImage(int,int,int).
|
| |
|
|
|
|
|
|
|
|
| |
* java/io/File.java: remove import for
gnu.classpath.NotImplementedException.
(getUsableSpace): removed stub.
(getFreeSpace): likewise.
(getTotalSpace): likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* vm/reference/java/io/VMFile.java:
(canExecute): new 1.6 native method.
(setReadable): likewise.
(setWritable): likewise.
(setExecutable): likewise.
* java/io/File.java: added import for gnu.classpath.NotImplementedException.
(setReadOnly): new 1.6 method.
(canExecute): likewise.
(setReadable): likewise.
(setWritable): likewise.
(setExecutable): likewise.
(getUsableSpace): added stub for new 1.6 method.
(getFreeSpace): likewise.
(getTotalSpace): likewise.
(checkExec): new private method to support new 1.6 additions.
* native/jni/java-io/java_io_VMFile.c:
set_file_permissions: new helper function.
Java_java_io_VMFile_setReadable: new native method to bakcup 1.6 methods
in VMFile.java.
Java_java_io_VMFile_setWritable: likewise.
Java_java_io_VMFile_setExecutable: likewise.
Java_java_io_VMFile_canExecute: likewise.
* native/jni/native-lib/cpio.h: added new flags: CPFILE_FLAG_EXEC,
CPFILE_FLAG_USR and CPFILE_FLAG_OFF.
cpio_chmod: new function declaration.
cpio_checkAccess: likewise.
* native/jni/native-lib/cpio.c:
cpio_chmod: new function definition.
cpio_checkAccess: likewise.
|
|
|
|
| |
* java/awt/image/BufferedImage: Reformatted.
|
|
|
|
|
| |
(hashCode): Likewise.
(toString): Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/Class.java
(newInstance): Moved setAccessible call to helper method.
(getEnumConstants): Call new helper method to allow values method to be
called on non-public enum classes.
(setAccessible): New helper method.
* java/lang/Enum.java
(valueOf): Call new helper method in class to allow field value to
be read on non-public enum classes.
|
|
|
|
| |
'while'.
|
|
|
|
|
| |
* java/lang/SecurityManager.java (SecurityManager): Load and
initialize java.security.Security.
|
|
|
|
|
|
|
| |
Class<?>.
* java/security/SignatureSpi.java (engineUpdate(ByteBuffer):
Does not throw SignatureException. Chain SignatureException inside
IllegalStateException.
|
|
|
|
|
| |
* java/text/DecimalFormat.java(parse): Corrected the ParsePosition
settings.
|
|
|
|
|
| |
* java/text/SimpleDateFormat.java(parse): Corrected the usage of
NumberFormat.
|
|
|
|
| |
* java/util/Arrays.java (binarySearch): Change comparison order.
|
|
|
|
|
|
| |
* java/security/Permission.java:
(toString): If there are no actions, then there should not
be a space between its name and ')'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 30355
* java/util/Arrays.java:
(binarySearch(byte[],byte)): Added check for zero-length array.
(binarySearch(short[],short)): Likewise.
(binarySearch(int[],int)): Likewise.
(binarySearch(long[],long)): Likewise.
(binarySearch(char[],char)): Likewise.
(binarySearch(float[],float)): Likewise.
(binarySearch(double[],double)): Likewise.
(binarySearch(Object[],Object)): Likewise.
(binarySearch(T[],T,Comparator)): Likewise.
|