Jonathan Gibbons
7e2e9759d5
8042358: some tests have placeholder bugid 1234567
...
Reviewed-by: mduigou
2014-05-02 16:41:10 -07:00
Jan Lahoda
69c52bd73b
8039079: Test tools/javac/processing/environment/round/TestElementsAnnotatedWith.java fails
...
Ensuring the test passes in both samevm and othervm modes.
Reviewed-by: darcy
2014-04-15 18:58:47 +02:00
Jan Lahoda
5905e8f494
8039466: Tests failing in langtools repository
...
Fixing tests broken by JDK-8038455.
Reviewed-by: jjg
2014-04-08 23:33:50 +02:00
Jan Lahoda
e5c8101894
8038455: Use single Context for all rounds of annotation processing
...
One set of javac services, as well as created ClassSymbols, is reused for all rounds of processing now.
Reviewed-by: jjg, jfranck, darcy, vromero
2014-04-08 14:06:11 +02:00
Paul Govereau
e231918e58
8034933: Update documentation for Types.directSupertypes to clarify behavior
...
Reviewed-by: darcy
2014-04-01 23:52:10 -07:00
Joel Borggrén-Franck
24400e1745
8038080: annotation processors don't visit declaration parameter annotations
...
Co-authored-by: Liam Miller-Cushon <cushon@google.com>
Reviewed-by: darcy
2014-03-26 12:18:11 +01:00
Jan Lahoda
74250736aa
8031383: Error recovery in JavacParser could be improved
...
Improving error recovery in JavacParser by avoiding artificial nextToken in JavacParser.reportSyntaxError.
Co-authored-by: Dusan Balek <dusan.balek@oracle.com>
Reviewed-by: jjg, jfranck
2014-02-28 20:25:24 +01:00
Jan Lahoda
4724c454cd
8030091: Request to update error messages from javac for negative varargs test cases
...
Introducing a new error message for vararg parameter not being the last parameter, improving error message for unexpected character after a parameter.
Reviewed-by: jjg, sogoel
2014-02-02 12:12:01 +01:00
Joe Darcy
87dec1fa1a
8031745: Remove unneeded/obsolete -source/-target options in javac tests, part 1
...
Reviewed-by: jjg, sogoel
2014-01-16 18:00:25 -08:00
Jan Lahoda
8a2542c71f
8030049: RoundEnvironment.getElementsAnnotatedWith receives wrong elements
...
Match the required and actual annotations using Element equivalence rather than TypeMirror equivalence, to avoid trouble with erroneous types.
Reviewed-by: darcy
2014-01-10 19:02:54 +01:00
Joe Darcy
6fc7157058
8028543: Add SourceVersion.RELEASE_9
...
Reviewed-by: jjg
2014-01-07 11:43:56 -08:00
Jan Lahoda
b06d1bfb55
8029715: test needs bugID added to @bug tag
...
Adding forgotten bug number
Reviewed-by: vromero
2013-12-17 10:55:58 +01:00
Joe Darcy
b2651d0972
8028545: Add -source 9 and -target 9 to javac
...
8000961: Change javac source and target default to 9
Reviewed-by: jjg
2013-12-16 10:15:38 -08:00
Jan Lahoda
5fd77a7cef
6557966: Multiple upper bounds of the TypeVariable
...
Adjusting javax.lang.model javadoc regarding IntersectionType, IntersectionType.accept now calls visitIntersection for all kinds of IntersectionTypes.
Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Reviewed-by: darcy, vromero
2013-11-20 13:44:39 +01:00
Joe Darcy
d9cc608057
8027730: Fix release-8 type visitors to support intersection types
...
Reviewed-by: jjg, jlahoda, sogoel
2013-11-07 20:11:56 -08:00
Jan Lahoda
513a51e9bb
8027310: Annotation Processor crashes with NPE
...
JCAnnotation.attribute is null when annotation type is unavailable
Reviewed-by: jjg, jfranck
2013-11-01 21:43:27 +01:00
Joel Borggrén-Franck
d8d3ea2057
8026857: AnnoConstruct.getAnnotationsByType does not search supertype for inherited annotations if @SomeContainer({}) is present
...
An empty container should not stop javac from looking at supertypes for inherited repeating annotations
Reviewed-by: jjg
2013-10-22 10:08:49 +02:00
Joel Borggrén-Franck
4a79e1cec8
8026855: AnnoConstruct.getAnnotationsByType includes inherited indirectly present annotations even when containee type is not inheritable
...
In AnnoConstruct.getAnnotationByType() check that the annotation sought after is inherited before looking on supertypes.
Reviewed-by: jjg
2013-10-22 03:36:44 +02:00
Werner Dietl
e5c34a89eb
8026564: import changes from type-annotations forest
...
Co-authored-by: Steve Sides <steve.sides@oracle.com>
Reviewed-by: jjg
2013-10-15 15:57:13 -07:00
Jan Lahoda
da21af58f4
8014016: javac is too late detecting invalid annotation usage
...
Adding new queue to Annotate for validation tasks, performing annotation validation during enter
Reviewed-by: jjg, emc, jfranck
2013-10-14 22:11:09 +02:00
Jan Lahoda
958096d69b
6278240: Exception from AnnotationValue.getValue() should list the found type not the required type
...
Reviewed-by: darcy, jfranck, jjg
2013-10-11 15:49:15 +02:00
Jan Lahoda
5ec0ba7c47
8025087: Annotation processing api returns default modifier for interface static method
...
ClassReader must not set Flags.DEFAULT for interface static methods
Reviewed-by: vromero, jjg
2013-10-09 13:09:31 +02:00
Jonathan Gibbons
be225c4b49
8022163: javac exits with 0 status and no messages on error to construct an ann-procesor
...
Reviewed-by: darcy
2013-10-04 13:59:13 -07:00
Jan Lahoda
dd031ed38f
8025118: Annotation processing api returns default modifier for interface without default methods
...
TypeElement.getModifiers() should not contain Modifier.DEFAULT
Reviewed-by: darcy, jjg
2013-10-04 08:29:54 +02:00
Eric McCorkle
d03ac9784a
8025413: NPE in Type.java due to recent change
...
IsCompound throws a NPE for noType and other types. Made it return a reasonable result instead.
Reviewed-by: jjg, vromero
2013-09-28 13:46:14 -04:00
Eric McCorkle
c101eca6bb
6499673: Assertion check for TypeVariable.getUpperBound() fails
...
Fix TypeVariable.getUpperBound to return results as specified
Reviewed-by: jjg
2013-09-23 15:37:59 -04:00
Jonathan Gibbons
810c76f567
8006972: jtreg test fails: test/tools/javac/processing/model/element/TestMissingElement/TestMissingElement.java
...
Reviewed-by: darcy
2013-09-09 17:36:23 -07:00
Kumar Srinivasan
c9f3cedbfa
7179455: tools/javac/processing/model/testgetallmembers/Main.java fails against JDK 7 and JDK 8
...
Reviewed-by: jjg
2013-08-20 14:15:45 -07:00
Joel Borggrén-Franck
07d44a6520
8019243: AnnotationTypeMismatchException instead of MirroredTypeException
...
Reviewed-by: jjg
2013-08-20 17:21:47 +02:00
Kumar Srinivasan
7870f1a6dc
7071377: Exception when javac -processor is given a class name with invalid postfix
...
Reviewed-by: jjg, vromero
2013-08-19 07:47:10 -07:00
Joel Borggrén-Franck
70ac5c3a48
8009367: Wrong kind of name used in comparison in javax.lang.model code for repeatable annotations
...
Reviewed-by: jjg, darcy
2013-08-07 01:32:39 +02:00
Joel Borggrén-Franck
2030148ec2
8007961: javax.lang.model tests for repeating annotations fail in getAnnotationsByType
...
Reviewed-by: jjg
2013-07-25 11:02:27 +02:00
Joe Darcy
547a050fe1
7162089: Add support for repeating annotations to javax.annotation.processing
...
Reviewed-by: abuckley, jjg, jfranck
2013-07-01 11:58:45 -07:00
Werner Dietl
54582cab82
8013852: update reference impl for type-annotations
...
Co-authored-by: Steve Sides <steve.sides@oracle.com>
Co-authored-by: Joel Borggren-Franck <joel.franck@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Reviewed-by: jjg
2013-05-14 15:04:06 -07:00
Jonathan Gibbons
155bd74411
8012728: Normalize @ignore comments on langtools tests
...
Reviewed-by: vromero, mcimadamore
2013-05-03 09:56:56 -07:00
Joel Borggrén-Franck
16bec05e63
8011027: Type parameter annotations not passed through to javax.lang.model
...
Reviewed-by: jjg, darcy
2013-04-22 10:24:19 +02:00
Joe Darcy
3aabe92c92
8011052: Add DEFAULT to javax.lang.model.Modifier
...
Reviewed-by: abuckley, jjg
2013-04-03 12:27:12 -07:00
Joel Borggrén-Franck
14c0c8eed8
8007279: Rename javax.l.model.element.Element.getAnnotations(Class) to getAnnotationsByType(Class)
...
Reviewed-by: darcy, abuckley
2013-02-13 10:33:13 +01:00
Matherey Nunez
024075fabb
8004822: RFE to write language model API tests for repeating annotations based on the spec updates
...
Reviewed-by: jjg, abuckley
2013-02-12 11:28:45 +01:00
Joe Darcy
44e3518c32
8007574: Provide isFunctionalInterface in javax.lang.model
...
Reviewed-by: jjg
2013-02-11 13:37:41 -08:00
Michael Ernst
659a96edf9
8006775: JSR 308: Compiler changes in JDK8
...
Co-authored-by: Werner Dietl <wmdietl@cs.washington.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Co-authored-by: Mahmood Ali <mahmood@notnoop.com>
Reviewed-by: jjg
2013-01-23 13:27:24 -08:00
Lana Steuck
f2c7a7867a
Merge
2012-12-28 18:39:09 -08:00
Joe Darcy
378571e10e
8005282: Use @library tag with non-relative path for javac tests
...
Reviewed-by: jjg
2012-12-21 08:45:43 -08:00
David Katleman
8208c844dd
8004982: JDK8 source with GPL header errors
...
Reviewed-by: ohair
2012-12-20 16:24:18 -08:00
Joe Darcy
da02d4f3d5
8005046: Provide checking for a default method in javax.lang.model
...
Reviewed-by: jjg
2012-12-18 00:24:54 -08:00
Jonathan Gibbons
55ec94e302
7196462: JavacProcessingEnvironment should tolerate BasicJavacTask
...
Reviewed-by: mcimadamore
2012-09-24 14:04:34 -07:00
Jonathan Gibbons
504f41de5d
7192744: fix up tests to accommodate jtreg spec change
...
Reviewed-by: darcy
2012-08-20 13:50:04 -07:00
Jonathan Gibbons
c1ee469435
7192449: fix up tests to accommodate jtreg spec change
...
Reviewed-by: darcy
2012-08-17 17:30:03 -07:00
Steve Sides
12a8d12863
7191449: update copyright year to match last edit in jdk8 langtools repository
...
Reviewed-by: jjh
2012-08-15 13:48:46 -07:00
Jan Lahoda
324e987e82
7166010: (javac) JavacMessager incorrectly restores log source file
...
Reviewed-by: jjg
2012-05-04 07:55:51 -07:00