summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add remaining Set filters to ElementFilter.compiler-supportAndrew John Hughes2013-02-032-0/+60
| | | | | | | | | | | | 2013-02-03 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/util/ElementFilter.java: (constructorsIn(Set)): Implemented. (fieldsIn(Set)): Likewise. (methodsIn(Set)): Likewise. (packagesIn(Set)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Document ElementKind fields and add missing methods.Andrew John Hughes2013-02-012-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-02-01 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/element/ElementKind.java: (ANNOTATION_TYPE): Documented. (CLASS): Likewise. (CONSTRUCTOR): Likewise. (ENUM): Likewise. (ENUM_CONSTANT): Likewise. (EXCEPTION_PARAMETER): Likewise. (FIELD): Likewise. (INSTANCE_INIT): Likewise. (INTERFACE): Likewise. (LOCAL_VARIABLE): Likewise. (METHOD): Likewise. (OTHER): Likewise. (PACKAGE): Likewise. (PARAMETER): Likewise. (STATIC_INIT): Likewise. (TYPE_PARAMETER): Likewise. (isClass()): Implemented. (isField()): Likewise. (isInterface()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* For ElementFilter, the type of element should be determined by its kind, not ↵Andrew John Hughes2013-02-012-33/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by the class. 2013-02-01 Andrew John Hughes <gnu_andrew@member.fsf.org> The type of element should be determined by its kind, not by the class. * javax/lang/model/util/ElementFilter.java: (typesIn(Set)): Pass list of type kinds to FilteredSet constructor, rather than TypeElement.class. (ElementFilter.clazz): Removed. (ElementFilter.kinds): Added. (FilteredSet(Set,ElementKind...)): Take a varargs list of ElementKinds rather than a class. (FilteredSet.contains(Object)): Make test dependent on whether the element's kind is in the array of kinds, not whether it is an instance of a class. (FilteredSet.iterator()): Use new FilteredIterator constructor. (FilteredSet.remove(Object)): Call contains to check if filtered out or not. (FilteredSet.size()): Replace isInstance with binary search of kinds array. (FilteredSet.toArray(T[])): Cast to Object[] to populate array to avoid warning. (FilteredSet.toString()): Return normal toString() output for a collection using the filtered iterator. (FilteredIterator.clazz): Removed. (FilteredIterator.kinds): Added. (FilteredIterator.next): Set type to Element not E. (FilteredIterator(Iterator, ElementKind...)): Again, use varargs list of ElementKinds rather than class. (FilteredIterator.hasNext()): Replace instanceof with binary search. (FilteredIterator.next()): Suppress warnings when casting to E. Safe as we know it's an E via the kind test. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add missing exception classes in javax.lang.model.element.* and ↵Andrew John Hughes2013-01-049-0/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | javax.lang.model.type.*. This allows ecj 3.8.0 to build without modification. 2013-01-04 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/element/AnnotationValueVisitor.java: (visitUnknown(AnnotationValue,P)): Mention throwing of UnknownAnnotationValueException in documentation. * javax/lang/model/element/ElementVisitor.java: (visitUnknown(Element,P)): Likewise for UnknownElementException. * javax/lang/model/element/UnknownAnnotationValueException.java: Implemented. (serialVersionUID): New field. (annValue): Likewise. (param): Likewise. (UnknownAnnotationValueException(AnnotationValue,Object)): Implemented. (getArgument()): Likewise. (getUnknownAnnotationValue()): Likewise. * javax/lang/model/element/UnknownElementException.java, Implemented. (serialVersionUID): New field. (element): Likewise. (param): Likewise. (UnknownElementException(Element,Object)): Implemented. (getArgument()): Likewise. (getUnknownElement()): Likewise. * javax/lang/model/type/MirroredTypeException.java, Implemented. (serialVersionUID): New field. (mirror): Likewise. (MirroredTypeException(TypeMirror)): Implemented. (getTypeMirror()): Likewise. * javax/lang/model/type/MirroredTypesException.java, Implemented. (serialVersionUID): New field. (mirrors): Likewise. (MirroredTypeException(List)): Implemented. (getTypeMirrors()): Likewise. * javax/lang/model/type/TypeVisitor.java, (visitUnknown(TypeMirror,P)): Mention throwing of UnknownTypeException in documentation. * javax/lang/model/type/UnknownTypeException.java, Implemented. (serialVersionUID): New field. (type): Likewise. (param): Likewise. (UnknownTypeException(TypeMirror,Object)): Implemented. (getArgument()): Likewise. (getUnknownType()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Fix warnings in gnu.xml.validation.*Andrew John Hughes2012-12-2829-217/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-12-28 Andrew John Hughes <gnu_andrew@member.fsf.org> * gnu/xml/validation/datatype/AnySimpleType.java: (AnySimpleType()): Remove unneeded cast. * gnu/xml/validation/datatype/AtomicSimpleType.java: (AtomicSimpleType(QName,Set,int,SimpleType, Annotation)): Add type parameter to Set. * gnu/xml/validation/datatype/BooleanType.java: (VALUE_SPACE): Likewise. * gnu/xml/validation/datatype/DoubleType.java: (SPECIAL): Likewise. * gnu/xml/validation/datatype/DurationType.java: (Duration): Implement Comparable<Duration> not Comparable. (Duration.hashCode()): Add @Override. (Duration.equals(Object)): Likewise. (Duration.compareTo(Duration)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. (createValue(String,ValidationContext)): Remove unused months field. Set duration.years from years. * gnu/xml/validation/datatype/FloatType.java: (SPECIAL): Add type parameter. * gnu/xml/validation/datatype/GDayType.java, (GDay): Implement Comparable<GDay> not Comparable. (GDay.hashCode()): Add @Override. (GDay.equals(Object)): Likewise. (GDay.compareTo(GDay)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. * gnu/xml/validation/datatype/GMonthDayType.java: (GMonthDay): Implement Comparable<GMonthDay> not Comparable. (GMonthDay.hashCode()): Add @Override. (GMonthDay.equals(Object)): Likewise. (GMonthDay.compareTo(GMonthDay)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. * gnu/xml/validation/datatype/GMonthType.java: (GMonth): Implement Comparable<GMonth> not Comparable. (GMonth.hashCode()): Add @Override. (GMonth.equals(Object)): Likewise. (GMonth.compareTo(GMonth)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. * gnu/xml/validation/datatype/GYearMonthType.java, (GYearMonth): Implement Comparable<GYearMonth> not Comparable. (GYearMonth.hashCode()): Add @Override. (GYearMonth.equals(Object)): Likewise. (GYearMonth.compareTo(GYearMonth)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. * gnu/xml/validation/datatype/GYearType.java, (GYear): Implement Comparable<GYear> not Comparable. (GYear.hashCode()): Add @Override. (GYear.equals(Object)): Likewise. (GYear.compareTo(GYear)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. * gnu/xml/validation/datatype/ListSimpleType.java: (ListSimpleType(QName,Set,int,SimpleType,Annotation, SimpleType)): Add type parameter to Set. * gnu/xml/validation/datatype/MaxExclusiveFacet.java: (matches(Object)): Use Comparable<Object>. * gnu/xml/validation/datatype/MaxInclusiveFacet.java: (matches(Object)): Likewise. * gnu/xml/validation/datatype/MinExclusiveFacet.java: (matches(Object)): Likewise. * gnu/xml/validation/datatype/MinInclusiveFacet.java: (matches(Object)): Likewise. * gnu/xml/validation/datatype/SimpleType.java: (facets): Add type parameter to Set. (SimpleType(QName,int,Set,int,SimpleType,Annotation)): Likewise. (checkValid(String,ValidationContext)): Add type parameter to Iterator and remove unnecessary cast. * gnu/xml/validation/datatype/TimeType.java: (Time): Implement Comparable<Time> not Comparable. (Time.hashCode()): Add @Override. (Time.equals(Object)): Likewise. (Time.compareTo(Time)): Likewise and use specific type, which also fixes issue with it returning 0 for other objects, rather than throwing a ClassCastException. * gnu/xml/validation/datatype/TypeBuilder.java: (TypeBuilder(SimpleType)): Add type parameter. * gnu/xml/validation/datatype/TypeLibrary.java: (byName): Likewise. (static): Likewise. * gnu/xml/validation/datatype/UnionSimpleType.java: (memberTypes): Likewise. (UnionSimpleType(QName,Set,int,SimpleType,Annotation,List)): Likewise. (checkValid(String,ValidationContext)): Add type parameter to Iterator and remove unnecessary cast. * gnu/xml/validation/relaxng/DataPattern.java: (params): Add type parameter. * gnu/xml/validation/relaxng/FullSyntaxBuilder.java: (VOCABULARY): Likewise. (STRIPPED_ATTRIBUTES): Likewise. (PATTERN_ELEMENTS): Likewise. (EMPTY_STRING_SET): Added as a typesafe replacement for Collections.EMPTY_SET. (static): Add type parameters. (urls): Likewise. (datatypeLibraries): Likewise. (parse(Document)): Likewise and remove redundant casts. (getDefines(Set,Element,Element,boolean)): Add type parameter. (getElements(Set,Element,Element)): Likewise. (expandRefs(Set,Element)): Likewise. (transform(Node)): Remove redundant casts and add type parameters. (handleRefs(Node,Node,Node)): Fix logic error found by compiler. Check should be == null, not != null, or name will be null when dereferenced. (getComponents(Node)): Add type parameter. (forbidDescendants(Node,Set)): Likewise. (combineNodes(Node,String,String,List)): Likewise and remove redundant cast. (getDatatypeLibrary(String)): Add type parameter. * gnu/xml/validation/relaxng/Grammar.java: (defines): Add type parameter. * gnu/xml/validation/xmlschema/ComplexType.java: (attributeUses): Add type parameter. (annotations): Likewise. (ComplexType(QName,boolean,int,int)): Likewise. * gnu/xml/validation/xmlschema/XMLSchema.java: (elementDeclarations): Likewise. (attributeDeclarations): Likewise. (types): Likewise. (XMLSchema(String,String,int,int,boolean,boolean)): Likewise. * gnu/xml/validation/xmlschema/XMLSchemaBuilder.java: (parseSimpleType(QName)): Return type from schema if non-null and add ones returned from typeLibrary before returning. (parseSimpleType(Node)): Remove unused variable and replace with TODO. Add type parameter. (parseRestriction(Node,ComplexType)): Likewise. (parseExtension(Node,ComplexType)): Likewise. * gnu/xml/validation/xmlschema/XMLSchemaValidatorHandler.java: (context): Add type parameter. (attributes): Likewise. (XMLSchemaValidatorHandler(XMLSchema)): Likewise. (getElementTypeInfo()): Remove redundant cast. (getAttributeTypeInfo(int)): Likewise. (isIdAttribute(int)): Likewise. (isSpecified(int)): Likewise. (startElement(String,String,String,Attributes)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add missing Modifier and NestingKind enumerations and associated methods.Andrew John Hughes2012-12-288-0/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-12-27 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/element/Element.java: (getModifiers()): Added. (getSimpleName()): Likewise. * javax/lang/model/element/Modifier.java: New enumeration. (ABSTRACT): Added. (FINAL): Likewise. (NATIVE): Likewise. (PRIVATE): Likewise. (PROTECTED): Likewise. (PUBLIC): Likewise. (STATIC): Likewise. (STRICTFP): Likewise. (SYNCHRONIZED): Likewise. (TRANSIENT): Likewise. (VOLATILE): Likewise. * javax/lang/model/element/NestingKind.java: New enumeration. (ANONYMOUS): Added. (LOCAL): Likewise. (MEMBER): Likewise. (TOP_LEVEL): Likewise. (isNested()): Implemented. * javax/lang/model/element/TypeElement.java: (getNestingKind()): Added. * javax/tools/ForwardingJavaFileObject.java: (getAccessLevel()): Implemented. (getNestingKind()): Likewise. * javax/tools/JavaFileObject.java: (getAccessLevel()): Added. (getNestingKind()): Likewise. * javax/tools/SimpleJavaFileObject.java, (getAccessLevel()): Implemented. (getNestingKind()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add methods to Messager now dependents are in place.Andrew John Hughes2012-12-242-0/+67
| | | | | | | | | | | | | | 2012-12-19 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/annotation/processing/Messager.java: (printMessage(Kind,CharSequence)): Added. (printMessage(Kind,CharSequence,Element)): Likewise. (printMessage(Kind,CharSequence,Element, AnnotationMirror)): Likewise. (printMessage(Kind,CharSequence,Element, AnnotationMirror,AnnotationValue)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Provide implementation of SimpleJavaFileObject.Andrew John Hughes2012-12-192-0/+273
| | | | | | | | | | | | | | | | | | | | | | | 2012-12-19 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/tools/SimpleJavaFileObject.java: New class added. (kind): New field. (uri): Likewise. (SimpleJavaFileObject(URI,Kind)): Implemented. (delete()): Likewise. (getCharContent(boolean)): Likewise. (getName()): Likewise. (getKind()): Likewise. (getLastModified()): Likewise. (isNameCompatible(String,Kind)): Likewise. (openInputStream()): Likewise. (openOutputStream()): Likewise. (openReader(boolean)): Likewise. (openWriter()): Likewise. (toUri()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add remaining javax.tools interfaces.Andrew John Hughes2012-12-184-0/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-12-18 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/tools/JavaCompiler.java: New interface added. (CompilationTask): New inner interface. (CompilationTask.call()): Added. (CompilationTask.setLocale(Locale)): Likewise. (CompilationTask.setProcessors(Iterable)): Likewise. (getStandardFileManager(DiagnosticListener,Locale,Charset)): Likewise. (getTask(Writer,DiagnosticListener,Iterable,Iterable,Iterable)): Likewise. * javax/tools/StandardJavaFileManager.java: New interface added. (getJavaFileObjects(File...)): Added. (getJavaFileObjects(String...)): Likewise. (getJavaFileObjectsFromFiles(Iterable)): Likewise. (getJavaFileObjectsFromStrings(Iterable)): Likewise. (getLocation(Location)): Likewise. (isSameFile(FileObject,FileObject)): Likewise. (setLocation(Location,Iterable)): Likewise. * javax/tools/Tool.java: New interface added. (getSourceVersions()): Added. (run(InputStream,OutputStream,OutputStream,String...)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add remaining TypeMirror subclasses and associated methods.Andrew John Hughes2012-11-3011-0/+781
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-30 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/type/ArrayType.java: Added. (getComponentType()): Added. * javax/lang/model/type/ErrorType.java: Added. * javax/lang/model/type/ExecutableType.java: Added. (getParameterTypes()): Added. (getReturnType()): Likewise. (getThrownTypes()): Likewise. (getTypeVariables()): Likewise. * javax/lang/model/type/NoType.java: Added. * javax/lang/model/type/NullType.java: Added. * javax/lang/model/type/PrimitiveType.java: Added. * javax/lang/model/type/TypeVariable.java: Added. (asElement()): Added. (getLowerBound()): Likewise. (getUpperBound()): Likewise. * javax/lang/model/type/TypeVisitor.java: (visitArray(ArrayType, P)): Added. (visitError(ErrorType, P)): Likewise. (visitExecutable(ExecutableType, P)): Likewise. (visitNoType(NoType, P)): Likewise. (visitNull(NullType, P)): Likewise. (visitPrimitive(PrimitiveType, P)): Likewise. (visitTypeVariable(TypeVariable, P)): Likewise. (visitWildcard(WildcardType, P)): Likewise. * javax/lang/model/type/WildcardType.java: Added. (getExtendsBound()): Likewise. (getSuperBound()): Likewise. * javax/lang/model/util/Types.java, (boxedClass(PrimitiveType)): Likewise. (getArrayType(TypeMirror)): Likewise. (getNoType(TypeKind)): Likewise. (getNullType()): Likewise. (getPrimitiveType(TypeKind)): Likewise. (getWildcardType(TypeMirror, TypeMirror)): Likewise. (isSubsignature(ExecutableType, ExecutableType)): Likewise. (unboxedType(TypeMirror)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add Name & PackageElement along with methods that depend on them.Andrew John Hughes2012-11-296-3/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-29 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/element/ElementVisitor.java: (visitExecutable(ExecutableElement, P)): Correct documentation. (visitTypeParameter(TypeParameterElement, P)): Likewise. (visitVariable(VariableElement, P)): Likewise. (visitPackage(PackageElement, P)): Added. * javax/lang/model/element/Name.java: Added. (contentEquals(CharSequence)): Added. (equals(Object)): Likewise. (hashCode()): Likewise. * javax/lang/model/element/PackageElement.java: Added. (getQualifiedName()): Added. (isUnnamed()): Likewise. * javax/lang/model/element/TypeElement.java: (getQualifiedName()): Added. * javax/lang/model/util/Elements.java: (getBinaryName(TypeElement)): Added. (getName(CharSequence)): Likewise. (getPackageElement(CharSequence)): Likewise. (getPackageOf(Element)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add annotation elements and start of type hierarchy.Andrew John Hughes2012-11-2717-1/+1560
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-26 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/lang/model/element/AnnotationMirror.java: Added. (getAnnotationType()): Added. (getElementValues()): Likewise. * javax/lang/model/element/AnnotationValue.java: Added. (accept(AnnotationValueVisitor,P)): Added. (getValue()): Likewise. (toString()): Likewise. * javax/lang/model/element/AnnotationValueVisitor.java: Added. (visit(AnnotationValue)): Added. (visit(AnnotationValue, P)): Likewise. (visitAnnotation(AnnotationMirror, P)): Likewise. (visitArray(List, P)): Likewise. (visitBoolean(boolean, P)): Likewise. (visitByte(byte, P)): Likewise. (visitChar(char, P)): Likewise. (visitDouble(double, P)): Likewise. (visitEnumConstant(VariableElement, P)): Likewise. (visitFloat(float, P)): Likewise. (visitInt(float, P)): Likewise. (visitLong(long, P)): Likewise. (visitShort(short, P)): Likewise. (visitString(String, P)): Likewise. (visitType(TypeMirror, P)): Likewise. (visitUnknown(AnnotationValue, P)): Likewise. * javax/lang/model/element/Element.java: (asType()): Added. (getAnnotationMirrors()): Likewise. * javax/lang/model/element/ElementVisitor.java: (visitExecutable(ExecutableElement, P)): Added. (visitTypeParameter(TypeParameterElement, P)): Likewise. (visitVariable(VariableElement, P)): Likewise. * javax/lang/model/element/ExecutableElement.java: Added. (getDefaultValue()): Added. (getParameters()): Likewise. (getReturnType()): Likewise. (getThrownTypes()): Likewise. (getTypeParameters()): Likewise. (isVarArgs()): Likewise. * javax/lang/model/element/TypeElement.java: (getInterfaces()): Added. (getSuperclass()): Likewise. (getTypeParameters()): Likewise. * javax/lang/model/element/TypeParameterElement.java: Added. (getBounds()): Added. (getGenericElement()): Likewise. * javax/lang/model/element/VariableElement.java: Added. (getConstantValue()): Added. * javax/lang/model/type/DeclaredType.java: Added. (asElement()): Added. (getEnclosingType()): Likewise. (getTypeArguments()): Likewise. * javax/lang/model/type/ReferenceType.java: Added. * javax/lang/model/type/TypeKind.java: Added. (ARRAY): Added. (BOOLEAN): Likewise. (BYTE): Likewise. (CHAR): Likewise. (DECLARED): Likewise. (DOUBLE): Likewise. (ERROR): Likewise. (EXECUTABLE): Likewise. (FLOAT): Likewise. (INT): Likewise. (LONG): Likewise. (NONE): Likewise. (NULL): Likewise. (OTHER): Likewise. (PACKAGE): Likewise. (SHORT): Likewise. (TYPEVAR): Likewise. (VOID): Likewise. (WILDCARD): Likewise. (isPrimitive()): Implemented. * javax/lang/model/type/TypeMirror.java: Added. (accept(TypeVisitor, P)): Added. (equals(Object)): Likewise. (getKind()): Likewise. (hashCode()): Likewise. (toString()): Likewise. * javax/lang/model/type/TypeVisitor.java: Added. (visit(TypeMirror)): Added. (visit(TypeMirror, P)): Likewise. (visitUnknown(TypeMirror, P)): Likewise. (visitDeclared(DeclaredType, P)): Likewise. * javax/lang/model/util/Elements.java: (getAllAnnotationMirrors(Element)): Added. (getElementValuesWithDefaults(AnnotationMirror)): Likewise. (overrides(ExecutableElement, ExecutableElement)): Likewise. * javax/lang/model/util/Types.java: (asElement(TypeMirror)): Added. (asMemberOf(DeclaredType, Element)): Likewise. (capture(TypeMirror)): Likewise. (contains(TypeMirror, TypeMirror)): Likewise. (directSupertypes(TypeMirror)): Likewise. (erasure(TypeMirror)): Likewise. (getDeclaredType(DeclaredType, TypeElement, TypeMirror...)): Likewise. (getDeclaredType(TypeElement, TypeMirror...)): Likewise. (isAssignable(TypeMirror, TypeMirror)): Likewise. (isSameType(TypeMirror, TypeMirror)): Likewise. (isSubtype(TypeMirror, TypeMirror)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Implement javax.annotation.processing.Processor interface.Andrew John Hughes2012-11-262-0/+200
| | | | | | | | | | | | | | 2012-11-25 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/annotation/processing/Processor.java: Implemented. (getSupportedAnnotationTypes()): Added. (getSupportedOptions()): Likewise. (getSupportedSourceVersion()): Likewise. (init(ProcessingEnvironment)): Likewise. (process(Set, RoundEnvironment)): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Documentation & annotation update/cleanup on new files.Andrew John Hughes2012-11-2616-10/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-25 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/annotation/processing/Filer.java, * javax/annotation/processing/Messager.java, * javax/annotation/processing/ProcessingEnvironment.java, * javax/annotation/processing/RoundEnvironment.java, * javax/lang/model/SourceVersion.java, * javax/lang/model/element/Element.java, * javax/lang/model/element/ElementKind.java: Add authorship. * javax/lang/model/element/ElementVisitor.java: Add authorship and properly document type parameters. * javax/lang/model/element/TypeElement.java: Add authorship. * javax/lang/model/util/ElementFilter.java: Add authorship. (FilteredSet.add(E)): Add @Override. (FilteredSet.addAll(Collection)): Likewise. (FilteredSet.clear()): Likewise. (FilteredSet.contains(Object)): Likewise. (FilteredSet.containsAll(Collection)): Likewise. (FilteredSet.equals(Object)): Likewise. (FilteredSet.hashCode()): Likewise. (FilteredSet.isEmpty()): Likewise. (FilteredSet.iterator()): Likewise. (FilteredSet.remove(Object)): Likewise. (FilteredSet.removeAll(Collection)): Likewise. (FilteredSet.retainAll(Collection)): Likewise. (FilteredSet.size()): Likewise. (FilteredSet.toArray()): Likewise. (FilteredSet.toArray(T[])): Likewise. (FilteredIterator.hasNext()): Likewise. (FilteredIterator.next()): Likewise. (FilteredIterator.remove()): Likewise. * javax/lang/model/util/Elements.java, * javax/lang/model/util/Types.java: Add authorship. * javax/tools/ForwardingFileObject.java, * javax/tools/ForwardingJavaFileObject.java: Document type parameter. * javax/tools/StandardLocation.java: (ANNOTATION_PROCESSOR_PATH.isOutputLocation()): Add @Override annotation. (CLASS_OUTPUT.isOutputLocation()): Likewise. (CLASS_PATH.isOutputLocation()): Likewise. (PLATFORM_CLASS_PATH.isOutputLocation()): Likewise. (SOURCE_OUTPUT.isOutputLocation()): Likewise. (SOURCE_PATH.isOutputLocation()): Likewise. (getName()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Provide implementations of ForwardingFileObject and ↵Andrew John Hughes2012-11-255-3/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ForwardingJavaFileObject. Set source/target to 1.6 for @Override. 2012-11-25 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/tools/FileObject.java: Add missing comment in header. * javax/tools/ForwardingFileObject.java: New class. (fileObject): Added. (ForwardingFileObject(F)): Implemented. (delete()): Likewise. (getCharContent(boolean)): Likewise. (getLastModified()): Likewise. (getName()): Likewise. (openInputStream()): Likewise. (openOutputStream()): Likewise. (openReader(boolean)): Likewise. (openWriter()): Likewise. (toUri()): Likewise. * javax/tools/ForwardingJavaFileObject.java: New class. (ForwardingJavaFileObject(F)): Implemented. (getKind()): Likewise. (isNameCompatible(String,Kind)): Likewise. * lib/Makefile.am: Bump source/target to 1.6 to allow use of @Override on interface implementations. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add JavaFileManager and JavaFileObject, along with methods that use them in ↵Andrew John Hughes2012-11-207-0/+882
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filer and any dependent classes. 2012-11-19 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/annotation/processing/Filer.java: (createClassFile(CharSequence,Element...): Added. (createResource(JavaFileManager.Location, CharSequence, CharSequence, Element...)): Likewise. (createSourceFile(CharSequence,Element...): Likewise. (getResource(JavaFileManager.Location, CharSequence, CharSequence)): Likewise. * javax/annotation/processing/FilerException.java: New class. (FilerException(String)): Implemented. * javax/tools/JavaFileManager.java: New interface. (Location): New member interface. (Location.getName()): Added. (Location.isOutputLocation()): Likewise. (close()): Likewise. (flush()): Likewise. (getClassLoader(Location)): Likewise. (getFileForInput(Location,String,String)): Likewise. (getFileForOutput(Location,String,String,FileObject)): Likewise. (getJavaFileForInput(Location,String, JavaFileObject.Kind)): Likewise. (getJavaFileForOutput(Location,String, JavaFileObject.Kind,FileObject)): Likewise. (handleOption(String,Iterator)): Likewise. (hasLocation(Location)): Likewise. (inferBinaryName(Location,JavaFileObject)): Likewise. (isSameFile(FileObject,FileObject)): Likewise. (list(Location,String,Set,boolean)): Likewise. * javax/tools/JavaFileObject.java: New interface. (Kind): New inner enum. (CLASS): Added. (HTML): Likewise. (OTHER): Likewise. (SOURCE): Likewise. (Kind.extension): New public field. (Kind.Kind(String)): Implemented. (getKind()): Added. (isNameCompatible(String,Kind)): Likewise. * javax/tools/OptionChecker.java: New interface. (isSupportedOption(String)): Added. * javax/tools/StandardLocation.java: New enum. (ANNOTATION_PROCESSOR_PATH): Added. (CLASS_OUTPUT): Likewise. (CLASS_PATH): Likewise. (PLATFORM_CLASS_PATH): Likewise. (SOURCE_OUTPUT): Likewise. (SOURCE_PATH): Likewise. (locCache): Likewise. (getName()): Implemented. (locationFor(String)): Implemented. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Add remaining methods of ProcessingEnvironment so the ecj implementation ↵Andrew John Hughes2012-11-132-0/+39
| | | | | | | | | | | | | compiles. 2012-11-13 Andrew John Hughes <gnu_andrew@member.fsf.org> * javax/annotation/processing/ProcessingEnvironment.java: (getOptions()): Implemented. (getSourceVersion()): Likewise. (getTypeUtils()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Start implementing classes/fields/methods necessary to build ecj.Andrew John Hughes2012-11-1313-0/+1558
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-11-12 Andrew John Hughes <gnu_andrew@member.fsf.org> New files to start supporting recent versions of ecj & javac. * javax/annotation/processing/Filer.java: Stub. * javax/annotation/processing/Messager.java: Likewise. * javax/annotation/processing/ProcessingEnvironment.java: (getElementUtils()): Added. (getFiler()): Likewise. (getLocale()): Likewise. (getMessager()): Likewise. * javax/annotation/processing/RoundEnvironment.java: (errorRaised()): Likewise. (getElementsAnnotatedWith(Class)): Likewise. (getElementsAnnotatedWith(TypeElement)): Likewise. (getRootElements()): Likewise. (processingOver()): Likewise. * javax/lang/model/SourceVersion.java: (RELEASE_0): Likewise. (RELEASE_1): Likewise. (RELEASE_2): Likewise. (RELEASE_3): Likewise. (RELEASE_4): Likewise. (RELEASE_5): Likewise. (RELEASE_6): Likewise. (isIdentifier(CharSequence)): Likewise. (latest()): Likewise. (latestSupported()): Likewise. * javax/lang/model/element/Element.java: (accept(ElementVisitor,P)): Likewise. (equals(Object)): Likewise. (getAnnotation(Class)): Likewise. (getEnclosedElements()): Likewise. (getEnclosingElement()): Likewise. (getKind()): Likewise. (hashCode()): Likewise. * javax/lang/model/element/ElementKind.java: (ANNOTATION_TYPE): Likewise. (CLASS): Likewise. (CONSTRUCTOR): Likewise. (ENUM): Likewise. (ENUM_CONSTANT): Likewise. (EXCEPTION_PARAMETER): Likewise. (FIELD): Likewise. (INSTANCE_INIT): Likewise. (INTERFACE): Likewise. (LOCAL_VARIABLE): Likewise. (METHOD): Likewise. (OTHER): Likewise. (PACKAGE): Likewise. (PARAMETER): Likewise. (STATIC_INIT): Likewise. (TYPE_PARAMETER): Likewise. * javax/lang/model/element/ElementVisitor.java: (visit(Element)): Likewise. (visit(Element, P)): Likewise. (visitType(TypeElement, P): Likewise. (visitUnknown(Element, P): Likewise. * javax/lang/model/element/TypeElement.java: Stub. * javax/lang/model/util/ElementFilter.java: (typesIn(Set)): Implemented. (FilteredSet): Class which typesIn returns an instance of. (FilteredSet.elements): New field. (FilteredSet.clazz): Likewise. (FilteredSet.FilteredSet(Set,Class)): Implemented. (FilteredSet.add(E)): Likewise. (FilteredSet.addAll(Collection)): Likewise. (FilteredSet.clear()): Likewise. (FilteredSet.contains(Object)): Likewise. (FilteredSet.containsAll(Collection)): Likewise. (FilteredSet.equals(Object)): Likewise. (FilteredSet.hashCode()): Likewise. (FilteredSet.isEmpty()): Likewise. (FilteredSet.iterator()): Likewise. (FilteredSet.remove(Object)): Likewise. (FilteredSet.removeAll(Collection)): Likewise. (FilteredSet.retainAll(Collection)): Likewise. (FilteredSet.size()): Likewise. (FilteredSet.toArray()): Likewise. (FilteredSet.toArray(T[])): Likewise. (FilteredIterator): Class which FilteredSet.iterator() provides an instance of. (FilteredIterator.iterator): New field. (FilteredIterator.clazz): Likewise. (FilteredIterator.next): Likewise. (FilteredIterator.FilteredIterator(Iterator,Class)): Implemented. (FilteredIterator.hasNext()): Likewise. (FilteredIterator.next()): Likewise. (FilteredIterator.remove()): Likewise. * javax/lang/model/util/Elements.java: (getAllMembers(TypeElement)): Likewise. (getConstantExpression(Object)): Likewise. (getDocComment(Object)): Likewise. (getTypeElement(CharSequence)): Likewise. (hides(Element,Element)): Likewise. (isDeprecated(Element)): Likewise. (printElements(Writer,Element...)): Likewise. * javax/lang/model/util/Types.java: Stub. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* PR55182: Fix build on RHEL6libgcj-import-20121202Andrew John Hughes2012-11-023-5/+26
| | | | | | | | | | | | | | | | | | 2012-11-02 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/55182 * configure.ac: Lower required version to support autoconf on RHEL6. Make disabling Werror the default. If a Qt4-specific moc is detected, use it rather than the default. * doc/Makefile.am: Generate texi2dvi output in the build directory and explicitly specify POSIX locale to work around Debian bug 586134. (clean-local): Remove output from texi2dvi. Signed-off-by: Andrew Hughes <gnu_andrew@member.fsf.org>
* PR55140: Addition of exception to codePointBefore breaks OpenJDK ↵Andrew John Hughes2012-10-303-2/+10
| | | | | | | | | | | | | GenerateBreakIteratorData tool 2012-10-30 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/55140 * NEWS: List fix. * java/lang/String.java: (codePointBefore(int)): Fix index check to match spec. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Cleanup ChangeLog entry from previous merge.Andrew John Hughes2012-10-261-11/+22
|
* Merge remote-tracking branch 'ivan/ivmai4review-v3'Andrew John Hughes2012-10-262-14/+34
|\ | | | | | | | | | | | | Conflicts: ChangeLog Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
| * Optimize emptySet/Map/List() in Collections classIvan Maidanski2012-10-162-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-16 Ivan Maidanski <ivmai@mail.ru> * java/util/Collections.java: (emptySet(), EmptySet.iterator(), emptyList(), emptyMap(), EmptyMap.entrySet(), EmptyMap.keySet(), EmptyMap.values()): Suppress "unchecked" warnings. (emptySet(), emptyList(), emptyMap()): Don't create new instance (use the corresponding immutable container instance); remove FIXME. (EmptySet.equals(Object), EmptyList.equals(Object), EmptyMap.entrySet(), EmptyMap.equals(Object), EmptyMap.keySet(), EmptyMap.values()): Add generic typing. (SingletonList.subList(int, int)): Use emptyList() instead of EMPTY_LIST (to eliminate "unchecked" warning). (SynchronizedCollection.toArray(T[])): Rename T type to E (to suppress compiler warning about type hiding).
* | PR41689: Add missing field javax.security.sasl.Sasl.CREDENTIALS.Andrew John Hughes2012-10-263-0/+18
| | | | | | | | | | | | | | | | | | | | | | 2012-10-26 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/41689 * javax/security/sasl/Sasl.java: (CREDENTIALS): Add missing field. * NEWS: Updated. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* | Update NEWS and THANKYOU.Andrew John Hughes2012-10-263-0/+11
| | | | | | | | | | | | | | | | | | 2012-10-26 Andrew John Hughes <gnu_andrew@member.fsf.org> * NEWS: Updated with latest bug fixes. * THANKYOU: Add bug authors. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* | PR44208: Ensure a handle for the enum is registered before its constant.Andrew John Hughes2012-10-262-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | 2010-05-20 Paul Viney <paul@diasoft.nl> PR classpath/44208 * java/io/ObjectInputStream.java, (parseContent(byte,boolean)): Ensure a handle for the enum is registered before one for its String constant. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* | PR42551: Avoid overwriting length of message when computing length ↵Andrew John Hughes2012-10-262-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | representation. 2009-12-30 Paul Fernhout <pdfernhout@kurtz-fernhout.com> PR classpath/42551 * javax/sound/midi/MetaMessage.java: (setMessage(int,byte[],int)): Don't overwrite length variable when computing the length representation. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* | PR54960: Avoid NullPointerException in SAXSerializer.Andrew John Hughes2012-10-262-1/+8
| | | | | | | | | | | | | | | | | | | | 2012-10-17 Jeremy Singer <Jeremy.Singer@glasgow.ac.uk> PR classpath/54960 * gnu/xml/transform/SAXSerializer.java: (getValue(String)): Avoid NullPointerException. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* | Use jack_client_open rather than deprecated jack_client_new.Andrew John Hughes2012-10-262-5/+17
|/ | | | | | | | | | | 2012-10-26 Andrew John Hughes <gnu_andrew@member.fsf.org> * native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c: (Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1(JNIEnv*, jclass, jlong)): Use jack_client_open instead of deprecated jack_client_new. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Fix broken ChangeLog entry.Andrew John Hughes2012-10-151-2/+2
| | | | Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Update NEWS and start preparing for 0.99.1 release.Andrew John Hughes2012-10-153-2/+10
| | | | | | | | | | | 2012-10-15 Andrew John Hughes <gnu_andrew@member.fsf.org> * configure.ac: Set to 0.99.1pre, as 0.99.1 will now be next release. * NEWS: Updated with last bug fix and 0.99.1 Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge branch 'master' of git.sv.gnu.org:/srv/git/classpathAndrew John Hughes2012-10-152-3/+28
|\
| * Fix NPE in java/util/Formatter.format() methodPekka Enberg2012-10-152-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes NPE for the following Malva test cases: assertEquals("false", String.format("%b", (Object[])null)); assertEquals("null", String.format("%h", (Object[])null)); assertEquals("null", String.format("%s", (Object[])null)); assertEquals("null", String.format("%c", (Object[])null)); assertEquals("null", String.format("%d", (Object[])null)); assertEquals("null", String.format("%o", (Object[])null)); assertEquals("null", String.format("%x", (Object[])null)); Signed-off-by: Pekka Enberg <penberg@kernel.org>
* | PR54931: Allow Classpath to build docs with the GJDoc included withinAndrew John Hughes2012-10-152-0/+10
|/ | | | | | | | | | | | 2012-10-15 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/54931 * m4/acinclude.m4: (CLASSPATH_WITH_GJDOC): Allow GJDoc versions included with GNU Classpath to be used to build (0.98 on). Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Fix java/lang/String.codePoint{At|Before} exception typesPekka Enberg2012-10-152-0/+10
| | | | | | OpenJDK throws StringIndexOutOfBoundsException and so should we. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Handle malloc() failure in java_util_VMTimeZone.c file.Ivan Maidanski2012-10-152-1/+15
| | | | | | | | | | | | 2011-07-20 Ivan Maidanski <ivmai@mail.ru> * native/jni/java-util/java_util_VMTimeZone.c: Include jcl.h file. (Java_java_util_VMTimeZone_getSystemTimeZoneId): Throw OutOfMemoryException in case of malloc() failure. [ penberg@kernel.org: cleanups ] Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Replace all .cvsignore files with .gitignoreIvan Maidanski2012-10-1568-3/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-06-10 Ivan Maidanski <ivmai@mail.ru> * compat/.gitignore, * compat/java.net/.gitignore, * doc/.gitignore, * doc/api/.gitignore, * doc/www.gnu.org/.gitignore, * doc/www.gnu.org/announce/.gitignore, * doc/www.gnu.org/cp-tools/.gitignore, * doc/www.gnu.org/docs/.gitignore, * doc/www.gnu.org/downloads/.gitignore, * doc/www.gnu.org/events/.gitignore, * doc/www.gnu.org/faq/.gitignore, * examples/.gitignore, * external/.gitignore, * external/jsr166/.gitignore, * external/relaxngDatatype/.gitignore, * external/sax/.gitignore, * external/w3c_dom/.gitignore, * gnu/classpath/.gitignore, * gnu/java/locale/.gitignore, * gnu/java/security/.gitignore, * gnu/test/.gitignore, * include/.gitignore, * java/util/.gitignore, * lib/.gitignore, * native/.gitignore, * native/fdlibm/.gitignore, * native/jawt/.gitignore, * native/jni/.gitignore, * native/jni/classpath/.gitignore, * native/jni/gconf-peer/.gitignore, * native/jni/gstreamer-peer/.gitignore, * native/jni/gtk-peer/.gitignore, * native/jni/java-io/.gitignore, * native/jni/java-lang/.gitignore, * native/jni/java-math/.gitignore, * native/jni/java-net/.gitignore, * native/jni/java-nio/.gitignore, * native/jni/java-util/.gitignore, * native/jni/midi-alsa/.gitignore, * native/jni/midi-dssi/.gitignore, * native/jni/native-lib/.gitignore, * native/jni/qt-peer/.gitignore, * native/jni/xmlj/.gitignore, * native/plugin/.gitignore, * native/testsuite/.gitignore, * native/vmi/.gitignore, * resource/.gitignore, * resource/META-INF/services/.gitignore, * scripts/.gitignore, * test/.gitignore, * test/gnu.java.lang.reflect/.gitignore, * test/java.io/.gitignore, * test/java.lang.reflect/.gitignore, * test/java.net/.gitignore, * test/java.util/.gitignore, * tools/.gitignore, * tools/gnu/classpath/tools/doclets/.gitignore, * tools/gnu/classpath/tools/doclets/debugdoclet/.gitignore, * tools/gnu/classpath/tools/doclets/htmldoclet/.gitignore, * tools/gnu/classpath/tools/doclets/xmldoclet/.gitignore, * tools/gnu/classpath/tools/doclets/xmldoclet/doctranslet/.gitignore, * tools/gnu/classpath/tools/gjdoc/.gitignore, * tools/gnu/classpath/tools/gjdoc/expr/.gitignore, * tools/gnu/classpath/tools/java2xhtml/.gitignore, * tools/gnu/classpath/tools/taglets/.gitignore, * vm/.gitignore, * vm/reference/.gitignore: Renamed from .cvsignore. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Fix warnings in java.awt.geom.Area.Andrew John Hughes2012-10-152-120/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-10 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/awt/geom/Area.java: (solids): Add type parameter. (holes): Likewise. (ccIntersections): Likewise and rename to meet standards. (Area()): Add type parameters. (Area(Shape)): Likewise and remove redundant casts. (add(Area)): Likewise and remove unused nNodes variable. (subtract(Area)): Likewise. (intersect(Area)): Likewise. (exclusiveOr(Area)): Likewise. (reset()): Add type parameters. (isEmpty()): Remove redundant casts. (isPolygonal()): Likewise. (isRectangular()): Likewise. (getBounds2D()): Likewise. (clone()): Likewise. (equals(Area)): Add type parameters. (transform(AffineTransform)): Remove redundant casts. (contains(double,double)): Likewise. (contains(double,double,double,double)): Likewise. (intersects(double,double,double,double)): Likewise. (AreaIterator.segments): Add type parameter. (AreaIterator(AffineTransform)): Add type parameters. Remove redundant casts. (currentSegment(double[])): Remove redundant casts. (currentSegment(float[])): Likewise. (weilerAtherton(Vector)): Add type parameters and remove redundant casts. (recursiveSubdivide(CubicCurve2D,CubicCurve2D,int,int,double, double,double,double)): Fix use of cc_intersections/ccIntersections. (cubicCubicIntersect(CubicSegment,CubicSegment)): Likewise. (lineQuadIntersect(LineSegment,QuadSegment)): Fix Javadoc typo. (makeSegment(Shape)): Add type parameters. (createNodes(Segment,Segment)): Remove redundant bracketing. (deleteRedundantPaths(Vector)): Likewise. Remove redundant casts. Add type parameters. (setDirection(Vector,boolean)): Add type parameters and remove redundant casts. (cloneSegmentList()): Add type parameter. Remove redundant cast. (createNodes(Segment,Intersection[])): Add type parameter. Remove redundant cast. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Java warnings cleanup for javax.sound.* and gnu.javax.sound.*Andrew John Hughes2012-10-1013-114/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-09 Andrew John Hughes <gnu_andrew@member.fsf.org> * gnu/javax/sound/midi/dssi/DSSIMidiDeviceProvider.java: (DSSIInfo.copyright): Added field. (DSSIInfo(String,String,String,String,String,String,long)): Extended constructor to store copyright. (examineLibrary(String)): Add type parameter. Fix call to new DSSIInfo constructor. (static): Add type parameters. * gnu/javax/sound/midi/dssi/DSSISynthesizer.java: (instruments): Add type parameter. (resources): Likewise. (getResources()): Remove redundant cast. (getInstruments()): Likewise. (getInstrument(Patch)): Add type parameter and remove redundant cast. (soundbanks): Add type parameter. (getAvailableInstruments()): Add type parameters and remove redundant casts. * gnu/javax/sound/midi/file/MidiFileReader.java: (getSequence(InputStream)): Don't store length as not used. * gnu/javax/sound/midi/file/MidiFileWriter.java: (computeTrackLength(Track,MidiDataOutputStream)): Drop unused count variable. * gnu/javax/sound/sampled/WAV/WAVReader.java: (getAudioFileFormat(InputStream)): Drop unused blockAlign variable. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: (getLine(Line.Info)): Add type parameter to Class. * javax/sound/midi/MidiSystem.java: (getMidiDeviceInfo()): Add type parameters. Remove unnecessary cast. (getMidiDevice(MidiDevice.Info)): Add type parameter. (getSoundbank(InputStream)): Add type parameters and remove unnecessary casts. (getSoundbank(URL)): Likewise. (getSoundbank(File)): Likewise. (getMidiFileFormat(InputStream)): Likewise. (getMidiFileFormat(URL)): Likewise. (getMidiFileFormat(File)): Likewise. (getSequence(InputStream)): Likewise. (getSequence(URL)): Likewise. (getSequence(File)): Likewise. (getMidiFileTypes()): Likewise. (isFileTypeSupported(int)): Likewise. (getMidiFileTypes(Sequence)): Likewise. (isFileTypeSupported(int,Sequence)): Likewise. (write(Sequence,int,OutputStream)): Likewise. (write(Sequence,int,File)): Likewise. * javax/sound/midi/SoundbankResource.java: (dataClass): Add type parameter. * javax/sound/midi/Track.java: (events): Add type parameter. (eventSet): Likewise. (add(MidiEvent)): Remove redundant cast. (get(int)): Likewise. (ticks()): Likewise. * javax/sound/sampled/AudioSystem.java: (getAudioFileFormat(File)): Add type parameters and remove unnecessary casts. (getAudioFileFormat(InputStream)): Likewise. (getAudioFileFormat(URL)): Likewise. (getAudioFileTypes()): Likewise. (getAudioFileTypes(AudioInputStream)): Likewise. (getAudioInputStream(AudioFormat.Encoding,AudioInputStream)): Likewise. (getAudioInputStream(AudioFormat,AudioInputStream)): Likewise. (getAudioInputStream(File)): Likewise. (getAudioInputStream(InputStream)): Likewise. (getAudioInputStream(URL)): Likewise. (getMixer(Mixer.Info)): Likewise. (getMixerInfo()): Likewise. (getTargetEncodings(AudioFormat.Encoding)): Likewise. (getTargetEncodings(AudioFormat)): Likewise. (getTargetFormats(AudioFormat.Encoding,AudioFormat)): Likewise. (isConversionSupported(AudioFormat.Encoding,AudioFormat)): Likewise. (isConversionSupported(AudioFormat,AudioFormat)): Likewise. (write(AudioInputStream,AudioFileFormat.Type,File)): Likewise. (write(AudioInputStream,AudioFileFormat.Type,OutputStream)): Likewise. * javax/sound/sampled/Line.java: (klass): Add type parameter. * m4/ac_prog_javac.m4: (ECJ_OPTS): Turn of unused private field warnings for now, as some may be used from native code. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* PR42134: NullPointerException in java.text.BidiAndrew John Hughes2012-09-283-8/+20
| | | | | | | | | | | | | 2012-09-26 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/42134 * java/text/Bidi.java: (Bidi(AttributedCharacterIterator)): Remove shadow variable text which hides the instance variable of the same name. Remove unnecessary use of this. * NEWS: Updated. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Warning cleanup in tools (gjdoc & rmic).Andrew John Hughes2012-09-2624-580/+663
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org> * tools/com/sun/javadoc/Doc.java: Add type parameter to Comparable. * tools/gnu/classpath/tools/doclets/AbstractDoclet.java: (tagletMap): Use type parameters. (packageGroups): Likewise. (tagletPath): Removed, unused. (mentionedTags): Use type parameters. (optionNoEmailWarn): Removed, unused. (optionTagletPath): Likewise. (DocletOptionTaglet): Likewise. (DocletOptionGroup.set(String[])): Add type aprameters to groupPackages. (DocletOptionTagletPath): Removed, unused. (commonOptions): Remove optionTagletPath. (nameToOptionMap): Add type parameters. (getOptionLength(String)): Remove unnecessary cast. (getKnownDirectSubclasses(ClassDoc)): Add type parameters. (IndexKey): Add type parameter to Comparable. (IndexKey.compareTo(IndexKey)): Update to use specific type. (categorizedIndex): Use type parameters. (getCategorizedIndex()): Likewise. (indexByName): Likewise. (getIndexByName()): Likewise. (printTaglets(Tag[],TagletContext,TagletPrinter,boolean)): Likewise. (addUsedBy(Map,ClassDoc,UsageType,Doc,PackageDoc)): Likewise. (collectUsage()): Likewise. (usedClassToPackagesMap): Likewise. (getUsageOfClass(ClassDoc)): Likewise. (UsageType): Add type parameter to Comparable. (UsageType.compareTo(UsageType)): Update to use specific type. (getPackageGroups()): Use type parameters. * tools/gnu/classpath/tools/doclets/PackageMatcher.java: (patterns): Use type parameters. (filter(Packagedoc[])): Likewise. (match(PackageDoc)): Likewise. * tools/gnu/classpath/tools/doclets/htmldoclet/HtmlDoclet.java: (externalDocSets): Use type parameters. (packageNameToDocSet)): Likewise. (printPackagePage(File,String,PackageDoc,PackageDoc,PackageDoc)): Likewise. (TreeNode): Add type parameter to Comparable. (TreeNode.children): Use type parameters. (TreeNode.compareTo(TreeNode)): Update to use specific type. (addClassTreeNode(Map,ClassDoc)): Use type parameters. (addInterfacetreeNode(Map,ClassDoc)): Likewise. (printClassTree(HtmlPage,ClassDoc[])): Likewise. (printInterfaceTree(HtmlPage,ClassDoc[])): Likewise. (printFullTreePage()): Likewise. (printIndexEntry(HtmlPage,Doc)): Likewise. (printPackagesMenuPage()): Likewise. (printClassMenuSection(HtmlPage,Collection,String)): Likewise. (printClassMenuList(HtmlPage,ClassDoc[],boolean)): Likewise. (printSplitIndex()): Likewise. (printIndexPage(int,int,Character,List)): Likewise. (printSerializationPage()): Likewise. (printDeprecationPage()): Likewise. (getMemberDocURL(HtmlPage,ProgramElementDoc)): Likewise. (createTypeHref(HtmlPage,Type,boolean)): Likewise. (getPackageURL(PackageDoc)): Remove redundant cast. (getClassURL(ClassDoc)): Likewise. * tools/gnu/classpath/tools/gjdoc/ClassDocImpl.java: (primitiveNames): Add type parameters. (findClassCache): Likewise. (findClass(String,String): Likewise. (createInstance(ClassDoc,PackageDoc,ClassDoc[],PackageDoc[], char[],int,int,List)): Likewise. (resolve()): Likewise. (typeMap): Likewise. (typeForString(String)): Likewise.. (equals(Object)): Likewise. (maybeSerMethodList): Likewise. (setMaybeSerMethodList(List)): Likewise. (findFieldValue(String,ClassDoc,String,Set)): Likewise. (getValue(String,Set)): Likewise. (compareTo(Doc)): Use specific type. (importStatementList): Use type parameters. (setImportStatementList(List)): Likewise. * tools/gnu/classpath/tools/gjdoc/ClassDocProxy.java: (compareTo(Doc)): Use specific type. * tools/gnu/classpath/tools/gjdoc/ClassDocReflectedImpl.java: Expand imports. (findClass(String)): Don't use full class name for String. (compareTo(Doc)): Use specific type. * tools/gnu/classpath/tools/gjdoc/DocImpl.java: (compareTo(Doc)): Use specific type. * tools/gnu/classpath/tools/gjdoc/ExecutableMemberDocImpl.java: (compareTo(Doc)): Use specific type. * tools/gnu/classpath/tools/gjdoc/FieldDocImpl.java: (createFromSource(ClassDoc,PackageDoc,char[],int,int)): Use type parameters. Remove unused lastFieldDefStart variable. (constantValue(Set)): Use type parameters. * tools/gnu/classpath/tools/gjdoc/Main.java: (option_overview): Removed unused field. (option_classpath): Likewise. (option_sourcepath): Add type parameters. (option_extdirs): Removed unused field. (option_verbose): Likewise. (option_java_flags): Likewise. (option_subpackages): Add type parameters. (option_exclude): Likewise. (startDoclet(List)): Likewise. (addFoundPackages(String,Set)): Likewise. (findPackages(String,File,Set)): Likewise. (start(String[])): Likewise. (addJavaLangClasses()): Commented out, apparently unused. (options): Add type parameters. (initOptions()): Likewise. Remove redundant variable setting. * tools/gnu/classpath/tools/gjdoc/MemberDocImpl.java: (compareTo(Doc)): Use specific type. * tools/gnu/classpath/tools/gjdoc/PackageDocImpl.java: (allClassesSet): Use type parameters. (ordinaryClassesList): Likewise. (exceptionsList): Likewise. (interfacesList): Likewise. (errorsList): Likewise. (resolve()): Likewise. (toClassDocArray(Collection)): Likewise. (compareTo(Doc)): Use specific type. * tools/gnu/classpath/tools/gjdoc/Parser.java: Expand import statements. (process(Parser,char[],int,int)): Add type parameters. (processedFiles): Add type parameters. (processSourceFile(File,boolean,String,String)): Add type parameters. (classOpened(char[],int,int)): Likewise. (toArray(List,T[])): Likewise. (classClosed()): Likewise. (Context.fieldList): Likewise. (Context.filteredFieldList): Likewise. (Context.sfieldList): Likewise. (Context.methodList): Likewise. (Context.filteredMethodList): Likewise. (Context.maybeSerMethodList): Likewise. (Context.constructorList): Likewise. (Context.filteredConstructorList): Likewise. (Context.innerClassesList): Likewise. (Context.filteredInnerClassesList): Likewise. * tools/gnu/classpath/tools/gjdoc/RootDocImpl.java: (findSourceFiles(String)): Add type parameters. * tools/gnu/classpath/tools/gjdoc/expr/Evaluator.java: (evaluate(String,Set,EvaluatorEnvironment)): Add type parameters. * tools/gnu/classpath/tools/gjdoc/expr/EvaluatorEnvironment.java: (getValue(String,Set)): Add type parameters. * tools/gnu/classpath/tools/gjdoc/expr/Type.java: (clazz): Add type parameters. (Type(Class)): Likewise. * tools/gnu/classpath/tools/rmic/ClassRmicCompiler.java: (keep): Remove unused field. (errors): Add type parameter. (compile): Remove unused field. (classpath): Likewise. (clazz): Add type parameter. (mRemoteInterfaces): Likewise. (run(String[])): Add type parameters. (processClass(String)): Likewise. (getException()): Remove unnecessary cast. (typeArray(Class[])): Add type parameter. (param(Method,int)): Add type parameter. Use Integer.valueOf. (generateClassConstant(MethodVisitor,Class)): Add type parameters. (generateClassArray(MethodVisitor,Class)): Likewise. (generateStub()): Remove unused variables stubclassname, size & endReturnTryCatch. Remove unnecessary casts and add type parameters. (generateSkel()): Remove unused variable skelclassname. Use Long.valueOf. (generateMethodSkel(MethodVisitor,Method,Variables)): Add type parameters. (typeArg(Class)): Add type parameter. (readMethod(Class)): Likewise. (writeMethod(Class)): Likewise. (returnOpcode(Class)): Likewise. (loadOpcode(Class)): Likewise. (storeOpcode(Class)): Likewise. (unboxMethod(Class)): Likewise. (box(Class)): Likewise. (size(Class)): Likewise. (sortExceptions(Class[])): Add type parameters. (setup(boolean,boolean,boolean,boolean,boolean,boolean, boolean,boolean,boolean,boolean,String,String,String,String)): Remove unused variables keep & classpath. (findRemoteMethods()): Add type parameters. (MethodRef.exceptions): Add type parameter. (MethodRef.removeSubclasses(Class[])): Add type parameters. (MethodRef.intersectExceptions(Method)): Likewise. * tools/gnu/classpath/tools/rmic/Main.java: (backends): Add type parameter. (run(String[])): Remove redundant cast. * tools/gnu/classpath/tools/rmic/RmiMethodGenerator.java: (getArgumentList()): Add type parameters. (getArgumentNames()): Likewise. (getThrows()): Likewise. (getStaticMethodDeclarations()): Likewise. * tools/gnu/classpath/tools/rmic/SourceGiopRmicCompiler.java: Add type parameter to Comparable. (implementedRemotes): Add type parameter. (extraImports): Likewise. (methods): Likewise. (interfaces): Likewise. (compile(Class)): Add type parameters. (getId(Class)): Add type parameter. (getIdList(Collection)): Add type parameters. (generateStub()): Add type parameters. (generateTie()): Likewise. (compare(AbstractMethodGenerator,AbstractMethodGenerator)): Use more specific types. (getImportStatements()): Add type parameters. * tools/gnu/classpath/tools/rmic/Variables.java: (free): Add type parameter. (names): Add type parameters. (wides): Add type parameter. (declared): Likewise. (allocateNow(Object,int)): Use Integer.valueOf. (allocate(Object,int)): Add type parameters. (deallocate(Object)): Remove redundant cast. Use Integer.valueOf. (get(Object)): Remove redundant cast. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Use accessor functions to manipulate xmlOutputBufferDodji Seketeli2012-08-092-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fix to prepare the xmlj_io.c file of gnu classpath to a coming API change in libxml2. Basically, we were previously accessing fields inside the xmlOutputBuffer struct of libxml2. In a coming version of libxml2, that won't be possible anymore. Client code will have to use accessor functions instead. For the gory details, there is an interestin note of Daniel Veillard (author of libxml2) at https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00007.html. This patch defines too accessor macros that, depending on the version of libxml2 we are using will either access the fields of xmlOutputBuffer directly, or use the new accessor function. Tested on x86_64-unknown-linux-gnu against trunk. 2012-08-09 Dodji Seketeli <dodji@redhat.com> Use accessor functions to manipulate xmlOutputBuffer * native/jni/xmlj/xmlj_io.c (GET_XML_OUTPUT_BUFFER_CONTENT) (GET_XML_OUTPUT_BUFFER_SIZE): New macros. (xmljOutputWriteCallback): Use them. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Fix warnings in java.util.TimeZone.Andrew John Hughes2012-08-092-42/+55
| | | | | | | | | | | | | | | | | 2012-08-09 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/TimeZone.java: (defaultZone()): Use parameterized PrivilegedAction. (aliases0): Add type parameters. (timezones0); Likewise. (timezones()): Likewise. (getDateParams(String)): Fix indenting. (getTimeZoneInternal(String)): Remove redundant casts. (getAvailableIDs(int)): Add type parameters. (getAvailableIDs(File,String,ArrayList)): Likewise. (getAvailableIDs()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Fix warnings in java.text.* and gnu.java.text.*Andrew John Hughes2012-07-3114-245/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-07-03 Andrew John Hughes <gnu_andrew@member.fsf.org> Update copyright headers throughout. * gnu/java/text/AttributedFormatBuffer.java: (ranges): Add generic type information. (attributes): Likewise. (aRanges): Rename from a_ranges. (aAttributes): Add generic type information and rename from a_attributes. Convert to a list of maps rather than an array for type safety. (defaultAttr): Replace prefix with static import. (AttributedFormatBuffer(CPStringBuilder): Add generic typing. (addAttribute(int,Attribute)): Drop prefix, rename new_range to newRange. Add generic types. Use Integer.valueOf in place of new Integer. (append(String,Attribute)): Drop prefix. (append(String,int[],List)): Replace array with list. Use Integer.valueOf instead of new Integer. (append(char,Attribute)): Drop prefix. (setDefaultAttribute(Attribute)): Likewise. (getDefaultAttribute()): Likewise. (sync()): Rename a_ranges to aRanges. Drop unneeded casts. Replace array with list. (getRanges()): Rename a_ranges to aRanges. (getAttributes()): Replace map with list. Rename a_attributes to aAttributes. * gnu/java/text/FormatBuffer.java: Add static import for Attribute. * gnu/java/text/FormatCharacterIterator.java: (attributes): Replace array with list. (FormatCharacterIterator()): Likewise. (FormatCharacterIterator(String,int,List)): Switch from array to list. Update documentation. (getAllAttributeKeys()): Add generic type. Switch from array to list. (getAttributes()): Likewise. (getAttribute(Attribute)): Likewise. (getRunLimit(Set)): Likewise. (getRunLimit(Attribute)): Likewise. (getRunStart(Set)): Likewise. (getRunStart(Attribute)): Likewise. (mergeAttributes(List,int[])): Likewise. Use List in preference to Vector. Use newRanges & newAttributes rather than new_ranges and new_attributes. (append(AttributedCharacterIterator)): Likewise. (append(String,HashMap)): Likewise. (addAttributes(Map,int,int)): Likewise. (dumpTable()): Use startRange instead of start_range. Add generic types. * gnu/java/text/StringFormatBuffer.java, Add static import for Attribute. * java/text/AttributedString.java: Add static import for Attribute. (attribs): Add generic type. (AttributeRange(Map,int,int)): Likewise. (AttributedString(String,Map)): Likewise. (AttributedString(AttributedCharacterIterator, int, int, Attribute)): Drop prefix, add generic types. (addAttribute(Attribute,Object)): Drop prefix. (addAttribute(Attribute,Object,int,int)): Likewise and add generic types. (addAttributes(Map,int,int)): Add generic types. (getIterator(Attribute)): Drop prefix. (getIterator(Attribute[])): Likewise. * java/text/AttributedStringIterator.java: Add static import for Attribute. (getAllAttributeKeys()): Add generic type. (getRunLimit(Attribute)): Add generic type, drop prefix. (getRunLimit(Set)): Add generic types. (getRunStart(Attribute)): Add generic type, drop prefix. (getRunStart(Set)): Add generic types. (getAttributes()): Likewise. * java/text/Bidi.java: (formatterIndices): Add generic type. (reinsertFormattingCodes()): Drop redundant cast. * java/text/BreakIterator.java: (getInstance(String,Locale)): Add generic type to Class. * java/text/ChoiceFormat.java: (stringVec): Add generic type. (limitVec): Likewise. (applyPattern(String)): Remove redundant cast. * java/text/CollationElementIterator.java: (textDecomposition): Renamed from text_decomposition. (textIndexes): Renamed from text_indexes. (setText(String)): Add generic types. Rename a_element to aElement. Rename a_idx to aIdx. Rename key_old to keyOld. Use Integer.valueOf rather than new Integer. * java/text/DecimalFormat.java: (attributes): Add generic type. (formatToCharacterIterator(Object)): Remove redundant cast. * java/text/MessageFormat.java: (Field()): Remove unneeded warning suppression. * java/text/NumberFormat.java: (Field()): Likewise. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge branch 'master' of git.sv.gnu.org:/srv/git/classpathAndrew John Hughes2012-07-020-0/+0
|\ | | | | | | | | | | Conflicts: ChangeLog java/text/DateFormatSymbols.java
| * Cache the compiled regular expressions for splitting locale data fields.Andrew John Hughes2012-05-013-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-05-01 Andrew John Hughes <ahughes@redhat.com> * java/text/DateFormatSymbols.java: Rename U00AE and U000A9 as the more memorable FIELD_SPLIT and ZONE_SPLIT respectively. * THANKYOU: Add Andreas Sewe. 2012-04-30 Andreas Sewe <sewe@st.informatik.tu-darmstadt.de> * java/text/DateFormatSymbols.java: (U00A9): Pre-compile pattern for zone separation. (U00AE): Likewise for fields. (getStringArray(List,String,int,String)): Use U00AE.split in place of String.split. (getZoneStrings(ResourceBundle,Locale)): Use U00AE.split and U00A9.split in place of String.split. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* | PR44052: Cache parsed property data for DateFormatSymbols.Andrew John Hughes2012-07-022-34/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-07-01 Andrew John Hughes <ahughes@redhat.com> PR classpath/44052 * java/text/DateFormatSymbols.java: (DFSData): Inner immutable class for storing parsed locale data. (DFSData.DFSData(String[],String[],String,String[], String[],String[],String[],String[],String[], String[][])): Constructor to initialise a new instance with property data. (DFSData.getAMPMs()): Return a clone of the ampms array. (DFSData.getEras()): Likewise for eras. (DFSData.getLocalPatternChars()): Return the local pattern characters. (DFSData.getMonths()): Return a clone of the (long) months array. (DFSData.getShortMonths()): Likewise for the short months array. (DFSData.getWeekdays()): Likewise for (long) weekdays. (DFSData.getShortWeekdays()): Likewise for short weekdays. (DFSData.getDateFormats()): Likewise for date formats. (DFSData.getTimeFormats()): Likewise for time formats. (DFSData.getZoneStrings()): Likewise for zone strings. (dataCache): Cache of parsed locale data. (getZoneStrings(List<ResourceBundle>,Locale)): Make static so it can be called by retrieveData. (formatsForKey(List<ResourceBundle>,String)): Likewise. (getString(List<ResourceBundle>, String)): Likewise. (retrieveData(Locale)): Separate out retrieval of locale data from constructor and store it in the cache. (DateFormatSymbols(Locale)): Modify to call retrieveData and set fields from the returned DFSData instance. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* | Refactor DateFormatSymbols to use list of ResourceBundle objects for all ↵Andrew John Hughes2012-05-312-16/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lookups. Fix bug whereby we were using the least-specific bundle for time & date formats. 2012-05-30 Andrew John Hughes <ahughes@redhat.com> * java/text/DateFormatSymbols.java: (getZoneStrings(List<ResourceBundle>, Locale)): Refactor to use existing list of resource bundles. (formatsForKey(List<ResourceBundle>, String)): Likewise and use new local getString method. (getString(List<ResourceBundle>, String)): Use first available String from most-specific locale rather than the least-specific. (DateFormatSymbols(Locale)): Use bundles for resolving localPatternChars, dateFormats, timeFormats and runtimeZoneStrings as well. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* | Remove use of deprecated pango_ft2_font_map_create_context which breaks ↵Andrew John Hughes2012-05-042-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Werror build. 2012-05-04 Andrew John Hughes <ahughes@redhat.com> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c, (font_map): Renamed from ft2_map. (Java_gnu_java_awt_peer_gtk_GdkFontPeer_initStaticState(JNIEnv, jclass)): Remove cast to pango_ft2_font_map_new. (Java_gnu_java_awt_peer_gtk_GdKFontPeer_setFont(JNIEnv, jobject,jstring,jint,jint)): Call pango_font_map_create_context rather than deprecated pango_ft2_font_map_create_context. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* | PR classpath/53171: Cache the compiled regular expressions for splitting ↵Andrew John Hughes2012-05-023-3/+27
|/ | | | | | | | | | | | | | | | | | | | | | | locale data fields. 2012-05-01 Andrew John Hughes <ahughes@redhat.com> * java/text/DateFormatSymbols.java: Rename U00AE and U000A9 as the more memorable FIELD_SPLIT and ZONE_SPLIT respectively. * THANKYOU: Add Andreas Sewe. 2012-04-30 Andreas Sewe <sewe@st.informatik.tu-darmstadt.de> * java/text/DateFormatSymbols.java: (U00A9): Pre-compile pattern for zone separation. (U00AE): Likewise for fields. (getStringArray(List,String,int,String)): Use U00AE.split in place of String.split. (getZoneStrings(ResourceBundle,Locale)): Use U00AE.split and U00A9.split in place of String.split. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>