| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* javax/management/openmbean/CompositeDataInvocationHandler.java:
New file.
|
| |
|
|
|
|
|
| |
* gnu/classpath/jdwp/util/VariableTable.java: Make argCnt and slots ints.
(write): Replace writeLong with writeInt for above.
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
Event type is "THREAD_START" not "THERAD_END".
* gnu/classpath/jdwp/transport/SocketTransport.java (ITransport):
Handle configure strings ":port" and "port".
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit): Revert last patch.
|
| |
|
|
|
|
|
|
|
|
| |
* javax/management/StandardMBean.java:
(setAttribute(Attribute)): Add handling of primitive
types and subtype parameters.
(getMutator(String,Class<?>)): New helper method to
return the mutator.
|
|
|
|
|
|
| |
* java/io/OutputStreamWriter.java,
* java/io/InputStreamReader.java: Revert big stream patch due to
problems.
|
|
|
|
|
| |
* external/sax/org/xml/sax/helpers/XMLReaderFactory.java
(createXMLReader): Code in Classpath default.
|
|
|
|
|
| |
* native/jni/java-lang/java_lang_VMDouble.c
(parseDoubleFromChars): Use %p, not %i.
|
|
|
|
|
|
| |
libclasspathnative.
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(Java_gnu_java_nio_VMChannel_open): Don't set and reset umask.
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit): Prevent loading of
accessibility modules as temporary workaround for Gnome bug.
|
|
|
|
|
| |
* gnu/classpth/jdwp/processor/ThreadReferenceCommandSet.java
(executeResume): Change to call VMVirtualMachine.resumeThread.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* javax/swing/JScrollBar.java
(getUnitIncrement(int)): Don't multiply direction parameter.
(getBlockIncrement(int)): Don't multiply direction parameter.
|
|
|
|
| |
(rmid Tool): Likewise.
|
| |
|
|
|
|
|
|
| |
* tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
field.
(getParser): Use new field.
|
| |
|
|
|
|
|
|
|
| |
* java/net/ServerSocket.java (implAccept): set implCreated flag on
socket.
* java/net/Socket.java (implCreated): Make package accessible for
ServerSocket.
|
|
|
|
|
|
| |
* gnu/javax/net/ssl/provider/ClientHandshake.java (RSAGen.implRun):
check keyEncipherment bit of the certificate, and just pass the public
key to the cipher.
|
|
|
|
|
| |
* configure.ac: GConf requirement for building the java.util.prefs backend
are relaxed down to version 2.6.0 (instead of 2.11.2).
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/KDEDesktopPeer.java:
(mail): Fixed error dialog in KDE when the mail method is called without
argument; now opens the default mailer with a blank window.
(getCommand): Handle the use of kprinter as default print command for KDE.
(supportCommand): Enable the print command when a KDE desktop is detected.
|
|
|
|
|
|
|
| |
* java/net/Socket.java
(implCreated): New field.
(getImpl): Call impl.create() if it hasn't been called yet.
(bind): Removed explicit impl.create() call.
|
|
|
|
| |
not super.write().
|
|
|
|
| |
gthread-2.0 >= 2.2 and gdk-pixbuf-2.0
|
|
|
|
| |
name in File case.
|
|
|
|
|
|
| |
* resource/com/sun/tools/javac/messages.properties
(Main.FailedToRead, Main.MalformedURL, Main.FailedToLoad): Clarify
messages for when --with-ecj-jar is not specified.
|
|
|
|
|
|
| |
* configure.ac (FOUND_ECJ_JAR): Remove conditional.
* tools/Makefile.am: Build com.sun.tools.javac package
unconditionally.
|
|
|
|
| |
Also check for gtk+ dependency.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(printClass): Added filename argument.
* tools/gnu/classpath/tools/javah/JniIncludePrinter.java
(printClass): Added filename argument.
* tools/gnu/classpath/tools/javah/CniIncludePrinter.java
(printClass): Use user's file name.
* tools/gnu/classpath/tools/javah/CniStubPrinter.java
(printClass): Use user's file name.
* tools/gnu/classpath/tools/javah/Printer.java (printClass): Added
filename argument.
* tools/gnu/classpath/tools/javah/Main.java (getParser): Fix '-v'
argument order.
(writeHeaders): Use a HashMap.
(run): Put class name into HashMap for writeHeaders.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoArc): Make protected rather than private so it can be over-ridden.
(cairoClip): Likewise.
(cairoClosePath): Likewise.
(cairoCurveTo): Likewise.
(cairoDrawGlyphVector): Likewise.
(cairoFill): Likewise.
(cairoLineTo): Likewise.
(cairoMoveTo): Likewise.
(cairoNewPath): Likewise.
(cairoRectangle): Likewise.
(cairoResetClip): Likewise.
(cairoRestore): Likewise.
(cairoSave): Likewise.
(cairoScale): Likewise.
(cairoSetAntialias): Likewise.
(cairoSetDash): Likewise.
(cairoSetFillRule): Likewise.
(cairoSetFont): Likewise.
(cairoSetLine): Likewise.
(cairoSetMatrix): Likewise.
(cairoSetOperator): Likewise.
(cairoSetRGBAColor): Likewise.
(cairoStroke): Likewise.
(drawPixels): Likewise.
(init): Likewise.
(setGradient): Likewise.
(setPaintPixels): Likewise.
(cairoDrawLine): Removed.
(cairoDrawRect): Removed.
(cairoFillRect): Removed.
(cairoPreserveClip): Removed.
(cairoRelCurveTo): Removed.
(cairoRelLineTo): Removed.
(cairoRelMoveTo): Removed.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(cairoArc): New method wrapping superclass method in locks.
(cairoClip): Likewise.
(cairoClosePath): Likewise.
(cairoCurveTo): Likewise.
(cairoDrawGlyphVector): Likewise.
(cairoFill): Likewise.
(cairoLineTo): Likewise.
(cairoMoveTo): Likewise.
(cairoNewPath): Likewise.
(cairoRectangle): Likewise.
(cairoResetClip): Likewise.
(cairoRestore): Likewise.
(cairoSave): Likewise.
(cairoScale): Likewise.
(cairoSetAntialias): Likewise.
(cairoSetDash): Likewise.
(cairoSetFillRule): Likewise.
(cairoSetFont): Likewise.
(cairoSetLine): Likewise.
(cairoSetMatrix): Likewise.
(cairoSetOperator): Likewise.
(cairoSetRGBAColor): Likewise.
(cairoStroke): Likewise.
(disposeNative): Likewise.
(drawPixels): Likewise.
(init): Likewise.
(setGradient): Likewise.
(setPaintPixels): Likewise.
(draw): Do not lock, as locking is now done in the wrapped native methods.
(drawComposite): Likewise.
(drawGlyphVector): Likewise.
(drawImage): Likewise.
(drawRenderedImage): Likewise.
(fill): Likewise.
(setClip): Removed.
(lock): Added documentation.
(unlock): Added documentation.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
* include/gnu_java_awt_peer_gtk_CairoSurface.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawLine): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawRect): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoFillRect): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoPreserveClip): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelCurveTo): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelLineTo): Removed.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoRelMoveTo): Removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/management/openmbean/ArrayType.java:
(getArrayClassName(String, int)): Replaced by...
(getArrayClassName(OpenType, int, boolean)):
Returns appropriate class name for the array.
(getDimensions(OpenType, int)): New method.
(getPrimitiveType(Class<?>)): Likewise.
(getPrimitiveTypeClass(OpenType<?>)): Likewise.
(getElementType(OpenType<?>)): Likewise.
(getElementTypeName(OpenType<?>)): Likewise.
(ArrayType(int, OpenType<?>)): Rewritten
to handle ArrayTypes as input.
(ArrayType(SimpleType<?>, boolean)): New constructor.
(equals(Object)): Handle primitiveArray flag.
(hashCode()): Likewise.
(getArrayType(OpenType<E>)): New method.
(getPrimitiveArrayType(Class<T>)): Likewise.
(isPrimitiveArray()): Likewise.
(toString()): Updated to list primitiveArray
flag.
* javax/management/openmbean/OpenType.java:
(OpenType(String,String,String)): Use Class.forName()
and methods of Class to validate arrays.
* javax/management/openmbean/SimpleType.java:
Include causal exception when creating pre-defined types
throws an exception.
|
|
|
|
|
|
|
|
| |
Port change from gcc:
2007-03-06 Matthias Klose <doko@ubuntu.com>
* doc/Makefile.am(gkeytool.pod): Don't use sed -i.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/jdwp/exception/InvalidTagException.java: New file.
* gnu/classpath/jdwp/processor/ArrayReferenceCommandSet.java
(executeGetValues): Use Value type.
(exectureSetValues): Ditto.
* gnu/classpath/jdwp/processor/ClassTypeCommandSet.java
(executeGetValues): Use Value type.
(executeSetValues): Ditto.
(invokeMethod): Record method return type.
* gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java
(executeGetValues): Use Value type.
(executeSetValues): Ditto.
* gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
(executeGetValues): Use Value type.
* gnu/classpath/jdwp/processor/StackFrameCommandSet.java
(executeGetValues): Use Value type.
(executeSetValues): Ditto.
* gnu/classpath/jdwp/util/MethodResult.java: Add resType to store return
type.
(getResultType): New Method.
(setResultType): Ditto.
* gnu/classpath/jdwp/util/Value.java: Remove.
* gnu/classpath/jdwp/value: New Package.
* gnu/classpath/jdwp/value/Value.java: New file.
* gnu/classpath/jdwp/value/BooleanValue.java: New file.
* gnu/classpath/jdwp/value/ByteValue.java: New file.
* gnu/classpath/jdwp/value/CharValue.java: New file.
* gnu/classpath/jdwp/value/DoubleValue.java: New file.
* gnu/classpath/jdwp/value/FloatValue.java: New file.
* gnu/classpath/jdwp/value/IntValue.java: New file.
* gnu/classpath/jdwp/value/LongValue.java: New file.
* gnu/classpath/jdwp/value/ObjectValue.java: New file.
* gnu/classpath/jdwp/value/ShortValue.java: New file.
* gnu/classpath/jdwp/value/StringValue.java: New file.
* gnu/classpath/jdwp/value/ValueFactory.java: New file.
* gnu/classpath/jdwp/value/VoidValue.java: New file.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
PR classpath/30983:
* gnu/xml/dom/ls/DomLSParser.java (getInputSource):
Do not use the entity resolver to resolve the top-level document.
|
| |
|
|
|
|
| |
* java/util/regex/Pattern.java (toString): New method.
|
|
|
|
|
| |
* resource/META-INF/services/org.w3c.dom.DOMImplementationSourceList:
New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Add horrible generics hacks
to make things work with the new type signatures.
* javax/management/loading/ClassLoaderRepository.java:
Added generic types.
* javax/management/openmbean/CompositeDataSupport.java:
Likewise.
* javax/management/openmbean/OpenMBeanOperationInfo.java:
Likewise.
* javax/management/openmbean/OpenMBeanParameterInfo.java:
Likewise.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(getGlyphOutline): Apply glyph position translation.
(getOutline): Do not apply glyph position translation.
|
|
|
|
|
|
|
|
|
| |
method.
(getParser): Now protected. Use getName. Add '-v' alias for
--verbose.
(postParse): New method.
(run): Now protected. Use postParse.
* tools/gnu/classpath/tools/javah/GcjhMain.java: New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/management/Translator.java:
(translate(String)): Use a Boolean array to
comply with the new typing.
* javax/management/openmbean/ArrayType.java:
Added generic types and updated copyright headers.
* javax/management/openmbean/CompositeData.java:
Likewise.
* javax/management/openmbean/CompositeDataSupport.java:
Likewise.
* javax/management/openmbean/CompositeType.java:
Likewise.
* javax/management/openmbean/OpenMBeanAttributeInfoSupport.java:
Likewise.
* javax/management/openmbean/OpenMBeanOperationInfoSupport.java:
Likewise.
* javax/management/openmbean/OpenMBeanParameterInfoSupport.java:
Likewise.
* javax/management/openmbean/OpenType.java:
Updated copyright header.
* javax/management/openmbean/SimpleType.java:
Added generic types and updated copyright headers.
* javax/management/openmbean/TabularData.java:
Likewise.
* javax/management/openmbean/TabularDataSupport.java:
Likewise.
* javax/management/openmbean/TabularType.java:
Likewise.
|