| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/text/DateFormat.java:
(computeInstance(int,int,Locale,boolean,boolean)):
Throw an exception when locale info. is unavailable.
(computeDefault(int,int,boolean,boolean)): New method.
(getDateInstance(int,Locale)): Check providers.
(getDateTimeInstance(int,int,Locale)): Likewise.
(getTimeInstance(int,Locale)): Likewise.
* java/text/DateFormatSymbols.java:
Update documentation to match DecimalFormatSymbols.
* java/text/DecimalFormatSymbols.java:
(DecimalFormatSymbols(Locale)): Reordered.
(getInstance()): Implemented.
(getInstance(Locale)): Implemented.
* java/text/NumberFormat.java:
(computeInstance(Locale,String,String)):
Throw an exception when locale info is unavailable.
(getCurrencyInstance(Locale)): Check providers.
(getIntegerInstance(Locale)): Likewise.
(getNumberInstance(Locale)): Likewise.
(getPercentInstance(Locale)): Likewise.
* java/text/spi/DateFormatProvider.java: New file.
* java/text/spi/DecimalFormatSymbolsProvider.java: Likewise.
* java/text/spi/NumberFormatProvider.java: Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 30337
* java/awt/Component.java
(getFontImpl): Return null when the component has no font set
and also has no parent yet.
* javax/swing/plaf/basic/BasicComboBoxUI.java
(PropertyChangeHandler.propertyChange): Only add editor when combo
box is editable. Avoid fetching the property name repeatedly.
Invalidate when renderer or prototypeDisplayValue change.
(uninstallComponents): Unconfigure everything and then remove all
components.
* javax/swing/plaf/basic/BasicComboPopup.java
(uninstallingUI): Don't nullify list model.
* javax/swing/plaf/metal/MetalComboBoxUI.java
(createArrowButton): Pass currentValuePane to the MetalComboBoxButton
constructor rather than a new (unconnected) CellRendererPane.
|
| |
|
|
|
|
|
| |
* java/text/Collator.java:
(getInstance(Locale)): Check providers.
* java/text/spi/CollatorProvider.java:
New file.
|
| |
|
|
|
|
|
| |
PR 30122
* java/awt/Component.java
(getFont): Don't synchronize on tree lock here. The method is
thread-safe 'enough' by fetching local variables in getFontImpl().
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes bug #29246
* java/awt/Toolkit.java (getLockingKeyState): Use AWTUtilities
isValidKey method. Throw UnsupportedOperationException on a valid
key (for which no locking state can be given).
* gnu/java/awt/AWTUtilities.java (isValidKey): New method.
* gnu/java/awt/peer/gtk/GtkToolkit.java (getLockingKeyState): New
method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(Java_gnu_java_awt_peer_gtk_GtkToolkit_getLockState): New method.
* include/gnu_java_awt_peer_gtk_GtkToolkit.h: Regenerated.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/text/BreakIterator.java:
(getCharacterInstance(Locale)): Check providers.
(getLineInstance(Locale)): Likewise.
(getSentenceInstance(Locale)): Likewise.
(getWordInstance(Locale)): Likewise.
* java/text/spi/BreakIteratorProvider.java:
New file.
* java/text/spi/DateFormatSymbolsProvider.java:
Update header text.
* java/util/ServiceConfigurationError.java:
Add serialVersionUID.
|
| |
|
|
|
|
|
| |
* java/awt/CardLayout.java:
(maximumLayoutSize): Return a new Dimension with a width of value
Integer.MAX_VALUE and a height of value Integer.MAX_VALUE if Component
has no components.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/text/DateFormatSymbols.java:
(getZoneStrings(ResourceBundle)): Changed to...
(getZoneStrings(ResourceBundle,Locale)): Added
use of TimeZoneNamesProvider.
(getZoneStrings()): Return either mutated zone
strings or initial ones.
(getInstance(Locale)): Check DateFormatSymbolsProvider
instances.
* java/text/spi/DateFormatSymbolsProvider.java:
New file.
* java/text/spi/package.html: New file.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/Currency.java:
(getSymbol(Locale)): Removed unneeded variable
and terminate loop early.
* java/util/Locale.java:
(getDisplayLanguage(Locale)): Fixed to use
LocaleNameProvider.
(getDisplayCountry(Locale)): Likewise.
(getDisplayVariant(Locale)): Likewise.
* java/util/spi/LocaleNameProvider.java:
New file.
* java/util/spi/TimeZoneNameProvider.java:
Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/locale/LocaleHelper.java:
(getLocalizedString(Locale,String,String,boolean,
boolean)): Removed, no longer needed.
(getFallbackLocale(Locale)): Implemented.
* java/lang/String.java:
(isEmpty()): Implemented.
* java/util/Currency.java:
(getSymbol(Locale)): Reimplemented to use SPI.
* java/util/Locale.java:
(ROOT): Added.
* java/util/spi/CurrencyNameProvider.java:
New file.
* java/util/spi/LocaleServiceProvider.java:
Likewise.
* java/util/spi/package.html: Likewise.
|
| |
|
|
|
|
|
|
|
| |
* ChangeLog-2006: New file.
* gnu/classpath/ServiceFactory.java:
Add option of throwing a ServiceConfigurationError.
(lookupProviders(Class,ClassLoader,boolean)): Implemented.
* java/util/ServiceConfigurationError.java: New file.
* java/util/ServiceLoader.java: Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/security/x509/X509Certificate.java (serialVersionUID):
new constant.
(extensions): parameterize.
(getExtendedKeyUsage): parameterize return type.
(getSubjectAlternativeNames): parameterize return type; handle changes
to `SubjectAlternativeNames' class.
(getIssuerAlternativeNames): parameterize return type; handle changes
to `IssuerAlternativeNames' class.
(getCriticalExtensionOIDs, getNonCriticalExtensionOIDs): parameterize
return type.
* gnu/java/security/x509/ext/CertificatePolicies.java
(policies, policyQualifierInfos): parameterize.
* gnu/java/security/x509/ext/ExtendedKeyUsage.java (purposeIds):
parameterize.
* gnu/java/security/x509/ext/Extension.java (<init>): add support
for NameConstraints extension.
* gnu/java/security/x509/ext/GeneralName.java: new class.
* gnu/java/security/x509/ext/GeneralNames.java (names): parameterize;
retrofit to use the GeneralName class.
* gnu/java/security/x509/ext/GeneralSubtree.java: new class.
* gnu/java/security/x509/ext/IssuerAlternativeNames.java (getNames):
change return type to GeneralName parameterized list.
* gnu/java/security/x509/ext/NameConstraints.java: new class.
* gnu/java/security/x509/ext/SubjectAlternativeNames.java (getNames):
change return type to GeneralName parameterized list.
* java/security/cert/X509CertSelector.java: re-sorted methods.
(makeName): new method.
(addPathToName, addPathToName, getPathToNames, getPolicy,
getSubjectAlternativeNames, setPathToNames, setPolicy): implemented.
(keyPurposeSet, altNames, policy): parametized.
(pathToNames): new field.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* java/text/DateFormatSymbols:
(DateFormatSymbols()): Update documentation.
(DateFormatSymbols(Locale)): Likewise.
(getInstance()): Implemented.
(getInstance(Locale)): Partially implemented.
* java/util/Calendar.java:
(SHORT, LONG, ALL_STYLES): New constants.
(getDisplayName(int,int,Locale)); Implemented.
(getDisplayNames(int,int,Locale)): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/Arrays.java:
(copyOf(boolean[],int)): Implemented.
(copyOfRange(boolean[],int,int)): Likewise.
(copyOf(byte[],int)): Likewise.
(copyOfRange(byte[],int,int)): Likewise.
(copyOf(char[],int)): Likewise.
(copyOfRange(char[],int,int)): Likewise.
(copyOf(double[],int)): Likewise.
(copyOfRange(double[],int,int)): Likewise.
(copyOf(float[],int)): Likewise.
(copyOfRange(float[],int,int)): Likewise.
(copyOf(int[],int)): Likewise.
(copyOfRange(int[],int,int)): Likewise.
(copyOf(long[],int)): Likewise.
(copyOfRange(long[],int,int)): Likewise.
(copyOf(short[],int)): Likewise.
(copyOfRange(short[],int,int)): Likewise.
(copyOf(T[],int)): Likewise.
(copyOfRange(T[],int,int)): Likewise.
(copyOf(U[],int,Class<? extends T>)): Likewise.
(copyOfRange(U[],int,int,Class<? extends T>)):
Likewise.
* java/util/Collections.java:
(asLifoQueue(Deque<T>)): Implemented.
(newSetFromMap(Map<E>)): Likewise.
(MapSet): New class for newSetFromMap.
(LIFOQueue): New class for asLifoQueue.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/AbstractMap.java:
(SimpleImmutableEntry): Document and add
serialVersionUID.
(SimpleEntry): Likewise, and fix JAPI errors.
* java/util/TreeMap.java:
(entrySet()): Return navigableSet instead.
(headMap(K, boolean)): Implemented.
(subMap(K, boolean, K, boolean)): Likewise.
(tailMap(K, boolean)): Likewise.
(highestLessThan(K,boolean)): Likewise.
(lowestGreaterThan(K,boolean,boolean)): Likewise.
(SubMap.ceilingEntry(K)): Likewise.
(SubMap.ceilingKey(K)): Likewise.
(SubMap.descendingKeySet()): Likewise.
(SubMap.descendingMap()): Likewise.
(SubMap.entrySet()): Return navigableSet instead.
(SubMap.firstEntry()): Implemented.
(SubMap.floorEntry(K)): Likewise.
(SubMap.floorKey(K)): Likewise.
(SubMap.headMap(K,boolean)): Likewise.
(SubMap.higherEntry(K)): Likewise.
(SubMap.higherKey(K)): Likewise.
(SubMap.lastEntry()): Likewise.
(SubMap.lowerEntry(K)): Likewise.
(SubMap.lowerKey(K)): Likewise.
(SubMap.navigableKeySet()): Likewise.
(SubMap.pollFirstEntry()): Likewise.
(SubMap.pollLastEntry()): Likewise.
(SubMap.subMap(K,boolean,K,boolean)): Likewise.
(SubMap.tailMap(K,boolean)): Likewise.
(SubMap.KeySet): New class for keySet().
(SubMap.NavigableKeySet): New class for navigableKeySet().
(SubMap.EntrySet): New class for entrySet().
(SubMap.NavigableEntrySet): Likewise.
(ceilingEntry(K)): Likewise.
(ceilingKey(K)): Likewise.
(descendingKeySet()): Likewise.
(descendingMap()): Likewise.
(firstEntry()): Implemented.
(floorEntry(K)): Likewise.
(floorKey(K)): Likewise.
(higherEntry(K)): Likewise.
(higherKey(K)): Likewise.
(lastEntry()): Likewise.
(lowerEntry(K)): Likewise.
(lowerKey(K)): Likewise.
(navigableKeySet()): Likewise.
(pollFirstEntry()): Likewise.
(pollLastEntry()): Likewise.
(DescendingMap): New class for descendingMap().
(KeySet): New class for keySet().
(NavigableKeySet): New class for navigableKeySet().
(DescendingSet): New class for descendingSet().
(EntrySet): New class for entrySet().
(NavigableEntrySet): Likewise.
* java/util/TreeSet.java:
(headSet(T,boolean)): Implemented.
(subSet(T,boolean,T,boolean)): Likewise.
(tailSet(T,boolean)): Likewise.
(descendingIterator()): Likewise.
(descendingSet()): Likewise.
(floor(T)): Likewise.
(higher(T)): Likewise.
(lower(T)): Likewise.
(pollFirst(T)): Likewise.
(pollLast(T)): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/LinkedList.java:
(offer(T)): Documented.
(element()): Likewise.
(peek()): Likewise.
(poll()): Likewise.
(remove()): Likewise.
(descendingIterator()): Implemented.
(offerFirst(T)): Likewise.
(offerLast(T)): Likewise.
(peekFirst()): Likewise.
(peekLast()): Likewise.
(pollFirst()): Likewise.
(pollLast()): Likewise.
(pop()): Likewise.
(push(T)): Likewise.
(removeFirstOccurrence(Object)): Likewise.
(removeLastOccurrence(Object)): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Mention 1.6 support for java.lang.management
* configure.ac: Check for getloadavg.
* examples/gnu/classpath/examples/management/TestOS.java:
Print system load average.
* gnu/java/lang/management/OperatingSystemMXBeanImpl.java:
(getSystemLoadAverage()): Implemented.
* include/Makefile.am: Add new header.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h:
Regenerated.
* include/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.h:
Generated.
* java/lang/management/OperatingSystemMXBean.java:
(getSystemLoadAverage()): Implemented.
* native/jni/java-lang/Makefile.am: Add new native code.
* native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c:
New file.
* vm/reference/gnu/java/lang/management/VMOperatingSystemMXBeanImpl.java:
Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/vmintegration.texinfo:
Updated to match new threading bean API.
* gnu/java/lang/management/ThreadMXBeanImpl.java:
(MONITOR_SUPPORT): New constant for object monitor
lock support property.
(SYNCHRONIZER_SUPPORT): New constant for ownable
synchronizer lock support property.
(dumpAllThreads(boolean,boolean)): Implemented.
(findDeadlockedThreads()): Likewise.
(getThreadInfo(long[],boolean,boolean)): Likewise.
(isObjectMonitorUsageSupported()): Likewise.
(isSynchronizerUsageSupported()): Likewise.
* java/lang/management/ThreadInfo.java:
(ThreadInfo(Thread,long,long,Object,Thread,long,
long,boolean,boolean,StackTraceElement[],
MonitorInfo[], LockInfo[])): New constructor.
(ThreadInfo(long,String,Thread.State,long,long,
String,long,String,long,long,boolean,boolean,
StackTraceElement[],MonitorInfo[], LockInfo[])):
Likewise.
(from(CompositeData)): Updated to handle new attributes.
(getLockedMonitors()): Implemented.
(getLockedSynchronizers()): Likewise.
(getLockInfo()): Likewise.
(getLockName()): Handle blocking as documented in 1.6
(getLockOwnerId()): Likewise.
(getLockOwnerName()): Likewise.
(toString()): Likewise.
(isThreadBlocked()): Thread blocked check based on
documented 1.6 semantics.
* java/lang/management/ThreadMXBean.java:
(dumpAllThreads(boolean,boolean)): Implemented.
(findDeadlockedThreads()): Likewise.
(getThreadInfo(long[],boolean,boolean)): Likewise.
(isObjectMonitorUsageSupported()): Likewise.
(isSynchronizerUsageSupported()): Likewise.
* vm/reference/gnu/java/lang/management/VMThreadMXBeanImpl.java:
(findDeadlockedThreads()): New native method.
(getLockInfo(ThreadInfo)): Likewise.
(getMonitorInfo(ThreadInfo)): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/management/MonitorInfo.java:
Make variables private.
* java/util/Arrays.java:
(binarySearch(byte[],byte)): Implemented in terms
of range-based variant.
(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(byte[],int,int,byte)): Implemented.
(binarySearch(short[],int,int,short)): Likewise.
(binarySearch(int[],int,int,int)): Likewise.
(binarySearch(long[],int,int,long)): Likewise.
(binarySearch(char[],int,int,char)): Likewise.
(binarySearch(float[],int,int,float)): Likewise.
(binarySearch(double[],int,int,double)): Likewise.
(binarySearch(Object[],int,int,Object)): Likewise.
(binarySearch(T[],int,int,T,Comparator)): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/ConstructorProperties.java:
New file.
* java/lang/management/LockInfo.java:
Likewise.
* java/lang/management/MonitorInfo.java:
Likewise.
* java/lang/management/ThreadInfo.java:
(getStackTraceType()): New method to
make the StackTraceElement type accessible.
(from(CompositeData)): Refactored to use
getStackTraceType().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/Pair.java: New class.
* java/io/ObjectInputStream.java:
(readUnshared()): Implemented.
(readObject(boolean)): Renamed from readObject
in order to handle unshared serialization.
(parseContent(byte,boolean)): Added unshared parameter.
(assignNewHandle(Object,boolean)): Likewise.
(rememberHandle(Object,boolean,int)): Likewise.
(lookupHandle(int)): Added handling of invalidated handles.
(processResolution(ObjectStreamClass,Object,int,boolean)):
Added unshared parameter.
* java/io/ObjectOutputStream.java:
(writeUnshared()): Implemented.
(writeObject(Object,boolean)): Renamed from
writeObject(Object) in order to handle
unshared serialization.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Correct handling of
CompositeData objects.
* java/lang/management/ManagementFactory.java:
(ManagementInvocationHandler.invoke(Object,
Method,Object[])): Handle translation and notifications.
(ManagementInvocationHandler.translate(Object,
Method)): Implement type translation.
* java/lang/management/MemoryUsage.java:
(from(CompositeData)): Fix capitalisation.
* java/lang/management/ThreadInfo.java:
(from(CompositeData)): Likewise.
* javax/management/StandardMBean.java:
(getMBeanInfo()): Add notification handling.
|
| |
|
|
|
| |
* java/util/GregorianCalendar.java,
(add): Don't set fields directly anymore. Use set()
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* .settings/org.eclipse.jdt.core.prefs: set compilation flag to warning
instead of error for empty control flow statements.
* gnu/javax/swing/text/html/css/CSSParser.java (parseSelector):
(parseValue): Reverted last change.
* java/text/BreakIterator.java (preceding): likewise.
* external/jsr166/java/util/AbstractQueue.java (clear): likewise.
* gnu/java/io/Base64InputStream.java (read): likewise.
* javax/swing/text/DefaultStyledDocument.java (ElementBuffer.insertUpdate):
likewise.
* java/util/zip/DeflaterEngine.java (findLongestMatch): likewise.
* java/util/zip/ZipInputStream.java (closeEntry): likewise.
* java/util/zip/DeflaterHuffman.java (Tree.buildLength): likewise.
* java/io/StreamTokenizer.java (nextToken): likewise.
* gnu/javax/imageio/png/PNGICCProfile.java (PNGICCProfile): likewise.
* gnu/java/awt/font/opentype/truetype/VirtualMachine.java (execute):
likewise.
* gnu/java/nio/charset/ByteCharset.java (Decoder.decodeLoop): likewise.
Also fixed typo.
* gnu/java/awt/print/PostScriptGraphics2D.java (spoolPostScript): likewise.
* gnu/java/awt/print/JavaPrinterGraphics.java (spoolPostScript): likewise.
* gnu/javax/net/ssl/provider/SSLRSASignatureImpl.java (engineVerify):
likewise.
* javax/swing/text/html/CSSParser.java:
(parse): likewise.
* java/lang/String.java (trim): likewise.
* java/lang/StrictMath.java (remPiOver2): likewise.
* gnu/java/awt/peer/qt/QtToolkit.java (QtToolkit): likewise.
* javax/swing/JComponent.java (paintImmediately2): likewise.
(paintChildren): likewise.
* java/util/EnumMap.java (..next): likewise.
* java/util/BitSet.java (length): likewise.
* java/util/Collections.java (binarySearch): likewise.
* java/util/StringTokenizer.java (nextToken): likewise.
* java/util/PriorityQueue.java (.next): likewise.
* java/math/BigInteger.java (BigInteger): likewise.
* gnu/java/lang/management/BeanImpl.java (translate): likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/imageio/spi/ServiceRegistry.java: fixed Empty control-flow
statement.
* tools/gnu/classpath/tools/rmid/ActivationSystemImpl.java: likewise.
* gnu/java/io/Base64InputStream.java (read): likewise.
* gnu/javax/swing/text/html/CharacterAttributeTranslator.java: likewise.
* java/util/zip/DeflaterEngine.java (findLongestMatch): likewise.
* java/util/zip/ZipInputStream.java (closeEntry): likewise.
* java/util/zip/DeflaterHuffman.java (Tree.buildLength): likewise.
* org/omg/CORBA/ORB.java: likewise.
* javax/swing/plaf/metal/MetalFileChooserUI.java: likewise.
* gnu/javax/imageio/png/PNGICCProfile.java (PNGICCProfile): likewise.
* tools/external/asm/org/objectweb/asm/xml/ASMContentHandler.java: likewise.
* java/text/MessageFormat.java (MessageFormatElement.setLocale): likewise.
* java/text/BreakIterator.java (preceding): likewise.
* gnu/javax/net/ssl/provider/SSLEngineImpl.java: likewise.
* gnu/javax/net/ssl/provider/SSLRSASignatureImpl.java (engineVerify):
likewise.
* java/beans/XMLEncoder.java (writeObject): likewise.
* gnu/java/beans/encoder/ScanEngine.java (ScanEngine): likewise.
* java/util/Collections.java (binarySearch): likewise.
* java/util/StringTokenizer.java (nextToken): likewise.
* java/util/PriorityQueue.java (.next): likewise.
* java/util/EnumMap.java (..next): likewise.
* java/util/BitSet.java (length): likewise.
* java/util/Date.java (parse): likewise.
* javax/swing/text/html/CSSParser.java (parse): likewise.
* javax/swing/plaf/basic/BasicTabbedPaneUI.java
(TabbedPaneScrollLayout.calculateTabRects): likewise.
* java/lang/Character.java (UnicodeBlock): likewise.
* java/lang/String.java (trim): likewise.
* java/lang/StrictMath.java (remPiOver2): likewise.
* javax/swing/JFormattedTextField.java (commitEdit): likewise.
* javax/swing/JComponent.java (paintImmediately2): likewise.
(paintChildren): likewise.
* javax/swing/JToolTip.java (paramString): likewise.
* javax/swing/JEditorPane.java (JEditorPane): likewise.
* gnu/CORBA/Poa/gnuPOA.java: likewise.
* gnu/javax/security/auth/login/ConfigFileParser.java
(parseAppOrOtherEntry): likewise.
(parse): likewise.
* java/math/BigInteger.java (setBitOp): likewise.
(add): likewise.
(BigInteger): likewise.
* gnu/java/lang/management/BeanImpl.java (translate): likewise.
* javax/swing/text/DefaultStyledDocument.java (ElementBuffer.insertUpdate):
likewise.
* javax/swing/text/AbstractDocument.java (BranchElement): likewise.
* javax/swing/text/JTextComponent.java (getScrollableTracksViewportWidth):
likewise.
* javax/swing/text/FieldView.java (checkContainer): likewise.
* javax/swing/text/AsyncBoxView.java (ChildLocator.updateChildOffsets):
likewise.
* java/text/DecimalFormat.java (formatToCharacterIterator): likewise.
(parse): small refactoring.
|
| |
|
|
|
| |
* java/lang/Enum.java:
(finalize()): Implemented.
|
| |
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(getAttribute(String)): Fix Map and List conversion.
* java/lang/management/ManagementFactory.java:
(newPlatformMXBeanProxy(MBeanServerConnection,
String, Class<T>)): Add a comma.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Genericized.
(VMNetworkInterface): Updated.
* java/net/URLClassLoader.java (urls): Genericized.
(urlinfos): Likewise.
(addURLImpl): Updated.
(findClass): Likewise.
(newInstance): Likewise.
* java/net/URL.java (ph_cache): Genericized.
(getURLStreamHandler): Updated.
* java/net/ResolverCache.java (cache): Genericized.
(killqueue): Likewise.
* java/net/NetworkInterface.java (getInetAddresses): Genericized.
* java/net/MimeTypeMapper.java (mime_types): Genericized.
(fillFromFile): Likewise.
(main): Likewise.
* gnu/java/net/protocol/jar/Handler.java (flat): Genericized.
* gnu/java/net/protocol/jar/Connection.java (JarFileCache.cache):
Genericized.
(JarFileCache.get): Updated.
* gnu/java/net/protocol/http/SimpleCookieManager.java (cookies):
Genericized.
(SimpleCookieManager): Updated.
(setCookie): Likewise.
(getCookies): Likewise.
(addCookies): Likewise.
* gnu/java/net/protocol/http/Request.java (responseHeaderHandlers):
Genericized.
(Request): Updated.
(createResponseBodyStream): Removed unused variable.
* gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Remove
unused variable.
(getRequestProperties): Genericized.
* gnu/java/net/protocol/http/HTTPConnection.java
(handshakeCompletedListeners): Genericized.
(nonceCounts): Likewise.
(HTTPConnection): Updated.
(Pool.connectionPool): Likewise.
(getNonceCount): Updated.
(incrementNonce): Likewise.
* gnu/java/net/protocol/http/Headers.java (headers): Genericized.
* gnu/java/net/protocol/http/ChunkedInputStream.java (CR, LF): Removed
unused fields.
* gnu/java/net/protocol/ftp/FTPURLConnection.java (connect):
Genericized.
(getRequestProperties): Likewise.
(addRequestPropertyValue): Likewise. Fixed return result.
* gnu/java/net/protocol/ftp/FTPConnection.java (nameList):
Genericized.
* gnu/java/net/local/LocalSocket.java: Fixed imports.
* gnu/java/net/local/LocalServerSocket.java: Fixed imports.
* gnu/java/net/loader/URLStreamHandlerCache.java (factoryCache):
Genericized.
(add): Updated.
(get): Likewise.
* gnu/java/net/loader/URLLoader.java (getClassPath): Genericized.
* gnu/java/net/loader/JarURLLoader.java (classPath): Genericized.
(initialize): Updated.
(getClassPath): Genericized.
* gnu/java/net/IndexListParser.java (prefixes): Genericized.
(IndexListParser): Updated.
(getHeaders): Likewise.
* gnu/java/net/HeaderFieldHelper.java (headerFieldKeys): Genericized.
(headerFieldValues): Likewise.
(HeaderFieldHelper): Updated.
(getHeaderFieldValueByKey): Likewise.
(getHeaderFields): Likewise.
* gnu/java/net/GetLocalHostAction.java: Genericized.
* gnu/java/net/DefaultContentHandlerFactory.java (imageTypes):
Genericized.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/prefs/AbstractPreferences.java (childCache): Genericized.
(nodeListeners): Likewise.
(preferenceListeners): Likewise.
(cachedChildren): Rewrote.
(childrenNames): Updated.
(addNodeChangeListener): Likewise.
(addPreferenceChangeListener): Likewise.
* gnu/java/util/prefs/gconf/GConfNativePeer.java (getKeys):
Genericized.
(getChildrenNodes): Likewise.
(gconf_client_all_nodes): Likewise.
(gconf_client_all_keys): Likewise.
* gnu/java/util/prefs/MemoryBasedPreferences.java (entries):
Genericized.
(keysSpi): Likewise.
(getSpi): Likewise.
* gnu/java/util/prefs/GConfBasedPreferences.java (childrenNamesSpi):
Genericized.
(keysSpi): Likewise.
(postorderRemove): Likewise.
* gnu/java/util/prefs/EventDispatcher.java (queue): Genericized.
(run): Updated.
|
| |
|
|
|
|
| |
* java/lang/management/ManagementFactory.java:
(newPlatformMXBeanProxy(MBeanServerConnection,
String, Class<T>)): Initial implementation.
|
| |
|
|
|
|
|
| |
* java/util/Collections.java:
(toArray()): Return Object[] as required.
(toArray(S[])): Use new type variable S rather than
the class one.
|
| |
|
|
| |
(UnmodifiableEntrySet.toArray): Fix bad casts.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/security/cert/X509Certificate.java: Remove gcj workaround.
* java/net/ServerSocket.java (ServerSocket): Remove gcj
workaround.
(getImpl): Likewise.
* java/util/TreeMap.java (TreeIterator): Remove gcj workaround.
* java/text/AttributedStringIterator.java (getRunLimit): Remove
qualifications.
(getRunStart): Likewise.
* java/awt/AWTKeyStroke.java (removeEldestEntry): Remove gcj
workaround.
* java/awt/AlphaComposite.java (removeEldestEntry): Remove gcj
workaround.
* java/awt/geom/GeneralPath.java (WIND_EVEN_ODD, WIND_NON_ZERO,
BIG_VALUE): Don't fully qualify.
* gnu/javax/sound/midi/alsa/AlsaMidiSequencerDevice.java: Removed
imports.
* gnu/javax/sound/midi/alsa/AlsaPortDevice.java: Removed import.
* gnu/javax/sound/midi/dssi/DSSISynthesizer.java: Removed import.
* javax/swing/JComponent.java (firePropertyChange): Removed.
* javax/swing/text/InternationalFormatter.java (clone):
Uncomment.
* javax/swing/text/AbstractDocument.java (addEdit): Remove gcj
workaround.
(getChange): Likewise.
|
| | |
|
| |
|
|
|
| |
* java/awt/print/PrinterJob.java
(lookupStreamPrintServices): Uncommented and fixed parameters.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/datatransfer/SystemFlavorMap.java
(flavorToNativeMap): Make typesafe.
(nativeToFlavorMap): Make typesafe.
(SystemFlavorMap): Read in mapping by reading the flavormap.properties.
(addFlavorForUnencodedNative): Access maps in a typesafe way.
(addUnencodedNativeForFlavor): Access maps in a typesafe way.
(getFlavorsForNative): Implemented.
(getNativesForFlavor): Implemented.
(setupMapping): New helper method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/lang/Class.java:
(getClasses()): Return Class<?>[].
(internalGetClasses()): Likewise.
(getConstructor(Class<?>...)): Add type parameter
to parameters.
(getDeclaredConstructor(Class<?>...)): Likewise.
(getDeclaredClasses()): Return Class<?>[].
(getDeclaredClasses(boolean)): Likewise.
(getDeclaredConstructors()): Return Constructor<?>[].
(getDeclaredConstructors(boolean)): Likewise.
(getDeclaredMethod(String,Class<?>...)): Add type
parameter to parameters.
(getInterfaces()): Return Class<?>[].
(getMethods(String,Class<?>...)): Add type
parameter to parameters.
* java/text/CollationKey.java:
Make non-final.
* java/text/DecimalFormatSymbols.java:
Likewise.
|
| |
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Comment out code for using type
variables for Map and List.
* java/lang/Thread.java:
(Thread(ThreadGroup,Runnable,String,long)): Fix
incrementation of totalThreadsCreated to be prior to use.
|
| |
|
|
| |
* Merge of generics-branch to HEAD (woohoo!)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SocketException.
(HTTPConnection): Handle NumberFormatException in properties parsing.
(Pool.get): Set timeout on reused sockets.
* gnu/java/net/protocol/http/HTTPURLConnection.java (proxyPort):
Initialize.
(HTTPURLConnection): Cleanup properties handling.
(getConnection): Use both connection and read timeouts.
(setConnectTimeout): Removed.
(setReadTimeout): New method.
* java/net/URLConnection.java (timeout): Renamed to...
(connectTimeout): ... connectTimeout throughout.
(readTimeout): New field.
(getReadTimeout): New method.
(setReadTimeout): New method.
|
| |
|
|
|
|
| |
* java/awt/ScrollPane.java
(doLayout): Change the location of the scrollpane's child
to (0, 0).
|
| |
|
|
|
|
|
|
|
|
| |
* java/awt/ScrollPane.java
(getScrollPosition): Throw NullPointerException if scrollpane
does have a child.
(setScrollPosition(int, int)): Throw NullPointerException if
scrollpane does have a child. Check that both ints are within
the allowed bounds; If they are not, scroll to the closest allowed
bound.
|
| |
|
|
|
|
|
| |
private constructor.
(URL(URL,String,URLStreamHandler)): Call new constructor.
(URL(URL,String)): Likewise.
(URL(String)): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/ScrollPane.java (addNotify): Add a parent panel for any
lightweight component, not just for non-Panel components.
(addImpl): Do not call doLayout.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(setNativeBounds): Ensure widget parent is a GtkFixed before
calling gtk_fixed_move.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
(setNativeBounds): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(setNativeBounds): Likewise.
|
| |
|
|
|
| |
* java/awt/geom/RectangularShape.java
(getBounds): Remove empty rectangle check.
|
| |
|
|
|
|
|
|
| |
* java/awt/BasicStroke.java
(capEnd): Prevent division by zero.
* java/awt/geom/Arc2D.java
(ArcIterator.ArcIterator): Do not shift the arc to make the extent positive.
(ArcIterator.currentSegment): Handle a negative extent.
|
| |
|
|
|
| |
* java/awt/Component.java (getFontImpl): Return a default font if
topmost parent's font is null.
|
| |
|
|
|
|
|
|
| |
* java/lang/management/ThreadInfo.java (ThreadInfo): Check
whether given a null lock and lockOwner.
(getLockName): Switch condition.
(getLockOwnerId): Likewise.
(getLockOwnerName): Likewise.
|
| |
|
|
|
|
| |
* java/awt/font/TextLayout.java
(hitTestChar): Fixed conditions for inclusion of range.
Use layout information in the run for more efficiency.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Don't assume the list uses "E",
just use the first and only type variable.
* java/lang/management/ManagementFactory.java:
(getPlatformMBeanServer()): Register logging bean.
* javax/management/openmbean/OpenType.java:
(OpenType(String,String,String)): Actually use
the string created to handle arrays.
|