Paul Govereau
23e712af80
8030726: tools/javac/NoStringToLower.java fails due to enforcement no use of String.toLowerCase on non-langtools classes
...
Fix NoStringToLower test to only enforce ban on String.toLowerCase on langtools classes
Reviewed-by: vromero, jfranck
2013-12-19 11:38:45 -05:00
Jan Lahoda
f67718a9d7
8029800: Flags.java uses String.toLowerCase without specifying Locale
...
Introducing StringUtils.toLowerCase/toUpperCase independent on the default locale, converting almost all usages of String.toLowerCase/toUpperCase to use the new methods.
Reviewed-by: jjg, bpatel
2013-12-17 10:55:59 +01:00
Vicente Romero
5c11c6515b
8041713: Type inference of non-existent method references crashes the compiler
...
Reviewed-by: mcimadamore
2014-06-04 20:01:13 +01:00
Vicente Romero
1a258d703f
8044487: Fix for 8042785 causes regression tests to fail with java.lang.VerifyError
...
Reviewed-by: jjg, ksrini
2014-06-03 20:00:01 +01:00
Jan Lahoda
4126a92897
8031967: For some sources compiler compiles for ever
...
Avoid creating DeferredTypes for method calls with method calls as receivers if the site can be determined reliably
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore, vromero
2014-05-30 12:54:16 +02:00
Vicente Romero
4fdf5fb0f8
8042785: javac, bridge methods are not getting the flags from the original method
...
Reviewed-by: jjg, jlahoda
2014-05-30 18:21:05 +01:00
Paul Govereau
1eeb47c67c
8042741: Java 8 compiler throws NullPointerException depending location in source file
...
Reviewed-by: vromero, jlahoda
2014-05-27 22:26:53 +01:00
Stephane Epardaud
39412a6156
8037934: Javac generates invalid signatures for local types
...
Reviewed-by: vromero, rfield
2014-05-28 21:47:30 +01:00
Vicente Romero
7c2e512261
8037937: javac: AssertionError during LVT generation, wrong variable ranges
...
Reviewed-by: mcimadamore
2014-05-29 15:28:01 +01:00
Dan Smith
52b67bab54
8044050: Move misplaced inference tests to test/tools/javac/generics/inference
...
Reviewed-by: vromero
2014-05-27 16:39:05 -06:00
Paul Govereau
6b0e45946c
8041704: wrong error message when mixing lambda expression and inner class
...
Reviewed-by: vromero
2014-05-27 21:15:06 +01:00
Paul Govereau
c01eecb994
8033437: javac, inconsistent generic types behaviour when compiling together vs. separate
...
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: jjg
2014-05-23 16:27:22 +01:00
Dan Smith
1521e690b5
8034223: Most-specific should not have any special treatment for boxed vs. unboxed types
...
Rewrite most-specific logic to conform to JLS 8 15.12.2.5
Reviewed-by: vromero
2014-05-14 15:41:28 -06:00
Vicente Romero
3d0a7059e8
8037379: fix for JDK-8029569 doesn't cover all possible cases
...
Reviewed-by: jjg
2014-05-13 16:14:54 +01:00
Vicente Romero
6aa281e08d
8028503: javac, for method references a primitive type can be added as a bound
...
Reviewed-by: jjg, dlsmith
2014-05-13 16:11:43 +01:00
Vicente Romero
3a1e8e7b59
8029102: Enhance compiler warnings for Lambda
...
Reviewed-by: briangoetz, jjg, jlahoda, ahgross
2014-05-13 14:18:34 +01:00
Jan Lahoda
a3447a6349
8041663: Sensitive dependence on location of nested interface
...
Adding a method among ambiguous candidates only if it is more specific than some of the existing candidates.
Reviewed-by: dlsmith, vromero
2014-05-09 12:55:58 +02:00
Jan Lahoda
2d4fa62e0c
8040822: Duplicated notifications can be sent to TaskListener
...
The analyze finished event must only be sent on the first call to JavaCompiler.flow for a given class.
Reviewed-by: jjg
2014-05-09 09:36:35 +02:00
Dan Smith
63c105c89c
8042656: Inference produces spurious error for intersection type bounds check
...
Fix subtyping for intersections involving capture variables
Reviewed-by: vromero
2014-05-09 19:42:25 -06:00
Dan Smith
f64282bc0f
8033718: Inference ignores capture variable as upper bound
...
Split Types.lowerBound into two methods; fix bugs in inference handling of capture variables.
Reviewed-by: vromero
2014-05-06 15:46:09 -06:00
Vicente Romero
c91f0985c3
8030741: Inference: implement eager resolution of return types, consistent with JDK-8028800
...
Reviewed-by: dlsmith, jjg
2014-05-02 01:25:26 +01:00
Robert Field
d4d9a02e3e
8029852: Bad code generated (VerifyError) when lambda instantiates enclosing local class and has captured variables
...
8029725: Lambda reference to containing local class causes javac infinite recursion
Reviewed-by: vromero, jlahoda, dlsmith
2014-05-01 15:43:28 -07:00
Robert Field
00f358195e
8036942: javac generates incorrect exception table for multi-catch statements inside a lambda
...
Union type info lost and also union type is not processed by TreeMaker.Type -- address by using existing tree, thus by-passing such issues.
Reviewed-by: vromero, jlahoda
2014-05-01 11:35:02 -07:00
Paul Govereau
716baf3d89
8039026: Definitely unassigned field can be accessed
...
Reviewed-by: vromero, jlahoda
2014-04-30 23:29:43 +01:00
Paul Govereau
a652cf06ab
8038023: Compiler crash ClassCastException
...
Add additional checks on results of ClassReader.readPool
Reviewed-by: vromero
2014-04-30 23:26:43 +01:00
Jan Lahoda
200231c13f
8039250: Test tools/javac/classfiles/InnerClasses/SyntheticClasses.java fails
...
The test should only analyze classfiles.
Reviewed-by: vromero
2014-04-23 11:28:09 +02:00
Jan Lahoda
c95d4f510c
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
eb58718c31
8038788: javac behaves incorrectly for annotations after method type parameters in some cases
...
Reviewed-by: jjg, emc
2014-04-18 11:53:34 +02:00
Vicente Romero
8f85051892
8029718: Should always use lambda body structure to disambiguate overload resolution
...
Reviewed-by: dlsmith, jjg, jlahoda
2014-04-22 17:55:22 +01:00
Vicente Romero
487d017cd0
8029002: javac should take multiple upper bounds into account in incorporation
...
Reviewed-by: dlsmith, jjg
2014-04-18 23:58:05 +01:00
Kumar Srinivasan
b3329f42ac
8037484: [javadoc] fails with java.lang.IllegalStateException: endPosTable already set
...
Reviewed-by: jjg
2014-04-16 18:15:48 -07:00
Paul Govereau
7f97072ab7
8023945: javac wrongly allows a subclass of an anonymous class
...
Reviewed-by: jjg
2014-04-15 17:09:56 -04:00
Robert Field
619db87b78
8037935: Javac -- final local String var referenced in binary/unary op in lambda produces code that does not verify
...
Remove over-zealous Attr optimization breaking lambdas
Reviewed-by: jjg, vromero
2014-04-10 14:01:53 -07:00
Robert Field
6f88c3dbc3
8038420: Lambda returning post-increment generates wrong code
...
Reviewed-by: vromero, jlahoda
2014-04-10 11:24:26 -07:00
Jan Lahoda
b0987758cd
8035890: jdk8 javac -source 7 compiles test case it should not
...
Ensuring source level checks are performed in two additional cases related to type annotations, adding specialized error message for annotations after method type parameters.
Reviewed-by: jfranck, jjg
2014-03-31 21:27:25 +02:00
Alexander Zuev
2807e8d660
8031425: Two langtools/javac tests fail by timeout on Windows
...
Reviewed-by: vromero, jjg
2014-04-07 11:38:59 +02:00
Paul Govereau
529dad03f2
8035972: missing test file for 8034048
...
Reviewed-by: jjg, vromero
2014-04-04 12:56:56 +01:00
Alexander Zuev
3c5471b816
8035104: reorder class file attributes in javap listing
...
Reviewed-by: ksrini
2014-03-27 10:29:51 -07:00
Joel Borggrén-Franck
700e1bbd32
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
2e796baf6b
8034854: outer_class_info_index of synthetic class is not zero
...
Auxiliary synthetic anonymous classes should not have an outer class specified in the InnerClasses attribute.
Reviewed-by: vromero, jjg, abuckley
2014-03-07 13:35:56 +01:00
Jan Lahoda
f088b12ca4
8028576: Incorrect RuntimeVisibleTypeAnnotations for exception parameters when not generating debuging info
...
The exception parameters with type annotations need to be added into the varBuffer even if not generating debug info
Reviewed-by: jjg, emc
2014-01-15 13:49:57 +01:00
Vicente Romero
b318f9c574
8034924: Incorrect inheritance of inaccessible static method
...
Reviewed-by: jjg, jlahoda
2014-03-19 16:44:49 +00:00
Alexander Zuev
260a26acc3
8032869: remove support for legacy options in javap
...
Reviewed-by: ksrini
2014-03-03 16:08:06 +04:00
Alexander Zuev
e49749f5d4
8035364: An extra space in the comments of constant pool entries
...
Reviewed-by: ksrini
2014-02-20 18:28:46 +04:00
Alexander Zuev
52564eb70d
8034840: Regression test tools/javap/MethodParameters.java fails in 8u20 nightly build
...
Reviewed-by: jjg
2014-02-20 15:42:59 +04:00
Kumar Srinivasan
8fab7f7307
8029145: javadoc fails with java.lang.IllegalStateException: endPosTable already set
...
Reviewed-by: jjg
2014-02-14 17:28:07 -08:00
Alexander Zuev
fe87ca95ba
8033180: An inappropriate newline symbol in the help section
...
Reviewed-by: ksrini
2014-02-18 19:27:19 +04:00
Alexander Zuev
3419e0f9fa
8032819: Extra empty line between field declarations for the "-v -c" and "-v -l" combination of options
...
Reviewed-by: ksrini
2014-02-15 22:23:44 +04:00
Jonathan Gibbons
56c07eeb89
8031212: doclint incorrectly rejects some @see tags in javadoc comments
...
Reviewed-by: vromero
2014-01-27 16:07:32 -08:00
Alexander Zuev
f40cd11edd
8032814: LineNumberTable/LocalVariableTable tables duplication for the "-v -l" combination of options
...
Reviewed-by: ksrini
2014-02-13 20:34:27 +04:00
Alexander Zuev
9bf37df661
8033930: Unnecessary new line after the StackMapTable
...
8033913: Incorrect indentation of StackMapTable entries
Reviewed-by: ksrini
2014-02-12 23:52:58 +04:00
Alexander Zuev
228e7630d7
8033711: An exception is thrown if using the "-classpath" option with no arguments
...
Reviewed-by: ksrini
2014-02-11 23:30:36 +04:00
Alexander Zuev
a6dfb4a289
8033581: Incorrect comment aligment
...
8033798: javap output has unnecessary trailing whitespace
8033726: StackMapTable does not unindent properly
Reviewed-by: ksrini
2014-02-11 19:05:50 +04:00
Vicente Romero
6d6327e157
8030855: Default methods should be visible under source previous to 8
...
Reviewed-by: jjg, dlsmith
2014-02-06 21:11:27 +00:00
Vicente Romero
18ac61652d
8029240: Default methods not always visible under -source 7
...
Reviewed-by: jjg
2014-02-06 21:03:03 +00:00
Matherey Nunez
39f6f46864
8027175: Existing regression tests in tl/langtools and tl/jdk need to be updated for @bug keyword
...
Reviewed-by: jjg, ksrini
2014-01-30 11:09:01 -08:00
Jan Lahoda
7df78c2907
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
Vicente Romero
91742ab58c
8030816: javac crashes when mixing lambdas and inner classes
...
Reviewed-by: jjg, jlahoda
2014-01-27 21:15:39 +00:00
Vicente Romero
a6d4d9d5ff
8030218: javac, compile time error isn't shown when final static field is not assigned, follow-up
...
Reviewed-by: jjg, jfranck, sundar
2014-01-27 21:05:58 +00:00
Joel Borggrén-Franck
2df6caaf04
8029017: ElementType.TYPE_USE should be a logical superset of ElementType.TYPE and ANNOTATION_TYPE
...
Reviewed-by: abuckley, jlahoda, vromero
2014-01-23 14:09:29 +01:00
Matherey Nunez
8ce79f8480
8027477: Enable repeating annotations test cases since JDK-8004912 is fixed
...
Reviewed-by: jjg
2014-01-23 11:59:06 -08:00
Steve Sides
93876b4349
8029230: Update copyright year to match last edit in jdk8 langtools repository for 2013
...
Reviewed-by: ksrini
2013-12-24 09:17:37 -08:00
Bhavesh Patel
1f37cc51f1
8016549: jdk7 javadocs are hard to read
...
Reviewed-by: jjg
2013-12-18 19:48:47 -08:00
Vicente Romero
679f831609
8029721: javac crash for annotated parameter type of lambda in a field
...
Reviewed-by: rfield, jfranck
2013-12-13 14:13:03 +00:00
Robert Field
a02a8fba3e
8029558: java.lang.VerifyError: Bad return type when lambda's body is in parentheses
...
Properly type convert the body of a lambda expression
Reviewed-by: vromero
2013-12-11 11:56:55 -08:00
Vicente Romero
081a51d2ce
8029569: internal javac cast exception when resolving varargs ambiguity
...
Reviewed-by: jjg
2013-12-09 19:29:33 +00:00
Mandy Chung
cd7a8e76a4
8029216: (jdeps) Provide a specific option to report JDK internal APIs
...
Reviewed-by: alanb
2013-12-04 15:39:36 -08:00
Vicente Romero
a64e195ca9
8029179: javac produces a compile error for valid boolean expressions
...
Reviewed-by: jjg, jlahoda
2013-12-03 18:13:18 +00:00
Werner Dietl
e2d2bb9a25
8028699: Compiler crash during speculative attribution of annotated type
...
Moving the checkForDeclarationAnnotations check into Attr.TypeAnnotationsValidator
Reviewed-by: jjg
2013-12-03 18:50:26 +01:00
Jan Lahoda
51d11b5222
8027789: Access method for Outer.super.m() references indirect superclass
...
Internally convert the qualified super access to an equivalent of an unqualified super access inside the access method.
Reviewed-by: vromero, jjg
2013-11-26 15:33:12 +01:00
Jan Lahoda
38ef229e3f
8026374: javac accepts void as a method parameter
...
Changing Check.validate to reject void types.
Reviewed-by: jjg, vromero
2013-11-26 15:27:19 +01:00
Joel Borggrén-Franck
979151dfa9
8028428: strictfp allowed as annotation element modifier
...
Reviewed-by: jjg
2013-11-26 13:33:33 +01:00
Jonathan Gibbons
7f2246bbef
8028318: [doclint] doclint will reject existing user-written doc comments using custom tags that follow the recommended rules
...
Reviewed-by: darcy
2013-11-25 17:42:28 -08:00
Robert Field
14ae524304
8028739: javac generates incorrect descriptor for MethodHandle::invoke
...
Introduce special handling for signature polymorphic methods
Reviewed-by: jjg
2013-11-22 17:07:35 -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
Vicente Romero
f4c2201eb4
8028504: javac generates LocalVariableTable even with -g:none
...
Reviewed-by: jjg, jlahoda
2013-11-19 23:35:43 +00:00
Vicente Romero
e6e0508e1a
8026231: Look at 'static' flag when checking method references
...
Reviewed-by: jjg, dlsmith
2013-11-15 11:08:12 +00:00
Bhavesh Patel
b140c3c382
8025524: javadoc does not correctly locate constructors for nested classes
...
Reviewed-by: jjg
2013-11-14 13:47:38 -08:00
Vicente Romero
34a6de55b2
8026963: type annotations code crashes for code with erroneous trees
...
Reviewed-by: jjg, jlahoda
2013-11-14 19:28:20 +00:00
Eric McCorkle
71adca3d64
8028282: Remove @ignore from test langtools/test/tools/javac/T7042623.java
...
Remove @ignore from test
Reviewed-by: jjg
2013-11-14 12:32:57 -05:00
Sonali Goel
b941719f94
8025113: Convert 7 tools TryWithResources tests to jtreg format
...
Reviewed-by: darcy, jjg
2013-11-13 16:36:08 -08:00
Joel Borggrén-Franck
f3cb828db7
8027375: javac asserts on nested erroneous annotations
...
Make sure JCAnnotation trees have type != null before annotation processing
Reviewed-by: jjg
2013-11-11 17:26:09 +01:00
Eric McCorkle
44f29ffde7
8027439: Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
...
8027253: javac illegally accepts array as bound
Backing out change allowing arrays in intersection types
Reviewed-by: vromero
2013-11-11 09:47:46 -05:00
Jan Lahoda
d3eb4e0816
8027142: Invokedynamic instructions don't get line number table entries
...
When emitting invokedynamic instruction, write pendingStatPos, if set, into the LineNumberTable. Invokedynamic itself does not set the pendingStatPos.
Reviewed-by: jjg, jrose, ksrini, vromero
2013-11-09 15:24:38 +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
e9f9c31086
8027281: Incorrect invokespecial generated for JCK lang EXPR/expr636/expr63602m* tests
...
When invoking interface default method via a superclass, use the direct superclass in the reference.
Reviewed-by: vromero, dlsmith, jjg
2013-11-06 17:48:25 +01:00
Christine Lu
12da1db3d7
8027530: javap tonga tests cleanup: test -public, -protected, -package, -private options
...
Reviewed-by: jjg
2013-11-04 18:51:56 -08:00
Christine Lu
14c3c8b4fb
8027411: javap tonga tests cleanup: write a java program to test invalid options -h and -b
...
Reviewed-by: jjg
2013-11-04 18:04:34 -08:00
Christine Lu
989860b8c3
8025844: Need test to provide coverage for new DocumentationTool.Location enum
...
Reviewed-by: jjg
2013-11-04 17:38:38 -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
Vicente Romero
96d9e95176
8027660: javac crash while creating LVT entry for a local variable defined in an inner block
...
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: jjg
2013-11-01 19:08:56 +00:00
Brian Goetz
6dcdc5b742
8024930: Re-enable disabled bridging tests
...
Reviewed-by: psandoz, rfield
2013-10-30 14:12:16 -04:00
Vicente Romero
9d30f46219
8027327: jar files related to test test/tools/javac/ExtDirs/ExtDirTest.java should be removed from the repo
...
Reviewed-by: ksrini
2013-10-30 18:09:49 +00:00
Mandy Chung
fa729039be
8027481: jdeps to handle classes with the same package name and correct profile for javax.crypto.*
...
Reviewed-by: alanb, dfuchs
2013-10-30 08:35:52 -07:00
Robert Field
e49bc26ebc
8027220: DefaultMethodsTest: Change test to match spec
...
Reviewed-by: ksrini
2013-10-24 16:52:27 -07:00
Bhavesh Patel
3033b82865
8006248: Since addition of -Xdoclint, javadoc ignores unknown tags
...
Reviewed-by: jjg
2013-10-24 11:22:50 -07:00
Eric McCorkle
e62fb20a59
8023682: Incorrect attributes emitted for anonymous class declaration
...
Cause javac to emit type annotations on new instruction as well as anonymous class supertype for annotated anonymous classes.
Reviewed-by: jjg, jfranck
2013-10-24 01:27:10 -04:00
Eric McCorkle
fb5a684124
8006732: support correct bytecode storage of type annotations in multicatch
...
Fix issue with annotations being added before attribution, which causes multicatch not to work right and several tests to fail.
Reviewed-by: jfranck, jjg
2013-10-23 23:20:32 -04:00
Jan Lahoda
14fe29f845
8026861: Wrong LineNumberTable for variable declarations in lambdas
...
Setting or correcting positions for many trees produced by LambdaToMethod.
Reviewed-by: vromero, rfield
2013-10-23 07:50:04 +02:00
Jan Lahoda
237d1940c6
8027191: Fix for JDK-8026861 refers to an incorrect bug number
...
Reverting changeset e7c8a164d7bd, so that it can be applied again with a correct bug number
Reviewed-by: jjg
2013-10-23 23:02:17 +02:00
Robert Field
c9ceea7ac7
8022720: Method refeerences - private method should be accessible (nested classes)
...
Reviewed-by: jjg, ksrini
2013-10-23 10:28:10 -07:00
Jan Lahoda
5ea357c66e
8026508: Invokedynamic instructions don't get line number table entries
...
Setting or correcting positions for many trees produced by LambdaToMethod.
Reviewed-by: vromero, rfield
2013-10-23 07:50:04 +02:00
Robert Field
69709943c3
8023668: Desugar serializable lambda bodies using more robust naming scheme
...
Lambda / bridged method-reference naming overhaul
Reviewed-by: ksrini, briangoetz
2013-10-22 16:53:21 -07:00
Vicente Romero
48b6b38e52
8025290: javac implicit versus explicit lambda compilation error
...
Reviewed-by: jjg, dlsmith
2013-10-22 13:54:49 +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
Vicente Romero
43754fccbd
8026956: test tools/javac/lambda/TargetType58.java is failing after a libs change
...
Reviewed-by: jfranck
2013-10-21 15:55:02 +01:00
Kumar Srinivasan
24394acaea
8026931: MethodParameters tests failing on Windows
...
Reviewed-by: jjg, vromero
2013-10-20 12:54:17 -07:00
Werner Dietl
29582c0ec0
8026791: wrong type_path encoded for method_return on an inner class constructor
...
Reviewed-by: jjg
2013-10-20 12:46:12 -07:00
Vicente Romero
027b935c1b
8024809: javac, some lambda programs are rejected by flow analysis
...
Reviewed-by: jjg, dlsmith
2013-10-19 17:43:09 +01:00
Jonathan Gibbons
cf30c20337
8026749: Missing LV table in lambda bodies
...
Reviewed-by: vromero, jlahoda
2013-10-18 15:03:34 -07:00
Mandy Chung
1285dee32b
8015912: jdeps support to output in dot file format
...
8026255: Switch jdeps to follow traditional Java option style
Reviewed-by: alanb
2013-10-17 13:19:48 -07:00
Matherey Nunez
c57660ca19
8008192: Better ordering checks needed in repeatingAnnotations/combo/ReflectionTest
...
Reviewed-by: jjg, jfranck
2013-10-17 13:50:00 +02:00
Matherey Nunez
7c6e4696ab
8015372: Update tests for Method Parameter Reflection API to check whether a parameter is final
...
Reviewed-by: jjg, jfranck
2013-10-17 13:27:36 +02:00
Eric McCorkle
b8aff04aa0
8026286: Improper locking of annotation queues causes assertion failures
...
8026063: Calls to annotate.flush() cause incorrect type annotations to be generated
Fix locking in ClassReader.java
Reviewed-by: jfranck
2013-10-16 16:33:04 -04:00
Jonathan Gibbons
ef68cc1fc1
8026704: Build failure with --enable-debug
...
Reviewed-by: ksrini
2013-10-16 10:47:21 -07: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
Vicente Romero
1868655b89
8024947: javac should issue the potentially ambiguous overload warning only where the problem appears
...
Reviewed-by: jjg
2013-10-15 21:02:21 +01:00
Vicente Romero
53cc43916a
8025816: javac crash with method reference with a type variable as the site
...
Reviewed-by: jjg
2013-10-15 19:36:45 +01:00
Jan Lahoda
52d83865b8
8026180: com.sun.source.tree.NewArrayTree refers to com.sun.tools.javac.util.List
...
Correcting import in NewArrayTree, adding test protecting againts improper types in API signatures
Reviewed-by: jjg
2013-10-15 16:23:18 +02:00
Jonathan Gibbons
0837163643
8025998: Missing LV table in lambda bodies
...
Reviewed-by: vromero
2013-10-14 23:07:43 -07:00
Jonathan Gibbons
31b34ce39c
8025693: recent javadoc changes cause com/sun/javadoc/testLinkOption/TestLinkOption.java to fail
...
Reviewed-by: darcy
2013-10-14 22:34:37 -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
Jonathan Gibbons
09523f2583
8026368: doclint does not report empty tags when tag closed implicitly
...
Reviewed-by: darcy
2013-10-14 12:38:09 -07: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
Robert Field
a8e63b82f1
8012557: Implement lambda methods on interfaces as private
...
8016320: Method reference in subinterface of type I.super::foo produces exception at runtime
Now that the VM supports interface instance private methods, lambda methods and lambda bridges are always private. Access is now through invokespecial.
Reviewed-by: vromero, jlahoda
2013-10-10 23:26:56 -07:00
Eric McCorkle
a78344ba67
8008762: Type annotation on inner class in anonymous class show up as regular type annotations
...
8015257: type annotation with TYPE_USE and FIELD attributed differently if repeated
8013409: test failures for type annotations
Fixes to address some problems in type annotations
Reviewed-by: jfranck, jjg
2013-10-10 20:12:08 -04:00
Eric McCorkle
ad8c918fb1
8019461: Clean up javac diagnostics
...
7196553: Review error messages for repeating annotations
Changes to the diagnostic messages to improve clarity and JLS coherence
Reviewed-by: jjg
2013-10-10 13:55:41 -04: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
Jan Lahoda
7de3ec870d
8025141: java.lang.ClassFormatError: Illegal field modifiers in class (...)
...
Should not generate non-public $assertionsDisabled field into interfaces
Reviewed-by: jjg, vromero
2013-10-09 13:06:49 +02:00
Andreas Lundblad
f6875dad27
8024415: Bug in javac Pretty: Wrong precedence in JCConditional trees
...
Fixed precedence and associativity issues with pretty printing of JCConditional expressions.
Co-authored-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: jfranck
2013-10-08 15:33:28 +02:00
Steve Sides
03c9c56f88
8005542: jtreg test OverrideBridge.java contains @ignore
...
Reviewed-by: jjg
2013-10-04 16:23:05 -07:00
Kumar Srinivasan
74d2e71e10
8003537: javap use internal class name when printing bound of type variable
...
Reviewed-by: jjg
2013-10-04 16:08:18 -07: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
Vicente Romero
696179bbda
8023679: Improve error message for '_' used as a lambda parameter name
...
Reviewed-by: jjg, dlsmith
2013-10-02 17:04:51 +01:00
Eric McCorkle
d9502c856a
8021339: Compile-time error during casting array to intersection
...
Add ability to have arrays in intersection types.
Reviewed-by: jjg, vromero
2013-10-01 17:41:57 -04: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
Kumar Srinivasan
b43acfee98
8015073: c.s.t.javac.api.JavacTool.getTask() - more informative exception
...
Reviewed-by: jjg
2013-09-27 16:05:56 -07:00
Robert Field
9a6f8e8463
8025548: langtools test tools/javac/lambda/methodReference/BridgeMethod.java incorrectly assumes no other methods generated in lambda class
...
Reviewed-by: vromero
2013-09-27 13:06:38 -07:00
Sonali Goel
475b209cf7
8025537: Convert 2 javac/enumdeclarations tests in jtreg for regression ws
...
Reviewed-by: jjg
2013-09-27 10:39:52 -07:00
Jan Lahoda
6c9b134b12
8022765: Compiler crashes with exception on wrong usage of an annotation
...
Error recovery for incorrect annotation attribute values - ensure the values are always attributed appropriately
Reviewed-by: jfranck, jjg
2013-09-27 17:28:31 +02:00
Vicente Romero
cae732b133
8024497: crash returning this-referencing lambda from default method
...
Reviewed-by: jjg, rfield
2013-09-27 10:24:56 +01:00
Sonali Goel
e60e01be01
8011738: Write test to check for bootstrap attributes for lambda expressions in class file
...
Reviewed-by: mcimadamore
2013-09-26 15:04:15 -07:00
Jonathan Gibbons
fd9a09c390
8025412: Add legal header and comments to test/tools/doclint/tidy/util/Main.java
...
Reviewed-by: bpatel
2013-09-25 14:04:24 -07:00
Jonathan Gibbons
48d1808d53
8002154: [doclint] doclint should check for issues which are errors in javadoc
...
Reviewed-by: bpatel
2013-09-24 13:48:12 -07:00
Jonathan Gibbons
e762b2997d
8025272: doclint needs to check for valid usage of @value tag
...
Reviewed-by: bpatel
2013-09-24 11:46:25 -07:00
Jonathan Gibbons
026c5d7620
8025246: [doclint] doclint is showing error on anchor already defined when it's not
...
Reviewed-by: bpatel
2013-09-24 10:51:28 -07:00
Jonathan Gibbons
14ceb05e0e
8025050: Doclint doesn't recognize <dfn> tag
...
Reviewed-by: bpatel
2013-09-24 10:48:11 -07: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