| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* tools/gnu/classpath/tools/appletviewer/TagParser.java:
(parseParams): Unescape 'val' before putting it into the Map.
(unescapeString): New private method.
|
| |
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalIconFactory.java
(HorizontalSliderThumbIcon.paintIcon()): Commented out gradient paint,
(VerticalSliderThumbIcon.paintIcon()): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/text/NumberFormat.java (getCurrencyInstance): Replaced dollar sign
with the default international currency sign \u00A4.
* java/text/DecimalFormat.java (scanFix): Fix to use the localized symbol
table for string formatting.
(formatInternal): likewise.
(scanNegativePattern): likewise.
(applyPattern): likewise.
* java/text/DecimalFormatSymbols.java (clone): Revert to old version as
Locale is immutable and does not need clone.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawLine): Remove hard-coded pixel shifting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(isShowing): Simplified condition code and avoid unnecessary
if-codepaths.
(coalesceEvents): Always coalesce paint events and let the peer
figure out the expanding of the repaint area.
* gnu/java/awt/peer/swing/SwingComponentPeer.java
(currentPaintEvents): Removed. Replaced by paintArea.
(paintArea): New field. Tracks the dirty area.
(SwingComponentPeer): Removed init of currentPaintEvents.
(coalescePaintEvent): Simplified to only union the dirty regions.
(handleEvent): Paint dirty region that was tracked in paintArea.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(paintArea): New field. Tracks the dirty region.
(coalescePaintEvent): Implemented to track the dirty region.
(paintComponent): Use the dirty region in paintArea. Protect
state by putting the paint and dispose code in a try-finally.
(updateComponent): Use the dirty region in paintArea. Protect
state by putting the paint and dispose code in a try-finally.
|
|
|
|
|
| |
* java/awt/font/TextLayout.java
(getVisualHighlightShape): Removed debug output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-28 Dalibor Topic <robilad@kaffe.org>
* native/jni/java-lang/java_lang_VMDouble.c:
(parseDoubleFromChars) New function. Factored out from ...
(Java_java_lang_VMDouble_parseDouble): Factored out the parsing.
(dtoa_toString): New function. Factored out from ...
(Java_java_lang_VMDouble_toString) : Factored out the conversion.
Changed conversion mode to 2, as modes 0 and 1 don't round
as the API spec demands. Invoke conversion function as often
as necessary with growing precision until a reversible
representation of the double in form of a string is reached.
|
|
|
|
|
|
| |
* javax/swing/JComponent.java
(putClientProperty): Do not fire event when both old and new
value are == null.
|
|
|
|
|
|
|
|
|
| |
* java/util/jar/JarEntry.java (certs): removed.
(jarfile): new field.
(getCertificates): read the certificates from the containing JarFile.
* java/util/jar/JarFile.java (JarEnumeration.nextElement): don't
fill in 'certs,' fill in 'jarfile' for the entry.
(getEntry): likewise.
|
|
|
|
|
| |
* java/awt/image/WritableRaster.java
(createChild): Implemented.
|
|
|
|
|
|
|
|
|
| |
* java/awt/font/TextLayout.java
(TextLayout(TextLayout,int,int)): Also layout the new runs.
(getVisualHighlightShape): Implemented.
(layoutRuns): Fixed boundary so that the last run is also laid out.
(left): New helper method.
(right): New helper method.
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/font/TextLayout.java
(getCaretShape(TextHitInfo,Rectangle2D)): Implemented.
(getCaretShape(TextHitInfo)): Use natural bounds.
(getCaretShapes(int,Rectangle2D,CaretPolicy)): New API method.
(getCaretShapes(int,Rectangle2D)): Delegate to new method
above with DEFAULT_CARET_POLICY.
(getCaretShapes(int)): Use natural bounds.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/font/TextLayout.java
(Run.font): New field.
(Run.location): New field.
(Run.Run): Initialize font.
(font): Removed field. This is moved into Run as the actual font
is something run-specific.
(TextLayout(String,Font,FontRenderContext)): Set font on the
single runs. Layout the runs here.
(TextLayout(TextLayout,int,int)): Copy over the run fonts.
(findRunAtIndex): New helper method.
(getCaretInfo): Implemented.
(layoutRuns): New helper method.
(toString): Don't put font in output string.
|
|
|
|
| |
* AUTHORS: Added Jeroen Fritjers.
|
|
|
|
|
|
|
|
|
| |
* java/text/DecimalFormat.java (formatInternal): Add an explicit test
for FieldPosition to be null.
Check if the factional part is just 0 and can be omitted from the
result.
(scanNegativePattern): Fixed index out of bound exception when searching
for international currency symbol in negative pattern.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java:
(readObject(ObjectInputStream)): Implemented.
(writeObject(ObjectOutputStream)): Likewise.
(BCSChild.getTargetChild()): Added.
(bcsPreDeserializationHook()): Implemented.
(bcsPreSerializationHook()): Likewise.
(childDeserializedHook(Object,BCSChild)): Likewise.
(isSerializing()): Likewise.
(readChildren(ObjectInputStream)): Likewise.
(writeChildren(ObjectOutputStream)): Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-26 Roger Sayle <roger <at> eyesopen.com>
Ian Lance Taylor <ian <at> airs.com>
Paolo Bonzini <bonzini <at> gnu.org>
Fixes bug #25557.
* lib/gen-classlist.sh.in: Avoid using test's -ef operator for
increased portability. Likewise, use -f instead of -e.
|
|
|
|
| |
(resources): Explicitly create all dirs.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-26 Dalibor Topic <robilad@kaffe.org>
* native/target/.cvsignore,
native/target/generic/.cvsignore,
native/target/Linux/.cvsignore:
Removed no longer used files.
* native/target: Removed no longer used directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-26 Dalibor Topic <robilad@kaffe.org>
Fixes bug #29133.
* libraries/clib/nio/gnu_java_nio_VMSelector.c
(Java_gnu_java_nio_VMSelector_select):
Use strerror if strerror_r is not available.
Reported by: Michael Franz <mvfranz <at> gmail.com>,
Riccardo Mottola <zuse <at> libero.it>
|
|
|
|
|
|
|
|
|
|
| |
2006-11-26 Dalibor Topic <robilad@kaffe.org>
Fixes bug #26756.
* native/jni/midi-dssi/Makefile.am (AM_CFLAGS): Removed
STRICT_WARNING_CFLAGS since it caused the build to fail
on GNU/Linux.
|
|
|
|
| |
* doc/vmintegration.texinfo: Update VM Threading Model section.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-net/java_net_VMNetworkInterface.c: Conditionally
include ifaddrs.h.
(Java_java_net_VMNetworkInterface_getVMInterfaces): Updated
conditional.
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c:
Conditionally include ifaddrs.h.
(getif_address): Updated conditional.
(getif_index): Likewise.
* configure.ac: Check for ifaddrs.h.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawGlyphVector):
Synchronize on font peer.
(setFont): Likewise.
* gnu/java/awt/peer/gtk/GdkFontPeer.java (getFontMetrics): Mark
synchronized.
(getTextMetrics): Likewise.
|
|
|
|
|
|
|
| |
* javax/swing/text/GapContent.java
(getPositionsInRange): Rewritten to use the more efficient
binary search searchFirst() and avoid an NPE that was caused
by GC'ed positions.
|
|
|
|
| |
null.
|
|
|
|
|
| |
Check whether rowView instanceof RowView.
(updateGrid): Likewise.
|
|
|
|
| |
getChildAllocation() returning null.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR28462
* java/text/DecimalFormat.java: Almost new rewrite, and update to 1.5.
* java/text/NumberFormat.java (format): all format methods, fixed
FieldPosition argument should never be null.
(format(Object, StringBuffer, FieldPosition)): fixed signature,
method is not final.
* java/text/DecimalFormatSymbols.java (clone): fixed to also clone
locale.
* AUTHORS: added my name to the file.
|
|
|
|
| |
Use clazzIndex for id substring.
|
|
|
|
| |
it is still running.
|
|
|
|
|
| |
* doc/api/Makefile.am (create_html): Guard GJDOC invocation with
CREATE_API_DOCS
|
|
|
|
|
|
| |
* java/awt/font/TextHitInfo.java
(equals(TextHitInfo)): If TextHitInfo parameter is null, return false.
(beforeOffset): Decreased first parameter by 1.
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(constructor): Check sample model when setting fastCM flag.
(updateBufferedImage): Check scanline and sample model offsets before
copying data directly into the image data buffer.
|
|
|
|
|
| |
* gnu/java/awt/java2d/QuadSegment.java
(offsetSubdivided): Handle special straight-line cases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/dnd/DropTarget.java
(DropTargetAutoScroller.HYSTERESIS): New constant.
(DropTargetAutoScroller.DELAY): New constant.
(DropTargetAutoScroller.inner): New field. A cached
Rectangle instance.
(DropTargetAutoScroller.outer): New field. A cached
Rectangle instance.
(DropTargetAutoScroller.timer): New field. The actual timer.
(DropTargetAutoScroller.DropTargetAutoScroller):
Initialize timer.
(DropTargetAutoScroller.actionPerformed): Implemented.
(DropTargetAutoScroller.stop): Implemented.
(DropTargetAutoScroller.updateLocation): Implemented.
(clearAutoscroll): Stop the autoscroller before nullifying it.
(createDropTargetAutoScroller): Don't set the field here,
only return a new instance.
(dragEnter): Only do something when active. Initialize
auto scrolling.
(dragExit): Only do something when active. Stop auto scrolling.
(dragOver): Only do something when active. Update auto scrolling.
(drop): Only do something when active. Update auto scrolling.
(dropActionChanged): Only do something when active. Update
auto scrolling.
(initializeAutoScrolling): Check if component is an instance
of Autoscroll, otherwise do nothing.
(setActive): Disable autoscrolling when deactivating.
(setComponent): When component is set to null, disable autoscrolling.
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextServicesSupport.java
(getChildBeanContextServicesListener): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java
(createGraphics): Use constructor to create new instance of
BufferedImageGraphics.
* java/awt/Toolkit.java
(getDefaultToolkit): Really try to get a real toolkit. Only
use HeadlessToolkit if no other is available.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(checkHeadless): New helper method. Checks for headless environment
and throws HeadlessException if appropriate.
(createButton): Check for headless.
(createCanvas): Check for headless.
(createCheckbox): Check for headless.
(createCheckboxMenuItem): Check for headless.
(createChoice): Check for headless.
(createDialog): Check for headless.
(createDragGestureRecognizer): Check for headless.
(createDragSourceContextPeer): Check for headless.
(createEmbeddedWindow): Check for headless.
(createFileDialog): Check for headless.
(createFrame): Check for headless.
(createCheckbox): Check for headless.
(createLabel): Check for headless.
(createList): Check for headless.
(createMenu): Check for headless.
(createMenuBar): Check for headless.
(createMenuItem): Check for headless.
(createPanel): Check for headless.
(createPopupMenu): Check for headless.
(createScrollbar): Check for headless.
(createScrollPane): Check for headless.
(createTextArea): Check for headless.
(createTextField): Check for headless.
(createWindow): Check for headless.
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(deserialize): Implemented,
(serialize): Implemented.
|
|
|
|
|
| |
* gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java
(createGraphics): Try to use Cairo graphics if available.
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(toArray): Added API docs,
(toArray(Object[])): Added API docs, removed NotImplementedException.
|
|
|
|
|
|
| |
* javax/swing/JRootPane.java
(setLayeredPane): Added documentation; throw
IllegalComponentStateException if layered pane parameter is null.
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(avoidingGui): Removed NotImplementedException.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(drawGlyphVector): Clip updated area to glyph bounds.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(createPath): Eliminate distortion when pixel-shifting rectangles; separate
x-coordinate and y-coordinate pixel shifting.
(shifted): Removed method.
(shiftX): New method, recognising scaling transforms.
(shiftY): New method, recognising scaling transforms.
(walkPath): Separate x-coordinate and y-coordinate pixel shifting.
|
|
|
|
|
|
| |
* java/awt/font/TextLayout.java
(hash): New field. Caches the hash code.
(hashCode): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/image/ImageFilter.java
Reformat whole class.
(getFilterInstance): Don't touch the consumer field. Don't check
consumer.
(imageComplete): Don't check consumer.
(setColorModel): Don't check consumer.
(setDimensions): Don't check consumer.
(setHints): Don't check consumer.
(setPixels): Don't check consumer.
(setProperties): Pass the original property too.
* java/awt/image/IndexColorModel.java
(IndexColorModel(int,int,byte[],byte[],byte[],int)): Set the
transparent pixel by calling the new helper method.
(IndexColorModel(int,int,byte[],int,boolean,int)): Set the
transparent pixel by calling the new helper method.
(IndexColorModel(int,int,int[],int,boolean,int,int)): Set the
transparent pixel by calling the new helper method.
(coerceData): Removed. This is not needed.
(getAlpha): Simply return value from color map. The transparent
pixel has to be there.
(setTransparentPixel): New helper method. Inserts the transparent
pixel.
* java/awt/image/RGBImageFilter.java
Reformat whole class.
(convertColorModelToDefault): Removed. No longer needed.
(filterIndexColorModel): Don't handle transparent pixels
separately.
(filterRGBPixels): Set pixels on consumer already.
(makeColor): Removed. No longer needed.
* java/awt/image/ReplicateScaleFilter.java
(replicatePixels): Removed.
(setDimension): Correctly compute destination size, avoid double
calculations.
(setPixels): Avoid double calculations. Fixed some boundary cases.
(setupSources): New helper method.
* java/awt/image/SampleModel.java
(setDataElements): Also handle TYPE_SHORT, TYPE_FLOAT
and TYPE_DOUBLE.
* java/awt/image/SinglePixelPackedSampleModel.java
(setDataElements(int,int,int,int,Object,DataBuffer)): Removed.
This is not needed as the superclass already copies line
by line.
(setDataElements(int,int,Object,DataBuffer)): Simplified code,
removed some checks that the RI also doesn't perform. Call
DataBuffer.setElem().
|