Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on May 26, 2013
  1. @gnu-andrew

    Use notifyAll, not notify, in VMProcess.

    gnu-andrew authored
    2013-05-26  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    
    	* THANKYOU: List Carl Ritson.
    
    2013-04-25  Carl Ritson  <C.G.Ritson@kent.ac.uk>
    
    	* vm/reference/java/lang/VMProcess.java,
    	(ProcessThread.run()): Use notifyAll not notify.
    	(ProcessThread.spawn()): Likewise.
    	(VMProcess(String[],String[],File,boolean)): Likewise.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
  2. @gnu-andrew

    Fix warnings in TreeMap and TreeSet.

    gnu-andrew authored
    2013-02-17  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    
    	Fix warnings.
    	* java/util/TreeMap.java:
    	(nil): Add type parameters.
    	(root): Likewise.
    	(left): Don't set to nil here.
    	(right): Likewise.
    	(parent): Likewise.
    	(Node(K,V,int)): Set left, right and parent
    	here using correctly typed nil.
    	(TreeMap()): Cast Comparator with type parameters.
    	(TreeMap(Map)): Likewise.
    	(TreeMap(SortedMap)): Remove unused variable.  Use
    	for-each loop and typed nil.
    	(clone()): Separate cast and cloning.  Add type
    	parameters to node and cnode.
    	(containsKey(Object)): Cast key.
    	(containsvalue()): Add type parameters to node.
    	(get(Object)): Cast key.
    	(headMap(K,boolean)): Likewise.
    	(put(K,V)): Cast nil before assigning to parent.
    	Add type parameters to n.
    	(putAll(Map)): Rewrite using for-each loop.
    	(remove(Object)): Cast key.
    	(tailMap(K,boolean)): Likewise.
    	(values()): Add type parameter to iterator.
    	(compare(K,K)): Suppress warnings.
    	(fabricateTree(int)): Use typed nil.
    	Add type parameters to root, row, parent, last,
    	left, right and next.
    	(firstNode()): Add type parameters to node.
    	(highestLessThan(K,boolean)): Use typed nil.
    	(insertFixup(Node)): Add type parameters to
    	uncle.
    	(lastNode()): Add type parameters to node.
    	(lowestGreaterThan(K,boolean,boolean)):
    	Use typed nil.
    	(predecessor(Node)): Add type parameters to
    	parent.
    	(putFromObjStream(ObjectInputStream,int,V)):
    	Pass value with type rather than using String.
    	Add type parameter to node.
    	(putKeysLinear(Iterator,int,V)): Pass in value
    	rather than using empty string.
    	(readObject(ObjectInputStream)): Call putFromObjStream
    	with null rather than true.
    	(removeNode(Node)): Add type parameters to parent.
    	(rotateLeft(Node)): Add type parameters to child.
    	(rotateRight(Node)): Likewise.
    	(writeObject(ObjectOutputStream)): Add type parameters
    	to node.
    	(TreeIterator): Add type parameter.
    	(TreeIterator.last): Likewise.
    	(TreeIterator.next): Likewise.
    	(TreeIterator.max): Likewise.
    	(TreeIterator.TreeIterator(int)): Cast nil.
    	(TreeIterator.TreeIterator(int,Node,Node)): Add type
    	parameters.
    	(TreeIterator.next()): Suppress warnings and cast to
    	correct type.
    	(descendingMap()): Add type parameters.
    	(clear()): Add type parameters to next, max and current.
    	(SubMap.containsKey(Object)): Fix casting of key.
    	(SubMap.containsValue(Object)): Add type parameters to
    	node and max.
    	(SubMap.get(Object)): Fix casting of key.
    	(SubMap.remove(Object)): Likewise.
    	(SubMap.size()): Add type parameters to node and max.
    	(SubMap.values()): Add type parameter to AbstractCollection,
    	first, max and TreeIterator.
    	(SubMap.KeySet.iterator()): Add type parameters to first and
    	max.
    	(SubMap.KeySet.contains(Object)): Fix casting of key.
    	(SubMap.KeySet.remove(Object)): Likewise.
    	(SubMap.NavigableKeySet.descendingSet()): Add type parameter
    	to DescendingSet.
    	(SubMap.EntrySet.iterator()): Add type parameters to first
    	and max.
    	(SubMap.EntrySet.contains(Object)): Fix casting of entry.
    	(SubMap.EntrySet.remove(Object)): Likewise.
    	(SubMap.NavigableEntrySet.descendingSet()): Add type
    	parameter to DescendingSet.
    	(SubMap.NavigableEntrySet.tailSet(Entry,boolean)): Return
    	entry set, not key set.
    	(DescendingMap.headMap(DK,boolean)): Add type parameters.
    	(DescendingMap.subMap(DK,boolean,DK,boolean)): Likewise.
    	(DescendingMap.tailMap(Dk,boolean)): Likewise.
    	(DescendingMap.values()): Add type parameter to
    	AbstractCollection.
    	(KeySet.iterator()): Add type parameter to TreeIterator.
    	(KeySet.remove(Object)): Fix casting of key.
    	(NavigableKeySet.headSet(D,boolean)): Add type parameter.
    	(NavigableKeySet.subSet(D,boolean,D,boolean)): Likewise.
    	(NavigableKeySet.tailSet(D,boolean)): Likewise.
    	(NavigableKeySet.toArray()): Suppress warnings on cast.
    	(NavigableKeySet.toArray(T[])): Likewise.
    	(EntrySet.iterator()): Add type parameter to TreeIterator.
    	(EntrySet.contains(Object)): Fix casting of entry.
    	(EntrySet.remove(Object)): Likewise.
    	(NavigableEntrySet.descendingSet()): Add type
    	parameter to DescendingSet.
    	(NavigableEntrySet.tailSet(Entry,boolean)): Return
    	entry set, not key set.
    	* java/util/TreeSet.java:
    	(TreeSet(SortedSet)): Explicitly pass empty String to
    	putKeysLinear as it no longer defaults to this.
    	(readObject(ObjectInputStream)): Pass empty String rather
    	than false, which will in turn make "" == null return false
    	in putFromObjStream.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
Commits on Mar 12, 2013
  1. Check for gettext m4 macros in autogen.sh

    authored
    If gettext-devel package is not installed on Fedora, autogen.sh fails as
    follows:
    
      [penberg@tux classpath]$ sh autogen.sh
      configure.ac:505: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
      m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from...
      m4/iconv.m4:22: AM_ICONV_LINK is expanded from...
      m4/iconv.m4:77: AM_ICONV is expanded from...
    
    Make the script more user fiendly by explicitly checking for the
    presence of gettext.m4 in the system.
    
    Cc: Andrew John Hughes  <gnu_andrew@member.fsf.org>
    Cc: Brian Jones <cbjones1@gmail.com>
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
Commits on Mar 11, 2013
  1. Add autogen-generated files to gitignore

    authored
    Make sure "git status" does not show up files after autogen.sh has been
    run.
    
    Signed-off-by: Pekka Enberg <penberg@kernel.org>
Commits on Mar 5, 2013
  1. @gnu-andrew

    Fix warnings in gnu.classpath.* code (mainly the JDWP implementation).

    gnu-andrew authored
    2013-03-04  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    
    	* gnu/classpath/Pair.java:
    	(equals(Object)): Cast to Pair<?,?> not Pair<A,B>
    	as we don't know that the objects held by the pair
    	are of the same type.
    	* gnu/classpath/ServiceProviderLoadingAction.java:
    	(run()): Suppress warning as we check the loaded
    	class is an instance of P.
    	* gnu/classpath/jdwp/Jdwp.java:
    	(_properties): Add type parameters.
    	(notify(Event[])): Likewise.
    	(_processConfigury(String)): Likewise.
    	* gnu/classpath/jdwp/event/ClassPrepareEvent.java:
    	(_class): Add type parameter.
    	(ClassPrepareEvent(Thread,class,int)): Likewise.
    	* gnu/classpath/jdwp/event/ClassUnloadEvent.java:
    	(writeData(DataOutputStream)): Don't store result
    	of getDefault() call as unused.  Retain for
    	side-effects.
    	* gnu/classpath/jdwp/event/EventManager.java:
    	(_requests): Add type parameters.
    	(EventManager()): Likewise & use Byte.valueOf
    	rather than new.
    	(getEventRequests(Event)): Likewise and remove
    	unneeded cast.
    	(requestEvent(EventRequest)): Add type parameters,
    	remove unneeded cast and use Integer.valueOf
    	rather than new.
    	(deleteRequest(byte,int)): Add type parameters,
    	use valueOf methods instead of constructors
    	and drop unneeded cast.
    	(clearRequests(byte)): Add type parameters
    	and use Byte.valueOf.
    	(getRequest(byte,int)): Likewise and drop
    	unused cast and use Integer.valueOf.
    	(getRequests(byte)): Add type parameters
    	and use Byte.valueOf.
    	* gnu/classpath/jdwp/event/EventRequest.java:
    	(_filters): Add type parameter.
    	(EventRequest(byte,byte)): Likewise.
    	(EventRequest(int,byte,byte)): Likewise.
    	(addFilter(IEventFilter)): Likewise.
    	(getFilters()): Likewise.
    	(matches(Event)): Likewise and remove unneeded
    	cast.
    	* gnu/classpath/jdwp/event/ExceptionEvent.java:
    	(_klass): Add type parameter.
    	(ExceptionEvent(Throwable,Thread,Location,Location,
    	Class,Object)): Likewise.
    	* gnu/classpath/jdwp/event/filters/ClassMatchFilter.java:
    	(matches(Event)): Add type parameter.
    	* gnu/classpath/jdwp/event/filters/ClassOnlyFilter.java:
    	(matches(Event)): Add type parameters.
    	* gnu/classpath/jdwp/event/filters/ExceptionOnlyFilter.java:
    	(matches(Event)): Add type parameter.
    	* gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java:
    	(FieldOnlyFilter(ReferenceTypeId,ReferenceTypeId)):
    	Avoid throwing a NullPointerException by using new
    	constructors for InvalidClassException and
    	InvalidFieldException.
    	* gnu/classpath/jdwp/exception/InvalidClassException.java:
    	(InvalidClassException()): New constructor for when there is
    	no ID (i.e. null was passed).
    	* gnu/classpath/jdwp/exception/InvalidFieldException.java
    	(InvalidFieldException()): New constructor for when there is
    	no ID (i.e. null was passed).
    	* gnu/classpath/jdwp/id/ClassLoaderId.java:
    	(typeClass): Add type parameter.
    	* gnu/classpath/jdwp/id/ClassObjectId.java,
    	(typeClass): Add type parameter.
    	(getClassObject()): Add type parameters.
    	* gnu/classpath/jdwp/id/JdwpId.java:
    	(_reference): Add type parameter.
    	(getReference()): Likewise.
    	(setReference(SoftReference)): Likewise.
    	* gnu/classpath/jdwp/id/NullObjectId.java:
    	(typeClass): Add type parameter.
    	(NullObjectId()): Change type parameter to same
    	used by superclass.
    	* gnu/classpath/jdwp/id/ObjectId.java:
    	(typeClass): Add type parameter.
    	* gnu/classpath/jdwp/id/ReferenceTypeId.java:
    	(getType()): Add type parameters.
    	* gnu/classpath/jdwp/id/StringId.java,
    	* gnu/classpath/jdwp/id/ThreadGroupId.java,
    	* gnu/classpath/jdwp/id/ThreadId.java:
    	(typeClass): Add type parameter.
    	* gnu/classpath/jdwp/processor/ArrayReferenceCommandSet.java:
    	(executeGetvalues(ByteBuffer,DataOutputStream)):
    	Add type parameter.
    	(executeSetValues(ByteBuffer,DataOutputStream)): Likewise.
    	* gnu/classpath/jdwp/processor/ArrayTypeCommandSet.java:
    	(executeNewInstance(ByteBuffer,DataOutputStream)): Add type
    	parameters.
    	* gnu/classpath/jdwp/processor/ClassLoaderReferenceCommandSet.java:
    	(executeVisibleClasses(ByteBuffer,DataOutputStream)):
    	Add type parameters.  Hide warnings from VM layer for now.
    	* gnu/classpath/jdwp/processor/ClassObjectReferenceCommandSet.java:
    	(executeReflectedType(ByteBuffer,DataOutputStream)): Add
    	type parameter.
    	* gnu/classpath/jdwp/processor/ClassTypeCommandSet.java:
    	(executeSuperclass(ByteBuffer,DataOutputStream)): Add
    	type parameter.
    	(executeSetValues(ByteBuffer,DataOutputStream)):
    	Call readReferenceTypeId only for side effect of changing
    	the ByteBuffer.  Result not needed.
    	(invokeMethod(ByteBuffer)): Add type parameter.
    	* gnu/classpath/jdwp/processor/MethodCommandSet.java:
    	(executeLineTable(ByteBuffer,DataOutputStream)): Add type
    	parameter.
    	(executeVariableTable(ByteBuffer,DataOutputStream)): Likewise.
    	(executeByteCodes(ByteBuffer,DataOutputStream)): Likewise.
    	* gnu/classpath/jdwp/processor/ObjectReferenceCommandSet.java:
    	(executeReferenceType(ByteBuffer,DataOutputStream)): Add type
    	parameter.
    	(executeInvokeMethod(ByteBuffer,DataOutputStream)): Likewise.
    	* gnu/classpath/jdwp/processor/PacketProcessor.java:
    	Add type parameter to implemented interface.
    	(run()): Change return type to match type parameter.
    	* gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java:
    	(executeClassLoader(ByteBuffer,DataOutputStream)): Add type
    	parameter.
    	(executeModifiers(ByteBuffer,DataOutputStream)): Likewise.
    	(executeFields(ByteBuffer,DataOutputStream)): Likewise.
    	(executeMethods(ByteBuffer,DataOutputStream)): Likewise.
    	(executeGetValues(ByteBuffer,DataOutputStream)): Likewise.
    	(executeSourceFile(ByteBuffer,DataOutputStream)): Likewise.
    	(executeNestedTypes(ByteBuffer,DataOutputStream)): Add type
    	parameters.
    	(executeStatus(ByteBuffer,DataOutputStream)): Add type parameter.
    	(executeInterfaces(ByteBuffer,DataOutputStream)): Add type
    	parameters.
    	(executeClassObject(ByteBuffer,DataOutputStream)): Add type parameter.
    	* gnu/classpath/jdwp/processor/StackFrameCommandSet.java:
    	(runCommand(ByteBuffer,DataOutputStream,byte)): Remove
    	unused keepRunning variable.
    	* gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java:
    	(executeFrames(ByteBuffer,DataOutputStream)): Add type parameter,
    	suppressing warnings from VM layer until fixed.  Remove
    	unnecessary cast.
    	* gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java:
    	(executeClassesBySignature(ByteBuffer,DataOutputStream)):
    	Add type parameters, suppressing warnings from VM layer.
    	(executeAllClasses(ByteBuffer,DataOutputStream)): Likewise.
    	(executeRedefineClasses(ByteBuffer,DataOutputStream)):
    	Add type parameter.
    	* gnu/classpath/jdwp/transport/ITransport.java:
    	(configure(HashMap)): Add type parameters.
    	* gnu/classpath/jdwp/transport/JdwpConnection.java:
    	(_commandQueue): Add type parameter.
    	(JdwpConnection(ThreadGroup,ITransport)): Likewise.
    	(getPacket()): Remove unnecessary cast.
    	* gnu/classpath/jdwp/transport/JdwpPacket.java:
    	(fromBytes(byte[])): Add type parameter.
    	* gnu/classpath/jdwp/transport/SocketTransport.java:
    	(configure(HashMap)): Add type parameters.  Remove
    	unnecessary cast.
    	* gnu/classpath/jdwp/transport/TransportFactory.java:
    	(clazz): Add type parameter.
    	(TransportMethod(String,Class)): Likewise.
    	(newInstance(HashMap)): Add type parameters.  Remove
    	unnecessary cast.
    	* gnu/classpath/jdwp/util/Location.java:
    	(Location(ByteBuffer)): Don't store return value of
    	first bb.get() call as unneeded.  Add type parameter.
    	* gnu/classpath/jdwp/util/Signature.java:
    	(computeClassSignature(Class)): Add type parameter.
    	(_computeSignature(Class,Class[])): Likewise.
    	(_addToSignature(CPStringBuilder,Class)): Likewise.
    	* gnu/classpath/jdwp/value/Value.java:
    	(getUntaggedObject(ByteBuffer,Class)): Add type
    	parameter.
    	* gnu/classpath/jdwp/value/ValueFactory.java:
    	(createFromUntagged(ByteBuffer,Class)): Add type
    	parameter.
    	(getTagForClass(Class)): Likewise.
    	(createFromObject(Object,Class)): Likewise.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
Commits on Feb 25, 2013
  1. @gnu-andrew

    Implement javax.tools.ToolProvider using ecj. Cleanup and make more u…

    gnu-andrew authored
    …se of Classpath logging mechanism.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
Commits on Feb 22, 2013
  1. @gnu-andrew

    Implement AbstractProcessor, adding annotations and an interface it d…

    gnu-andrew authored
    …epends on.
    
    2013-02-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    
    	* javax/annotation/processing/AbstractProcessor.java:
    	New class added.
    	(processingEnv): Added.
    	(initialized): Likewise.
    	(AbstractProcessor()): Implemented.
    	(getCompletions(Element,AnnotationMirror,ExecutableElement,
    	String)): Likewise.
    	(getSupportedAnnotationTypes()):Likewise.
    	(getSupportedOptions()): Likewise.
    	(getSupportedSourceVersion()): Likewise.
    	(init(ProcessingEnvironment)): Likewise.
    	(isInitialized()): Likewise.
    	(process(Set,RoundEnvironment)): Likewise.
    	* javax/annotation/processing/Completion.java:
    	New interface added.
    	(getValue()): Added.
    	(getMessage()): Likewise.
    	* javax/annotation/processing/Processor.java:
    	(getCompletions(Element,AnnotationMirror,ExecutableElement,
    	String)): Added.
    	* javax/annotation/processing/SupportedAnnotationTypes.java:
    	New annotation added.
    	(value()): Added.
    	* javax/annotation/processing/SupportedOptions.java:
    	New annotation added.
    	(value()): Added.
    	* javax/annotation/processing/SupportedSourceVersion.java:
    	Reference AbstractProcessor in documentation.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
Commits on Feb 18, 2013
  1. @gnu-andrew

    Add missing methods in javax.lang.model.SourceVersion.

    gnu-andrew authored
    2013-02-18  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    
    	* javax/lang/model/SourceVersion.java,
    	(KEYWORDS): Add array containing language keywords.
    	(isKeyword(CharSequence)): Implemented.
    	(isName(CharSequence)): Likewise.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
  2. @gnu-andrew

    Add ElementVisitor implementations and JavaFileManager forwarder.

    gnu-andrew authored
    2013-02-18  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    
    	* javax/annotation/processing/SupportedSourceVersion.java:
    	Implemented.
    	(value()): Implemented.
    	* javax/lang/model/element/ElementVisitor.java:
    	Fix typo: "implementators" should be "implementors".
    	* javax/lang/model/element/UnknownElementException.java:
    	(UnknownElementException(Element,Object)): Set message
    	using superclass constructor.
    	* javax/lang/model/util/AbstractElementVisitor6.java:
    	Implemented.
    	(AbstractElementVisitor6()): Implemented.
    	(visit(Element)): Likewise.
    	(visit(Element,P)): Likewise.
    	(visitUnknown(Element,P)): Likewise.
    	* javax/lang/model/util/ElementScanner6.java:
    	Implemented.
    	(ElementScanner6()): Implemented.
    	(ElementScanner6(R)): Likewise.
    	(scan(Element)): Likewise.
    	(scan(Element, P)): Likewise.
    	(scan(Iterable, P)): Likewise.
    	(visitExecutable(ExecutableElement, P)): Likewise.
    	(visitPackage(PackageElement, P)): Likewise.
    	(visitType(TypeElement, P)): Likewise.
    	(visitTypeParameter(TypeElement, P)): Likewise.
    	(visitVariable(VariableElement, P)): Likewise.
    	* javax/lang/model/util/SimpleElementVisitor6.java,
    	Implemented.
    	(DEFAULT_VALUE): Added.
    	(SimpleElementVisitor6()): Implemented.
    	(SimpleElementVisitor6(R)): Likewise.
    	(defaultAction(Element, P)): Likewise.
    	(visitExecutable(ExecutableElement, P)): Likewise.
    	(visitPackage(PackageElement, P)): Likewise.
    	(visitType(TypeElement, P)): Likewise.
    	(visitTypeParameter(TypeElement, P)): Likewise.
    	(visitVariable(VariableElement, P)): Likewise.
    	* javax/tools/ForwardingJavaFileManager.java:
    	Implemented.
    	(fileManager): Added.
    	(ForwardingJavaFileManager(M)): Implemented.
    	(close()): Likewise.
    	(flush()): Likewise.
    	(getClassLoader(JavaFileManager.Location)): Likewise.
    	(getFileForInput(JavaFileManager.Location, String,
    	String)): Likewise.
    	(getFileForOutput(JavaFileManager.Location, String,
    	String, FileObject)): Likewise.
    	(getJavaFileForInput(JavaFileManager.Location, String,
    	JavaFileObject.Kind)): Likewise.
    	(getJavaFileForOutput(JavaFileManager.Location, String,
    	JavaFileObject.Kind, FileObject)): Likewise.
    	(handleOption(String,Iterator)): Likewise.
    	(hasLocation(JavaFileManager.Location)): Likewise.
    	(inferBinaryName(JavaFileManager.Location, JavaFileObject)):
    	Likewise.
    	(isSameFile(FileObject, FileObject)): Likewise.
    	(isSupportedOption(String)): Likewise.
    	(list(JavaFileManager.Location, String, Set, boolean)):
    	Likewise.
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
Commits on Feb 3, 2013
  1. @gnu-andrew

    Merge branch 'compiler-support'

    gnu-andrew authored
    Conflicts:
    	ChangeLog
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
  2. @gnu-andrew

    Add remaining Set filters to ElementFilter.

    gnu-andrew authored
    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>
Commits on Feb 1, 2013
  1. @gnu-andrew

    Document ElementKind fields and add missing methods.

    gnu-andrew authored
    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>
  2. @gnu-andrew

    For ElementFilter, the type of element should be determined by its ki…

    gnu-andrew authored
    …nd, not 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>
Commits on Jan 10, 2013
  1. @doko42

    * tools/gnu/classpath/tools/gjdoc/Main.java: Accept -source 1.5, 1.6,…

    doko42 authored Mark Wielaard committed
    … 1.7.
Commits on Jan 4, 2013
  1. @gnu-andrew

    Add missing exception classes in javax.lang.model.element.* and javax…

    gnu-andrew authored
    ….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>
Commits on Dec 28, 2012
  1. @gnu-andrew

    Fix warnings in gnu.xml.validation.*

    gnu-andrew authored
    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>
  2. @gnu-andrew

    Add missing Modifier and NestingKind enumerations and associated meth…

    gnu-andrew authored
    …ods.
    
    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>
Commits on Dec 24, 2012
  1. @gnu-andrew

    Add methods to Messager now dependents are in place.

    gnu-andrew authored
    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>
Commits on Dec 19, 2012
  1. @gnu-andrew

    Provide implementation of SimpleJavaFileObject.

    gnu-andrew authored
    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>
Commits on Dec 18, 2012
  1. @gnu-andrew

    Add remaining javax.tools interfaces.

    gnu-andrew authored
    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>
  2. @theRealAph

    PR libgcj/55716

    theRealAph authored Mark Wielaard committed
    * tools/gnu/classpath/tools/javah/Main.java (parseClasses): Dont
    scan inner classes if our item is a file.
Commits on Nov 30, 2012
  1. @gnu-andrew

    Add remaining TypeMirror subclasses and associated methods.

    gnu-andrew authored
    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>
Commits on Nov 29, 2012
  1. @gnu-andrew

    Add Name & PackageElement along with methods that depend on them.

    gnu-andrew authored
    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>
Commits on Nov 27, 2012
  1. @gnu-andrew

    Add annotation elements and start of type hierarchy.

    gnu-andrew authored
    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>
Commits on Nov 26, 2012
  1. @gnu-andrew

    Implement javax.annotation.processing.Processor interface.

    gnu-andrew authored
    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>
  2. @gnu-andrew

    Documentation & annotation update/cleanup on new files.

    gnu-andrew authored
    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>
Commits on Nov 25, 2012
  1. @gnu-andrew

    Provide implementations of ForwardingFileObject and ForwardingJavaFil…

    gnu-andrew authored
    …eObject. 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>
Commits on Nov 20, 2012
  1. @gnu-andrew

    Add JavaFileManager and JavaFileObject, along with methods that use t…

    gnu-andrew authored
    …hem in 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>
Commits on Nov 13, 2012
  1. @gnu-andrew

    Add remaining methods of ProcessingEnvironment so the ecj implementat…

    gnu-andrew authored
    …ion 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>
  2. @gnu-andrew

    Start implementing classes/fields/methods necessary to build ecj.

    gnu-andrew authored
    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>
Commits on Nov 2, 2012
  1. @gnu-andrew

    PR55182: Fix build on RHEL6

    gnu-andrew authored Andrew Hughes committed
    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>
Commits on Oct 30, 2012
  1. @gnu-andrew

    PR55140: Addition of exception to codePointBefore breaks OpenJDK Gene…

    gnu-andrew authored
    …rateBreakIteratorData 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>
Commits on Oct 26, 2012
  1. @gnu-andrew
  2. @gnu-andrew

    Merge remote-tracking branch 'ivan/ivmai4review-v3'

    gnu-andrew authored
    Conflicts:
    	ChangeLog
    
    Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
  3. @gnu-andrew

    PR41689: Add missing field javax.security.sasl.Sasl.CREDENTIALS.

    gnu-andrew authored
    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>
Something went wrong with that request. Please try again.