| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
it is still running.
|
|
|
|
|
|
| |
* java/awt/font/TextHitInfo.java
(equals(TextHitInfo)): If TextHitInfo parameter is null, return false.
(beforeOffset): Decreased first parameter by 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(toArray): Added API docs,
(toArray(Object[])): Added API docs, removed NotImplementedException.
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(avoidingGui): Removed NotImplementedException.
|
|
|
|
|
|
| |
* 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().
|
|
|
|
|
| |
* java/awt/text/TextLayout.java
(getLogicalRangesForVisualSelection): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/text/TextLayout.java
(Run.isLeftToRight): New helper method.
(logicalToVisual): New field. Maps logical indices to visual
indices.
(visualToLogical): New field. Maps visual indices to logical
indices.
(TextLayout): Setup mappings.
(setupMappings): New method for setting up the mappings.
(getCharacterLevel): Reorganized code.
(getNextLeftHit(int)): Implemented.
(getNextLeftHit(int,CaretPolicy)): New method.
(getNextLeftHit(TextHitInfo)): Implemented.
(getNextRightHit(int)): Implemented.
(getNextRightHit(int,CaretPolicy)): New method.
(getNextRightHit(TextHitInfo)): New method.
(getVisualOtherHit): Implemented.
(checkHitInfo): New helper methods for checking parameters.
(hitToCaret): New helper method. Maps hit infos to caret locations.
(caretToHit): New helper method. Maps caret locations to hit infos.
(isCharacterLTR): New helper method.
(CaretPolicy.getStrongCaret): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/text/TextLayout.java
(Run): New inner helper class.
(length): New field.
(naturalBounds): New field.
(offset): New field.
(runIndices): Removed. This is now encapsulate in a Run object.
(runs): Changed to Run[].
(string): Changed to char[].
(totalAdvance): New field. Caches advance value.
(TextLayout(String,Font,FontRenderContext)): Change to store
string as char[] and run layout as Run[]. Clean out empty
run items.
(TextLayout(TextLayout,int,int)): Change to store
string as char[] and run layout as Run[].
(clone): Call private constructor for maximum efficiency.
(determineWhitespace): Adapted to use char[] data.
(draw): Adapted to use Run objects.
(getAdvance): Cache computed total advance.
(getBlackBoxBounds): Adapted to use Run objects.
(getCaretInfo): Use natural layout bounds.
(getCharacterCount): Return length field.
(getLogicalHighlightShape): Adapted to use Run objects.
(getNaturalBounds): New helper method. Calculates and returns the
natural bounds of this text layout.
(getOutline): Adapted to use Run objects.
(getStringProperties): Adapted to use char[] data.
(getVisibleAdvance): Adapted to use char[] and Run data.
(handleJustify): Adapted to use char[] and Run data.
(hitTestChar(float,float,Rectangle2D)): Implemented.
(hitTestChar(float,float)): Use natural bounds.
(setCharIndices): Adapted to use char[] and Run data.
(toString): Adapted to use char[] and Run data.
* java/text/Bidi.java
(requiresBidi): Exclude paragraph separators from bidi-triggers.
|
|
|
|
|
|
|
|
|
| |
* java/util/jar/JarFile.java (digestAlgorithms): New field used to cache
digest algorithm implementations.
(readSignatures): Parse the manifest once and reuse that data.
Add support for line breaks.
(verifyHashes): Use the parsed manifest entry.
(readManifestEntry): Removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextServicesSupport.java:
Added more documentation.
(addService(Class,BeanContextServiceProvider,boolean)):
Synchronized over global hierarchy lock.
(bcsPreDeserializationHook(ObjectInputStream)): Implemented.
(bcsPreSerializationHook(ObjectOutputStream)): Implemented.
(childJustRemovedHook(Object,BCSChild)): Implemented.
(createBCSSServiceProvider(Class,BeanContextServiceProvider)):
Implemented.
(fireServiceRevoked(BeanContextServiceRevokedEvent)):
Added revocation-only listeners.
(getBeanContextServicesPeer()): Implemented.
(getCurrentServiceClasses(Class)): Synchronized over global
hierarchy lock.
(getCurrentServiceSelectors(Class)): Synchronized over global
hierarchy lock, and fixed FIXME.
(getService(BeanContextChild,Object,Class,Object,
BeanContextServiceRevokedListener)): Implemented.
(hasService(Class)): Synchronized over global hierarchy lock.
(releaseService(BeanContextChild,Object,Object)): Implemented.
(revokeService(Class,BeanContextServiceProvider,boolean)): Implemented.
* java/beans/beancontext/BeanContextSupport.java:
(remove(Object, boolean)): Documentation correction.
|
|
|
|
|
| |
* java/net/DatagramSocket.java (getLocalAddress, connect,
receive): Perform security check on address not hostname.
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(getChildBeanContextMembershipListener): Implemented,
(getChildPropertyChangeListener): Implemented,
(getChildSerializable): Implemented,
(getChildVetoableChangeListener): Implemented,
(getChildVisibility): Implemented,
(setDesignTime): Use same property name as Sun's implementation.
|
|
|
|
|
|
| |
* java/beans/DesignMode.java: Reformatted and removed a FIXME,
* java/beans/Statement.java
(toString): Updated to match reference implementation.
|
|
|
|
|
| |
* java/awt/image/IndexColorModel.java
(createCompatibleSampleModel): Implemented missing method.
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(getChildBeanContextChild): Implemented.
|
|
|
|
|
|
| |
* java/util/Collections.java
(sort(List)): Minor API doc addition,
(sort(List, Comparator)): Likewise.
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment,
* gnu/java/awt/peer/headless/HeadlessToolkit: New classes.
Implement basic headless toolkit.
* java/awt/Toolkit.java
(getDefaultToolkit): Check headless property and create
headless toolkit when true.
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(BeanContextSupport): Use correct dtime default,
(BeanContextSupport(BeanContext)): Likewise,
(BeanContextSupport(BeanContext, Locale)): Likewise, plus renamed
locale argument,
(BeanContextSupport(BeanContext, Locale, boolean)): Likewise,
(BeanContextSupport(BeanContext, Locale, boolean, boolean)): Likewise.
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(getBeanContextPeer): Implemented.
|
|
|
|
|
|
| |
Fixes bug #29770
* java/beans/SimpleBeanInfo.java
(loadImage): Check for nulls.
|
|
|
|
|
|
| |
* java/io/OutputStreamWriter.java
(OutputStreamWriter(OutputStream,Charset)): Set encodingName.
(OutputStreamWriter(OutputStream,CharsetEncoder)): Likewise.
|
|
|
|
|
|
| |
* java/awt/FlowLayout.java
(getSize): If parent does not have a component, then a
different formula is used to calcuate the width.
|
|
|
|
|
| |
* java/awt/TextComponent.java
(setSelectionStart): Added check.
|
|
|
|
|
|
|
|
| |
* java/awt/TextField.java
(minimumSize(int)): Check if minimum size has been previously
set and changed values of Dimension returned if peer == null.
(preferredSize(int)): Check if preferred size has been previously
set and changed values of Dimension returned if peer == null.
|
|
|
|
|
| |
Fixes bug #29703
* java/util/regex/Matcher.java(reset): Reset inputCharIndexed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/TextArea.java
(getMinimumSize): Changed documentation.
(getPreferredSize): Changed documentation.
(getMinimumSize(int,int)): Changed documenation.
(getPreferredSize(int,int)): Changed documenation.
(minimumSize): Changed documentation.
(preferredSize): Changed documenation.
(minimumSize(int,int)): Changed documentation. Checked if
minimum size had been previously set and changed values of
Dimension returned if peer == null.
(preferredSize(int, int)): Checked if preferred size had been
previously set and changed values of Dimension returned if
peer = null.
|
|
|
|
|
| |
* java/awt/event/ComponentEvent.java
(paramString): Changed format of string representation returned.
|
|
|
|
| |
* java/awt/geom/GeneralPath.java: API doc fixes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29644
* gnu/java/awt/peer/ClasspathFontPeer.java
(getStringBounds): Removed abstract method. This is replaced
in java.awt.Font to use a TextLayout.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(GtkWindowPeer): Set a font on the window object.
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(FreetypeGlyphVector(Font,String,FontRenderContext,int)):
Changed to take char,int,int instead of String. Filter
control characters.
(FreetypeGlyphVector(Font,String,FontRenderContext)):
Create char array out of string.
(getLogicalBounds): Don't translate bounds. They already are
translated.
* gnu/java/awt/peer/gtk/GdkFontMetrics.java
(stringWidth): Filter out control characters.
* gnu/java/awt/peer/gtk/GdkFontPeer.java
(getStringBounds): Removed unneeded method.
(layoutGlyphVector): Pass char array directly to FreetypeGlyphVector
constructor.
* gnu/java/awt/peer/qt/QtFontPeer.java
(getStringBounds): Removed unneeded method.
* gnu/java/awt/peer/x/XFontPeer.java
(getStringBounds): Removed unneeded method.
* gnu/java/awt/peer/x/XFontPeer2.java
(getStringBounds): Removed unneeded method.
* java/awt/Font.java
(getStringBounds(char[],int,int,FontRenderContext)):
Use TextLayout to determine the bounds.
(getStringBounds(CharacterIterator,int,int,FontRenderContext)):
Delegate to the char[] version of this method.
(getStringBounds(String,FontRenderContext)):
Delegate to the char[] version of this method.
(getStringBounds(String,int,int,FontRenderContext)):
Delegate to the String version of this method.
|
|
|
|
|
|
| |
* java/awt/ScrollPaneAdjustable.java
(paramString): Changed format of string representation returned.
(paramStringHelper): New private method.
|
|
|
|
|
| |
* java/awt/GridBagLayout.java
(toString): Implemented method.
|
|
|
|
|
|
| |
* java/awt/dnd/DragSourceContext.java
(dragExit): Use constant fields instead of 0.
(updateCurrentCursor): Completed implementation.
|
|
|
|
|
|
| |
* java/awt/dnd/DragGestureRecognizer.java
(resetRecognizer): Added API docs. Do not replace the events object
but rather clear() it. Removed not implemented tag.
|
|
|
|
|
| |
* java/awt/datatransfer/DataFlavor.java
(writeExternal): Remove not implemented tag.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/datatransfer/DataFlavor.java
(javaFileListFlavor): Don't explicitly specify class.
(plainTextFlavor): Don't explicitly specify class.
(mimeType): Changed to type MimeType. Remove final.
(representationClass): Remove final.
(DataFlavor): Don't do anything here.
(DataFlavor(Class,String,String)): Removed.
(DataFlavor(Class,String)): Initialize here.
(DataFlavor(String,String,ClassLoader)): Initialize in init().
(DataFlavor(String,String)): Initialize in init().
(DataFlavor(String)): Initialize in init().
(init): New initialization method.
(getMimeType): Delegate to MimeType.toString().
(getParameter(String,String)): Removed. Is now done in MimeType.
(getParameter(String)): Delegate to MimeType.
(getPrimaryType): Delegate to MimeType.
(getRepresentationClassFromMime): Removed.
(getRepresentationClassFromMimeThrows): Removed.
(getSubType): Delegate to MimeType.
(hashCode): Take MimeType.toString() for the hashCode.
(isFlavorRemoveObjectType): Return true only when representation
class is remove and serializable and the mime type is remote.
(isFlavorSerializedObjectType): Return true only when representation
class is serializable and the mime type is serialized.
(isMimeTypeEqual): Rewritten to delegate to MimeType.matches().
(isMimeTypeSerializedObject): Delegate to isMimeTypeEqual().
(readExternal): Implemented stub method.
(writeExternal): Implemented stub method.
* java/awt/datatransfer/MimeType.java: New helper class.
|
|
|
|
|
| |
* java/awt/FileDialog.java:
(setFile): Changed if-clause condition.
|