Andreas Lundblad
8daec20c86
8030714: The steps attribute, flow and desugar are unnecessary for implicit classes when compiling with -implicit:none
...
When compiling with -implicit:none, attribute, flow and desugar is skipped for better performance.
Reviewed-by: jfranck, jlahoda
2014-02-13 14:58:10 +01:00
Jan Lahoda
e20546fe2a
8033961: Formatting of -Xlint: command line help
...
Improving formatting of command line help for -Xlint, including a short description of each lint.
Reviewed-by: jjg
2014-02-13 13:38:48 +01:00
Dan Smith
55801d06ff
4910483: Javadoc renders the string ".*\\.pdf" as ".\*\.pdf"
...
Adjust timing of printing "\\" in the comment scanner
Reviewed-by: jjg
2014-02-12 12:31:30 -07:00
Jonathan Gibbons
4e86ae9988
8033930: Unnecessary new line after the StackMapTable
...
8033913: Incorrect indentation of StackMapTable entries
Reviewed-by: ksrini
2014-02-10 11:52:52 -08:00
Jan Lahoda
c0d767f6f1
8033421: @SuppressWarnings("deprecation") does not work when overriding deprecated method
...
When the overrides deprecated method warning is being reported, need to do that in the lint context of the method.
Reviewed-by: vromero
2014-02-07 21:43:33 +01:00
Jonathan Gibbons
29f985089a
8033581: Incorrect comment aligment
...
8033798: javap output has unnecessary trailing whitespace
8033726: StackMapTable does not unindent properly
Reviewed-by: ksrini
2014-02-06 18:54:13 -08:00
Jonathan Gibbons
47528ece5e
8033711: An exception is thrown if using the \"-classpath\" option with no arguments
...
Reviewed-by: ksrini
2014-02-06 11:01:50 -08:00
Vicente Romero
edee080e4a
8030855: Default methods should be visible under source previous to 8
...
Reviewed-by: jjg, dlsmith
2014-02-06 18:49:01 +00:00
Alan Bateman
cf7f5c0b61
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
...
Reviewed-by: erikj
2014-02-06 15:49:51 +00: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
Jonathan Gibbons
30e9783850
8033180: An inappropriate newline symbol in the help section
...
Reviewed-by: ksrini
2014-01-30 17:46:25 -08:00
Jonathan Gibbons
214de0eb69
8032869: remove support for legacy options in javap
...
Reviewed-by: ksrini
2014-01-29 14:32:27 -08:00
Jonathan Gibbons
552e338377
8032819: Extra empty line between field declarations for the "-v -c" and "-v -l" combination of options
...
Reviewed-by: ksrini
2014-01-28 14:31:29 -08:00
Jonathan Gibbons
69a6133c78
8032814: LineNumberTable/LocalVariableTable tables duplication for the "-v -l" combination of options
...
Reviewed-by: ksrini
2014-01-27 17:48:47 -08:00
Jonathan Gibbons
478d2876a5
8031212: doclint incorrectly rejects some @see tags in javadoc comments
...
Reviewed-by: vromero
2014-01-27 16:07:32 -08:00
Matherey Nunez
69f2f2fad4
8027175: Existing regression tests in tl/langtools and tl/jdk need to be updated for @bug keyword
...
Reviewed-by: jjg, ksrini
2014-01-27 12:45:03 -08:00
Andreas Lundblad
99aae5c1fd
8028267: sun.tools.javac.util.Bits contains a main-method with test code
...
Removed main method from Bits and added proper unit testing.
Reviewed-by: jfranck
2014-01-24 09:39:51 +01:00
Joel Borggrén-Franck
b1bcbaeb4b
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
Vicente Romero
712b922a0f
8030816: javac crashes when mixing lambdas and inner classes
...
Reviewed-by: jjg, jlahoda
2014-01-22 21:41:50 +00:00
Matherey Nunez
0c38c2d401
8027477: Enable repeating annotations test cases since JDK-8004912 is fixed
...
Reviewed-by: jjg, jfranck
2014-01-22 12:22:23 -08:00
Alexander Zuev
bb0c5d0f71
Merge
2014-01-20 19:11:58 +04:00
Joe Darcy
4fa17d99b2
8031375: Revert test exclusions after fix for JDK-8030656 propagates
...
Reviewed-by: mduigou
2014-01-18 10:47:30 -08:00
Abhijit Saha
69a1d18d40
Merge
2014-01-16 21:46:01 -08: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
Abhijit Saha
d9ec81d45f
Merge
2014-01-15 10:18:06 -08:00
Jan Lahoda
9a0f6ed18e
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
Joel Borggrén-Franck
b3e2823f53
8029690: Move symbol creation from ClassReader to Symtab
...
Reviewed-by: jjg
2014-01-15 10:57:25 +01:00
Abhijit Saha
c575ece03d
Merge
2014-01-14 08:08:32 -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
Andreas Lundblad
a76d1ab5a2
8028389: NullPointerException compiling annotation values that have bodies
...
Made sure anonymous class declarations inside class- and package-level annotations are properly entered.
Reviewed-by: jfranck
2014-01-10 12:47:15 +01:00
Jan Lahoda
e32b40185e
8029376: Full attribution of unresolvable annotations
...
8029161: javac crashing when processing broken annotations
Attributing values of annotation attributes regardless how broken the annotation is.
Reviewed-by: jjg, jfranck
2014-01-10 11:31:09 +01:00
Andreas Lundblad
147820083e
8006730: remove workaround tests when jtreg updated
...
Removed temporary workaround test-files.
Reviewed-by: jjg
2014-01-09 15:00:33 +01:00
Joe Darcy
3815f04fbc
8000962: Update JDK_MINOR_VERSION for JDK 9
...
Reviewed-by: jjg, ksrini
2014-01-07 15:00:23 -08:00
Joe Darcy
dd72fa55fc
8031360: Update langtools code base to use RELEASE_9
...
Reviewed-by: jjg
2014-01-07 13:47:49 -08:00
Joe Darcy
6fc7157058
8028543: Add SourceVersion.RELEASE_9
...
Reviewed-by: jjg
2014-01-07 11:43:56 -08:00
Steve Sides
4cbb43a7e3
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
Robert Field
8d4ba575b6
8030626: java.lang.VerifyError: Bad return type when lambda's body is in parentheses
...
Properly type convert the body of a lambda expression (forward port to JDK9 of 8029558)
Reviewed-by: vromero
2013-12-22 21:57:01 -08:00
Vicente Romero
b0f5f93cd0
8029240: Default methods not always visible under -source 7
...
Reviewed-by: jjg
2013-12-19 22:24:27 +00:00
Vicente Romero
a4bac02fa4
8030218: javac, compile time error isn't shown when final static field is not assigned, follow-up
...
Reviewed-by: jjg, jfranck, sundar
2013-12-19 21:58:50 +00:00
Paul Govereau
4d793c02be
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
Bhavesh Patel
8ee3492363
8016549: jdk7 javadocs are hard to read
...
Reviewed-by: jjg
2013-12-18 19:48:47 -08:00
Vicente Romero
6255412f38
8029721: javac crash for annotated parameter type of lambda in a field
...
Reviewed-by: rfield, jfranck
2013-12-18 19:22:58 +00:00
Vicente Romero
7f46fe764f
8029569: internal javac cast exception when resolving varargs ambiguity
...
Reviewed-by: jjg
2013-12-18 19:15:58 +00:00
Kumar Srinivasan
d56f2315c5
8029504: Regression: TestDocRootLink test fails on Windows
...
Reviewed-by: bpatel, jjg
2013-12-06 09:07:47 -08:00
Eric McCorkle
bedae747dc
8030687: Add .out files to fix failing tests
...
Forgot to hg add golden files in a previous fix
Reviewed-by: jjg
2013-12-17 19:27:49 -05:00
Paul Govereau
a183356fde
8030642: Add golden files to javac/limits
...
Add golden files to check output of negative compilation tests in javac/limits
Reviewed-by: jjg, emc
2013-12-17 18:15:48 -05:00
Jan Lahoda
0f0e04b6a0
8028235: Better error recovery for parsing 'void' as a type of the lambda parameter
...
Handle "void" as a primitive type in JavacParser.analyzeParens.
Reviewed-by: vromero
2013-12-17 10:58:26 +01:00
Jan Lahoda
92c25244aa
8028415: TreeMaker.Literal(Object) creates invalid JCLiterals when passed a Character
...
JCLiteral for char must contain an Integer, not the provided Character.
Reviewed-by: jjg
2013-12-17 10:58:21 +01:00
Jan Lahoda
8ebb81fb7a
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
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
Vicente Romero
ffb2f48033
8030214: fix for JDK-8020216 breaks the build
...
Reviewed-by: jjg
2013-12-16 17:33:18 +00:00
Andrey Nazarov
213b16163b
8028708: TEST_BUG, Tests should pass through VM options, langtools tests
...
Reviewed-by: jjg, vromero
2013-12-16 15:07:13 +00:00
Vicente Romero
4d99383951
8020216: javac, compile time error isn't shown when final static field is not assigned
...
Reviewed-by: jjg
2013-12-16 14:32:12 +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
Bhavesh Patel
81ef12b24a
8025416: doclet not substituting {@docRoot} in some cases
...
Reviewed-by: jjg
2013-12-03 14:21:45 -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
Bhavesh Patel
274905a316
8027977: javadoc dies on NumberFormat/DateFormat subclass
...
Reviewed-by: jjg
2013-11-20 10:53: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
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
Bhavesh Patel
80787f47a9
8026770: javadoc creates invalid HTML in profile summary pages
...
Reviewed-by: jjg
2013-10-23 13:54:13 -07: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