Commit Graph

3141 Commits

Author SHA1 Message Date
Iris Clark
b75884a7f7 Merge 2015-08-10 19:59:16 -07:00
Vicente Romero
8a2078e8a3 8053906: javac is accepting a self-referencing variable initializer inside a lambda expression
Reviewed-by: jlahoda
2015-08-10 18:10:18 -07:00
Jonathan Gibbons
966fc670ee 8133223: Clean up package handling code in JavadocTool
Reviewed-by: ksrini
2015-08-10 12:27:29 -07:00
Lana Steuck
d973eaaf89 Merge 2015-08-06 11:18:34 -07:00
David Katleman
f4914e4577 Added tag jdk9-b76 for changeset 72b69ab429c9 2015-08-06 08:07:41 -07:00
Andreas Lundblad
cee2b1f54d 8130887: com/sun/tools/sjavac/pubapi/PubApiTypeParam.java has no copyright header
Added copyright header to PubApiTypeParam.java

Reviewed-by: jlahoda
2015-08-06 12:19:25 +02:00
Iris Clark
736be40fcc Merge 2015-08-03 09:26:27 -07:00
Jan Lahoda
16d8f98d09 8131915: CompletionFailure during import listing crashes javac
Handling CompletionFailures during import listing properly.

Reviewed-by: mcimadamore
2015-08-03 13:28:39 +02:00
Ivan Gerasimov
f04bff42c7 8062647: Wrong indentation of arguments of annotated methods
Reviewed-by: jjg, bpatel
2015-07-31 01:36:56 +03:00
Lana Steuck
3e9194a696 Merge 2015-07-30 15:22:56 -07:00
David Katleman
82f65de0dd Added tag jdk9-b75 for changeset 0513f1bb463b 2015-07-30 11:15:41 -07:00
Maurizio Cimadamore
7baee75969 8131742: Syntactically meaningless code accepted by javac
Receiver parameter logic for type annotations should be disabled when parsing lambda formals

Reviewed-by: jlahoda
2015-07-30 13:24:35 +01:00
Maurizio Cimadamore
787325090c 8129214: Access error when unboxing a primitive whose target is a type-variable in a different package
Missing erasure when unboxing type in Lower

Reviewed-by: jlahoda
2015-07-30 13:21:01 +01:00
Maurizio Cimadamore
34ea5286e4 8081769: Redundant error message on bad usage of 'class' literal
Javac should skip to next token when an erroneous ident is found in term3rest

Reviewed-by: jlahoda
2015-07-30 13:20:01 +01:00
Jan Lahoda
8d3026508a 8130826: test writes file in test source directory
Setting an explicit output directory for ToolBox.JavacTask in PlatformProviderTest.

Reviewed-by: jjg
2015-07-28 17:01:45 +02:00
Vicente Romero
c84e2e30f2 8132215: class InferenceContext should live in a separate file
Reviewed-by: mcimadamore, jlahoda
2015-07-24 15:36:45 -07:00
Jan Lahoda
c7fd81acde 8086737: Add support for -release to Javadoc
Reviewed-by: jjg, ksrini
2015-07-24 13:08:36 +02:00
Lana Steuck
47e7cf614b Merge 2015-07-23 15:27:45 -07:00
Iris Clark
c3545012dc Merge 2015-07-23 13:20:35 -07:00
David Katleman
85e90ced97 Added tag jdk9-b74 for changeset ca2d747bbf94 2015-07-23 11:54:33 -07:00
Iris Clark
45320f3096 Merge 2015-07-20 11:02:12 -07:00
Maurizio Cimadamore
4ae1cb2cd6 8130304: Inference: NodeNotFoundException thrown with deep generic method call chain
Bug in Tarjan implementation is generating node ids which can overflow 32 bits

Reviewed-by: vromero
2015-07-17 12:46:07 +01:00
Lana Steuck
5bd2057d23 Merge 2015-07-16 19:31:01 -07:00
David Katleman
7fcf67c83f Added tag jdk9-b73 for changeset 53fd6459d92c 2015-07-16 13:51:57 -07:00
Alejandro Murillo
0be524debf Merge 2015-07-14 16:29:08 -07:00
Iris Clark
11a87851d7 Merge 2015-07-13 13:24:07 -07:00
Jan Lahoda
85193a1a26 8129909: Add -Xdoclint/package: to javadoc
Adding -Xdoclint/package: command line option, similar to the javac -Xdoclint/package: option, to javadoc.

Reviewed-by: darcy, jjg, ksrini
2015-07-13 16:33:42 +02:00
Alexander Stepanov
629ace2fd4 8080880: some docs cleanup for langtools
Minor cleanup for docs

Reviewed-by: jjg
2015-07-13 16:57:52 +04:00
Andrei Eremeev
a7cf8786ff 8044411: Implement classfile tests for RuntimeAnnotations and RuntimeParameterAnnotations attribute
Reviewed-by: jjg, shurailine, anazarov
2015-07-10 12:42:00 +03:00
Alejandro Murillo
a761654ef9 Merge 2015-07-09 22:46:18 -07:00
Lana Steuck
fbb54463fe Merge 2015-07-09 16:38:16 -07:00
David Katleman
3e638cf75c Added tag jdk9-b72 for changeset 1f783cf1d945 2015-07-09 13:49:40 -07:00
Liam Miller-Cushon
7d78c183c4 8130803: add regression test related to fix for JDK-8078024
Reviewed-by: mcimadamore
2015-07-09 11:06:48 -07:00
Srikanth Adayapalam
7b64cba44c 8130745: Revert fix pushed for JDK-8074346
Reviewed-by: jlahoda
2015-07-08 19:01:57 +05:30
Iris Clark
483fd8263a Merge 2015-07-06 11:49:24 -07:00
Daniel D. Daugherty
92febebcac Merge 2015-07-03 06:39:38 -07:00
Lana Steuck
9050391db9 Merge 2015-07-02 16:08:17 -07:00
Daniel D. Daugherty
99552a1c2f Merge 2015-07-02 14:42:12 -07:00
David Katleman
d59b5753a4 Added tag jdk9-b71 for changeset cf6355e77564 2015-07-02 08:54:04 -07:00
Jan Lahoda
3210b9650a 8072480: javac should support compilation for a specific platform version
Adding a new javac option for compiling for JDK N: -release N; including history data for previous version of JDK.

Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Reviewed-by: erikj, ihse, jjg, mcimadamore, mr
2015-07-01 09:51:48 +02:00
Jan Lahoda
19a0c8b1f5 8080675: Enhance the classfile library to support construction of classfiles from scratch
Reviewed-by: jjg
2015-07-01 09:51:47 +02:00
Iris Clark
60999b7f18 Merge 2015-06-29 11:28:16 -07:00
Lana Steuck
d12f9899d5 Merge 2015-06-28 16:39:45 -07:00
Srikanth Adayapalam
2943d4bd40 4869999: Error on import statement naming package containing no class files
Ensure that the compiler does not prematurely decide a package is not observable.

Reviewed-by: jlahoda
2015-06-28 12:58:24 +05:30
David Katleman
26769ba779 Added tag jdk9-b70 for changeset 2707be8c1d10 2015-06-25 10:21:41 -07:00
Jean-Francois Denise
1961bb0566 8080511: Refresh of jimage support
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: alanb, mchung, psandoz, acorn, lfoltan, ctornqvi
2015-06-25 18:00:52 +02:00
Joe Darcy
ffe4c77137 8129597: Add tier 3 test definitions to the JDK 9 forest
Reviewed-by: smarks, jjg
2015-06-24 15:15:56 -07:00
Bhavesh Patel
9075df539a 8081854: Javadoc should generate named anchors for HTML4 output
Reviewed-by: ksrini
2015-06-23 15:41:05 -07:00
Srikanth Adayapalam
63b337e82e 8076538: Verify error at runtime due to incorrect classification of a lambda as being instance capturing
Reviewed-by: mcimadamore
2015-06-23 17:46:23 +05:30
Kumar Srinivasan
bbea2ef8bf 8087205: Follow-up fix in langtools for JDK-8085822
Reviewed-by: darcy
2015-06-22 11:21:59 -07:00
Lana Steuck
80a2c0a005 Merge 2015-06-18 10:24:20 -07:00
Lana Steuck
9cb5471823 Added tag jdk9-b69 for changeset adbe1040a135 2015-06-18 01:43:17 -07:00
Sonali Goel
08aea23120 8080826: Group 15: golden files for tests in tools/javac/generics/type* dirs
Reviewed-by: jjg
2015-06-17 13:20:33 -07:00
Srikanth Adayapalam
23e3cf3d7f 8074346: Type annotation on a qualified type causes spurious 'cannot find symbol' errors
Issue clear diagostic when package names in a qualified type name are illegally annotated

Reviewed-by: mcimadamore, jlahoda
2015-06-16 09:39:59 +05:30
Lana Steuck
e012aadd0c Merge 2015-06-11 20:19:56 -07:00
Lana Steuck
c154faf881 Added tag jdk9-b68 for changeset 9bccf568791d 2015-06-11 10:44:19 -07:00
Magnus Ihse Bursie
0c7049ffb2 Merge 2015-06-11 00:50:51 +02:00
Magnus Ihse Bursie
ebd376a99e 8085822: JEP 223: New Version-String Scheme (initial integration)
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Reviewed-by: erikj, dcubed, dholmes, alanb
2015-06-11 00:23:18 +02:00
Andreas Lundblad
d19a3d76d3 8087115: Due to a javac type inference issue, sjavac doesn't compile with 8u31
Added explicit type arguments.

Reviewed-by: jlahoda
2015-06-10 11:18:10 +02:00
Andreas Lundblad
3a31593507 8054717: SJavac should track changes in the public apis of classpath classes!
Added functionality for tracking changes in public APIs of classpath classes.

Reviewed-by: jlahoda, erikj
2015-06-09 15:57:45 +02:00
Jan Lahoda
66dcce4334 8082311: NPE when compiling expression with \"^\"
Using BinaryNumericOperator for numeric bitwise operators and BinaryBooleanOperator for boolean bitwise operators, as the common BinaryBitwiseOperator allowed to incorrectly combine numeric and boolean operands

Reviewed-by: mcimadamore
2015-06-09 11:52:13 +02:00
Srikanth Adayapalam
7dd4ada04b 8081521: Compiler has trouble compiling nested diamond allocation constructs involving anonymous classes
Reviewed-by: mcimadamore
2015-06-05 18:43:11 +05:30
Lana Steuck
e1bbadb9d0 Merge 2015-06-04 18:50:30 -07:00
David Katleman
2c453beab1 Added tag jdk9-b67 for changeset c275389a3680 2015-06-04 09:31:52 -07:00
Maurizio Cimadamore
31e48bc561 8039262: Java compiler performance degradation jdk1.7 vs. jdk1.6 should be amended
Avoiding Scope listener leak by avoiding cache misses in Types.MembersClosureCache

Reviewed-by: mcimadamore, vromero
2015-06-04 09:05:52 +02:00
Joe Darcy
98062e8bd1 8075546: Add tiered testing definitions to the langtools repo
Reviewed-by: jjg
2015-06-01 15:19:54 -07:00
Srikanth Adayapalam
1a5f839adc 8077667: 'variable may not have been initialized' error for parameter in lambda function
JDK-8077667: Fix bogus diagnostic about lambda parameter not being initialized

Reviewed-by: mcimadamore
2015-05-30 06:17:50 +05:30
Jonathan Gibbons
1b685e4aa7 8081538: test CheckEBCDICLocaleTest is failing
Reviewed-by: vromero
2015-05-29 17:15:10 -07:00
Jonathan Gibbons
c8f110edb6 8081541: @ignore CheckEBCDICLocaleTest
Reviewed-by: vromero
2015-05-29 15:50:31 -07:00
Vicente Romero
783a654b17 8073372: Redundant CONSTANT_Class entry not generated for inlined constant
Reviewed-by: jjg
2015-05-29 14:04:57 -07:00
Srikanth Adayapalam
f1a3698f4c 8080842: Using Lambda Expression with name clash results in ClassFormatError
Ensure ScopeImpl can cope properly with remove when a field and method share the name

Reviewed-by: mcimadamore, jlahoda
2015-05-29 10:15:36 +05:30
Srikanth Adayapalam
4815781a4a 8081271: NPE while compiling a program with erroneous use of constructor reference expressions
Missing enclosing instance error should not be swallowed when attributing constructor reference expressions.

Reviewed-by: mcimadamore, vromero
2015-05-29 09:15:42 +05:30
Lana Steuck
21cb09560f Merge 2015-05-28 16:54:56 -07:00
David Katleman
67886b6ed3 Added tag jdk9-b66 for changeset 271924202c97 2015-05-28 16:13:55 -07:00
Vicente Romero
c44a1b3184 8081417: test CheckEBCDICLocaleTest.java is failing intermittently
Reviewed-by: darcy
2015-05-28 12:08:54 -07:00
Mandy Chung
ab120497cf 8074432: Move jdeps and javap to jdk.jdeps module
Reviewed-by: jjg, alanb, erikj
2015-05-27 13:25:18 -07:00
Srikanth Adayapalam
385f5d800a 8080726: Redundant error message on private abstract interface method with body
Reviewed-by: mcimadamore
2015-05-27 11:27:42 +05:30
Mandy Chung
81ae8feaed 8074431: Remove native2ascii tool
Reviewed-by: erikj, alanb, okutsu, mfang, naoto
2015-05-22 16:44:49 -07:00
Daniel Fuchs
e39d4f074f 8080608: Missing archive name from jdeps -v -e output if no dependency on other JAR
Reviewed-by: mchung
2015-05-22 13:05:26 +02:00
Lana Steuck
9c404d1883 Merge 2015-05-21 16:19:29 -07:00
Jonathan Gibbons
c23f323e0a Merge 2015-05-21 13:48:23 -07:00
Jonathan Gibbons
9ac1ce305e 8080897: tests broken in bad merge
Reviewed-by: darcy
2015-05-21 13:47:05 -07:00
Andreas Lundblad
da2e1f9e4e 8080870: Open up Dependencies for use from other packages
Opened up Dependencies for use outside of the package.

Reviewed-by: mcimadamore
2015-05-21 21:15:28 +02:00
Alexander Kulyakhtin
b6262441ad 8076543: Add @modules as needed to the langtools tests
Reviewed-by: jjg, shurailine
2015-05-21 11:41:04 -07:00
David Katleman
bc53d77cd1 Added tag jdk9-b65 for changeset f0f03398adb4 2015-05-21 10:07:40 -07:00
Jan Lahoda
9264fe218f 8080572: langtools/test/tools/javac/generics/T5011073.java failing
Test/tools/javac/generics/InterfaceCast1.java defines a top-level Set, moving it to a separate directory to avoid clashes.

Reviewed-by: mcimadamore
2015-05-18 14:48:41 +02:00
Lana Steuck
abc09bccdb Merge 2015-05-14 20:17:02 -07:00
David Katleman
84e174a9f6 Added tag jdk9-b64 for changeset 47d774ef3c19 2015-05-14 12:38:14 -07:00
Bhavesh Patel
a33f1ed55d 8065077: MethodTypes are not localized
Reviewed-by: ksrini
2015-05-12 12:02:48 -07:00
Srikanth Adayapalam
72744bb5fa 8079613: Deeply chained expressions + several overloads + unnecessary inference result in excessive compile times
Eliminate compile time performance bottlneck due to mischaracterization of standalone expressions as being poly expressions.

Reviewed-by: mcimadamore, jlahoda
2015-05-11 13:28:14 +05:30
Jan Lahoda
1867d1a236 8080338: Incorrect GPL header causes RE script to miss swap to commercial header for licensee source bundle
8080339: Incorrect GPL header causes RE script to miss swap to commercial header for licensee source bundle
8080340: Incorrect GPL header causes RE script to miss swap to commercial header for licensee source bundle

Fixing incorrect file headers; also reviewed by kevin.l.brown@oracle.com

Reviewed-by: vromero
2015-05-18 09:27:09 +02:00
Sonali Goel
945f55124f 8075166: Group 14d: golden files for tests in tools/javac/generics/wildcards dir
Reviewed-by: jjg
2015-05-15 18:03:51 -07:00
Sonali Goel
4676493261 8080539: Remove few test files that did not get removed with the patch
Reviewed-by: jjg
2015-05-15 17:47:03 -07:00
Sonali Goel
e16a945d3c 8074514: Group 13d: golden files for tests in tools/javac/generics dir
Reviewed-by: jjg
2015-05-15 17:43:21 -07:00
Sonali Goel
8f711841fa 8075165: Group 14c: golden files for tests in tools/javac/generics/wildcards dir
Reviewed-by: jjg, vromero
2015-05-15 17:12:58 -07:00
Sonali Goel
395f1173a9 8075164: Group 14b: golden files for tests in tools/javac/generics/wildcards dir
Reviewed-by: jjg, vromero
2015-05-15 16:59:34 -07:00
Sonali Goel
f6428eb2bb 8074425: Group 13b: golden files for tests in tools/javac/generics dir
Reviewed-by: jjg, darcy, mcimadamore
2015-05-15 16:53:42 -07:00
Sonali Goel
1ebb022e1c 8075163: Group 14a: golden files for tests in tools/javac/generics/wildcards dir
Reviewed-by: jjg, vromero
2015-05-15 16:18:16 -07:00
Sonali Goel
491703889c 8074417: Group 13a: golden files for tests in tools/javac/generics dir
Reviewed-by: jjg, mcimadamore
2015-05-15 09:53:08 -07:00
Sonali Goel
11d7b1e161 8074502: Group 13c: golden files for tests in tools/javac/generics dir
Reviewed-by: jjg, mcimadamore
2015-05-15 09:30:55 -07:00
Jan Lahoda
e21c57f2ab 8076104: Key collisions in ZipFileIndexFileObject content cache lead to wrong content
Equals&hashCode of ZipFileObject and ZipFileIndexFileObject need to be based on full entry path, not only the file name.

Reviewed-by: jjg
2015-05-15 11:41:04 +02:00
Sonali Goel
d0acf99cf6 8074408: Group 12: golden files for tests in tools/javac dir
Reviewed-by: jjg
2015-05-15 01:56:14 -07:00
Sonali Goel
6b7d074037 8074387: Group 11: golden files for coin tests in tools/javac dir
Reviewed-by: jjg
2015-05-15 01:36:32 -07:00
Sonali Goel
190ba196a0 8068465: Group 10e: golden files for tests in tools/javac dir
Reviewed-by: jjg
2015-05-15 01:28:43 -07:00
Sonali Goel
64622d5d74 8068464: Group 10d: golden files for tests in tools/javac dir
Reviewed-by: jjg
2015-05-15 01:09:51 -07:00
Lana Steuck
6bccaed81e Merge 2015-05-07 20:50:49 -07:00
David Katleman
2595eb3a91 Added tag jdk9-b63 for changeset 3564e7eeaead 2015-05-07 10:19:37 -07:00
Alejandro Murillo
951a720756 Merge 2015-05-05 08:11:41 -07:00
Andreas Lundblad
560419ac2f 8079335: The field Gen.stringBufferType is no longer needed (and not always initialized properly)
Removed Gen.stringBufferType field.

Reviewed-by: jlahoda, mcimadamore
2015-05-05 15:47:38 +02:00
Alejandro Murillo
b085289954 Merge 2015-05-01 03:56:04 -07:00
Jonathan Gibbons
6bed31f1c5 8079191: remove remaining references to "cp -p" from langtools/test
Reviewed-by: vromero
2015-04-30 17:35:03 -07:00
Lana Steuck
34a831bf70 Merge 2015-04-30 17:21:28 -07:00
David Katleman
2c9b2f1c5a Added tag jdk9-b62 for changeset e36081ad2470 2015-04-30 13:02:09 -07:00
Andreas Lundblad
bd17f06ead 8044196: Incorrect applying of repeatable annotations with incompatible target to type parameter
Additional applicability checks added.

Reviewed-by: jlahoda
2015-04-30 12:21:50 +02:00
Jonathan Gibbons
8c93ae0560 8078054: [TESTBUG] tools/javac/Paths/wcMineField.sh failed with "operation not permitted"
Reviewed-by: darcy
2015-04-29 15:05:33 -07:00
Jonathan Gibbons
74169dee6e 8078861: tools/javac/classfiles/attributes/Synthetic/PackageInfoTest.java fails on Windows
Reviewed-by: vromero
2015-04-28 18:57:51 -07:00
Andreas Lundblad
4c307784ae 8078600: Infinite loop when compiling annotations with -XDcompletionDeps
Added Completer::isTerminal and added NULL_COMPLETER.

Reviewed-by: jlahoda, mcimadamore
2015-04-28 22:25:36 +02:00
Srikanth Adayapalam
0b27399a55 8076279: Refactor Attr.check* methods to receive/handle a CheckMode enumeration
Internal cleanup to Attr.check to make use of a new abstraction CheckMode

Reviewed-by: mcimadamore
2015-04-28 15:20:25 +05:30
Andrei Eremeev
153dc079bb 8044537: Implement classfile tests for Synthetic attribute
Reviewed-by: jjg, shurailine, anazarov
2015-04-28 11:08:25 +03:00
Jan Lahoda
b97b136530 8077605: Initializing static fields causes unbounded recursion in javac
Improving detection of potential constant variable initializers; preventing infinite recursion on exception during Attr.visitLambda.

Reviewed-by: mcimadamore, vromero
2015-04-27 16:31:29 +02:00
Srikanth Adayapalam
e57ef90dd9 8078473: javac diamond finder crashes when used to build java.base module
Reviewed-by: mcimadamore
2015-04-27 17:36:20 +05:30
Srikanth Adayapalam
f2ee4e4240 8078592: Compiler fails to reject erroneous use of diamond with anonymous classes involving "fresh" type variables
Reviewed-by: mcimadamore
2015-04-25 15:59:54 +05:30
Joe Darcy
2be6b496fa 8078560: The crash reporting URL listed by javac needs to be updated
Reviewed-by: mcimadamore
2015-04-23 18:21:26 -07:00
Lana Steuck
bee048a2b7 Merge 2015-04-23 16:10:59 -07:00
David Katleman
a833fc7f0b Added tag jdk9-b61 for changeset a136157ff9ef 2015-04-23 10:43:38 -07:00
Vicente Romero
4693c79e67 8078433: javac, some tests are failing after JDK-8078024 because of golden files mismatch
Reviewed-by: darcy
2015-04-22 11:39:06 -07:00
Vicente Romero
8c8261cbad 8078024: javac, several incorporation steps are silently failing when an error should be reported
Reviewed-by: mcimadamore
2015-04-22 09:44:15 -07:00
Andreas Lundblad
b3ddbe8cf4 8078389: Add test for -Xdoclint + -XDcompletionDeps
Test to make sure doclint and completionDeps do not interfere.

Reviewed-by: jlahoda
2015-04-22 16:11:38 +02:00
Andreas Lundblad
d85dda0002 8078261: Initialization of DocLint triggers out of order initialization of Dependencies
Changed initialization order.

Reviewed-by: mcimadamore
2015-04-22 13:50:23 +02:00
Andreas Lundblad
fc379b3042 8068737: ArrayType prints element type post order
Rewrote ArrayType.toString

Reviewed-by: jlahoda, ksrini
2015-04-21 12:10:26 +02:00
Andrei Eremeev
56c8f87b08 8042947: Implement classfile tests for AnnotationDefault attribute
Reviewed-by: jjg, shurailine, anazarov
2015-04-20 12:45:41 +03:00
Lana Steuck
82bf32aa0f Merge 2015-04-17 10:23:49 -07:00
David Katleman
5f253a4f9f Added tag jdk9-b60 for changeset f7bd3ddc9292 2015-04-17 09:59:49 -07:00
Andreas Lundblad
868bdb35b2 8043984: Confusing (incorrect) error message on repeatable annotations
Adjusted error mesage for repeating annotations

Reviewed-by: jfranck, dlsmith
2015-04-17 12:37:11 +02:00
Andreas Lundblad
e17a42c26a 8073534: Confusing / incorrect error message regarding annotations on non-declarations
Adjusted error message for annotations on non-declarations.

Reviewed-by: jlahoda, dlsmith
2015-04-17 11:52:10 +02:00
Shanliang Jiang
df473509f8 8042901: Allow com.sun.management to be in a different module to java.lang.management
Reviewed-by: mchung, dfuchs, erikj, jbachorik
2015-04-17 09:42:41 +02:00
Dan Smith
336a125aa0 8075520: Varargs access check mishandles capture variables
8077786: Check varargs access against inferred signature

Reviewed-by: vromero
2015-04-16 17:20:20 -06:00
Bhavesh Patel
9c427df72e 8072945: Javadoc should generate valid and compliant HTML5 output
Reviewed-by: jjg, ksrini
2015-04-13 18:05:23 -07:00
Lana Steuck
eacd31a878 Merge 2015-04-09 17:37:46 -07:00
David Katleman
7402bb3bf9 Added tag jdk9-b59 for changeset db33e568f107 2015-04-09 06:40:21 -07:00
Lana Steuck
be57816f26 Merge 2015-04-08 14:32:21 -07:00
David Katleman
2dd0fdb754 Added tag jdk9-b58 for changeset 818af936c30a 2015-04-08 13:12:52 -07:00
Joel Borggren-Franck
7d3885b239 8031744: Annotations on many Language Model elements are not returned
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: jfranck, mcimadamore, emc, jlahoda, jjg
2015-04-07 11:04:29 -07:00
Lana Steuck
90173f9875 Merge 2015-04-03 16:35:58 -07:00
Jonathan Gibbons
4b07750bb1 8076583: move jdk.Exported from langtools to jdk
Reviewed-by: darcy, alanb, tbell, mchung, jlahoda
2015-04-03 15:23:02 -07:00
Jonathan Gibbons
465e4dca9a 8076420: Consolidate javac file handling in javac.file package
Reviewed-by: jlahoda
2015-04-02 15:56:07 -07:00
David Katleman
d3b0080d69 Added tag jdk9-b57 for changeset 155062c00bfa 2015-04-02 10:02:49 -07:00
Lana Steuck
a4d244c874 Merge 2015-04-01 12:30:13 -07:00
Andrey Nazarov
15d5184652 8075752: jdk.compiler dependency can be eliminated in MethodReferenceNullCheckTest.java
Reviewed-by: jjg
2015-03-30 16:38:59 +01:00
David Katleman
b2c4d81ad5 Added tag jdk9-b56 for changeset 17efac395638 2015-03-26 13:09:10 -07:00
Andrey Nazarov
9c48863bb1 8075610: java.desktop module dependency can be eliminated in tools/javac/generics/inference/5073060/GenericsAndPackages.java
Reviewed-by: jjg
2015-03-26 17:39:04 +01:00
Andrei Eremeev
22d4785f1d 8049238: Implement classfile tests for Signature attribute
Reviewed-by: jjg, shurailine, anazarov
2015-03-25 10:29:14 +03:00
Srikanth Adayapalam
68593842f8 7040592: Gen.java: fix code for handling 'null' literal when expected type is array
Eliminate needless checkcast when null is assigned to a multi-dimensional array typedobject

Reviewed-by: mcimadamore
2015-03-23 09:48:37 +05:30
Srikanth Adayapalam
8afd89977c 8062373: Project Coin: diamond and anonymous classes
Allow diamond inference in combination with anonymous class instance creation

Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore, vromero
2015-03-30 17:09:14 +05:30
Bhavesh Patel
8b611ba470 8076026: DocTree should parse hyphenated attributes correctly
Reviewed-by: jjg, ksrini
2015-03-28 10:18:27 -07:00
Vicente Romero
38527cecd5 8075184: javac is mistakenly considering an missing enclosing instance error as an overload error
Reviewed-by: mcimadamore
2015-03-27 10:11:21 -07:00
Magnus Ihse Bursie
ffae4d6955 8076060: Improve make bootstrap process
Reviewed-by: erikj
2015-03-26 16:17:36 +01:00
Jan Lahoda
31a45d5c86 8054220: Debugger doesn't show variables *outside* lambda
8058227: Debugger has no access to outer variables inside Lambda

Put local variables captured by lambda into the lambda method's LocalVariableTable.

Reviewed-by: mcimadamore, rfield
2015-03-26 11:34:50 +01:00
Lana Steuck
ff8f51808e Merge 2015-03-19 16:13:40 -07:00
David Katleman
1df4a8aa4c Added tag jdk9-b55 for changeset 94880c5f1226 2015-03-19 12:59:26 -07:00
Maurizio Cimadamore
c399e03fe2 8075509: List.map should return itself if list is unchanged
Fix List.map to match semantics of old Type.map

Reviewed-by: jlahoda
2015-03-19 16:23:21 +00:00
Maurizio Cimadamore
24c51e1e1b 8048838: type inference performance regression
Reduce redundant bounds before attempting to do pairwise lub computation during bound incorporation.

Reviewed-by: vromero
2015-03-19 11:40:47 +00:00
Maurizio Cimadamore
582a4ebd92 8074100: Turn Type.Mapping into a true visitor
Replace Type.Mapping with a true visitor in Types

Reviewed-by: jlahoda, vromero
2015-03-19 11:40:07 +00:00
Maurizio Cimadamore
c03dd06d9a 8074381: java.lang.AssertionError during compiling
Add extra functional interface check to prevent crash during code generation

Reviewed-by: vromero
2015-03-19 11:39:36 +00:00
Srikanth Adayapalam
f1f1f0f7e1 8074148: Attr.visitBinary flags error at wrong position
Reviewed-by: vromero
2015-03-13 10:25:46 +05:30
Srikanth Adayapalam
c4ebb7f3c0 8071847: java.lang.NullPointerException at com.sun.tools.javac.code.Types.elemtype(Types.java:1870)
Class file reader should recover from malformed class files that contain methods incorrectly flagged as variable arity methods.

Reviewed-by: jlahoda
2015-03-13 13:15:24 +05:30
Lana Steuck
0b72ef6fe9 Merge 2015-03-12 21:13:42 -07:00
David Katleman
0d3f0c8441 Added tag jdk9-b54 for changeset a7151c380dac 2015-03-12 13:35:17 -07:00
Srikanth Adayapalam
60841ee270 8050021: Improper "duplicate case label" error
Reviewed-by: jlahoda
2015-03-12 10:24:07 +05:30
Bhavesh Patel
6b21a5a5ff 8074521: Generate iframe instead of frame and frameset for index.html page
Reviewed-by: jjg, ksrini
2015-03-11 23:53:38 -07:00
Bhavesh Patel
7b6148280a 8072461: Table's field width in "Use" page generated by javadoc with '-s' is unbalanced
Reviewed-by: jjg
2015-03-11 21:57:59 -07:00
Jan Lahoda
fad1792bc4 8071851: Provide filtering of doclint checking based on packages
Introducing -Xdoclint/package:<packages> doclint option to enable/disable checking of specified packages.

Reviewed-by: jjg, darcy
2015-03-11 22:24:05 +01:00
Andreas Lundblad
7cd4395fe2 8071966: Bootcycle images build fails on Windows32/64
Added drive letter normalization in option decoding.

Reviewed-by: jlahoda
2015-03-11 12:25:37 +01:00
Maurizio Cimadamore
a981871194 8074306: NULLCHK is emitted as Object.getClass
8074501: Javac fix for 8073432 is missing right test BugIDs

Correct test bugIds

Reviewed-by: jjg
2015-03-06 10:30:44 +00:00
Lana Steuck
e9a801f0ef Merge 2015-03-05 15:24:15 -08:00
David Katleman
afc563fcc9 Added tag jdk9-b53 for changeset 569659e4dc38 2015-03-05 11:26:21 -08:00
Aleksey Shipilev
89cc77c8cb 8073432: Object.getClass() throws stackless NPE, due to C2 intrinsic
Javac should generate NPE checks using Objects.requireNonNull if -target >= 7

Reviewed-by: jlahoda
2015-03-05 15:03:07 +00:00
Maurizio Cimadamore
1114c26925 8073645: Add lambda-based lazy eval versions of Assert.check methods
Enhance Assert so that lazy string computation can occurr where needed; enhance static roding rule checkers to make sure the right version of the method is called.

Reviewed-by: jlahoda
2015-03-05 13:10:49 +00:00
Srikanth Adayapalam
105275fb87 8071453: Allow interface methods to be private
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Reviewed-by: mcimadamore
2015-03-02 10:41:08 +05:30
Maurizio Cimadamore
7b2bf7805a 8073842: Invalid method reference when referencing a method on a wildcard type
Method rteference lookup logic doesn't skip type-variables as required by javac.

Reviewed-by: jlahoda
2015-02-27 18:20:33 +00:00
Aleksey Shipilev
ee906c96d7 8073550: java* tools: replace obj.getClass hacks with Assert.checkNonNull or Objects.requireNonNull
Replace getClass() with approapriate NPE checks

Reviewed-by: jjg
2015-02-27 11:51:53 +00:00
Lana Steuck
8d0e82310d Merge 2015-02-26 20:17:06 -08:00
David Katleman
976db392e3 Added tag jdk9-b52 for changeset ff6339407acb 2015-02-26 15:58:16 -08:00
Gilles Duboscq
42c543abd9 8041628: Javadoc cross-compilation problem
Reviewed-by: jjg
2015-02-25 14:35:39 -08:00
Jan Lahoda
681758e0fa 8067886: Inaccessible nested classes can be incorrectly imported
Check type accessibility at the point of import when importing the type using type-import-on-demand.

Reviewed-by: mcimadamore, jfranck
2015-02-24 16:11:59 +01:00
Jason Uh
91722e7903 8072663: Remove the sun.security.acl package which is not used in the JDK
Reviewed-by: mullan, alanb, mchung
2015-02-23 11:42:16 -08:00
Maurizio Cimadamore
110a99f0dd 8071291: Compiler crashes trying to cast UnionType to IntersectionClassType
Compiler tests for .isCompound but then cast to a more specific Type subclass, resulting in CCE

Reviewed-by: vromero, jlahoda
2015-02-23 13:02:37 +00:00
Dan Smith
13490088bf 8039214: Inference should not map capture variables to their upper bounds
Update to Types.containsType; related adjustment to most-specific test

Reviewed-by: mcimadamore, vromero
2015-02-20 17:05:13 -07:00
Lana Steuck
35130d616e Merge 2015-02-19 16:38:54 -08:00
David Katleman
82735606dd Added tag jdk9-b51 for changeset bf992bd35aad 2015-02-19 11:24:07 -08:00
Vicente Romero
7bf016c7b1 8068489: remove unnecessary complexity in Flow and Bits, after JDK-8064857
Reviewed-by: mcimadamore, jjg
2015-02-18 17:07:06 -08:00
Jan Lahoda
0a57971dd9 8067445: New modular image-based file manager skips boot classes
Taking "sun.boot.class.path" system property into account when constructing bootclasspath for modular images.

Reviewed-by: jjg, mcimadamore
2015-02-17 15:39:05 +01:00
Srikanth Adayapalam
31b752c691 8073201: Incorrect @bug annotation in checkin for JDK-8069545
Reviewed-by: mcimadamore
2015-02-16 19:14:18 +05:30
Maurizio Cimadamore
b91b333053 8071241: Investigate alternate strategy for type-checking operators
Separat operator lookup logic from overload resolution.

Reviewed-by: jjg, jlahoda, sadayapalam
2015-02-16 12:24:25 +00:00
Eric McCorkle
b014a7728f 8066725: javac produces classfiles it cannot read
Revert behavioral changes from 8029012 and 8065132

Reviewed-by: jfranck
2015-02-13 17:00:45 -05:00
Lana Steuck
86ab634dc1 Merge 2015-02-12 16:38:39 -08:00
David Katleman
e8917c4867 Added tag jdk9-b50 for changeset 1ba2a6b0fd9f 2015-02-12 16:23:29 -08:00
Kumar Srinivasan
0bbdf59743 8071836: javadoc fails as javadoc resource bundle not visible to com.sun.tools.javac.util.JavacMessages
Reviewed-by: jjg, mchung
2015-02-12 15:00:37 -08:00
Srikanth Adayapalam
cb2a21c5a5 8069545: javac shouldn't check nested stuck lambdas during overload resolution
Nested lambdas should not be considered while overload resolution is in progress

Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: mcimadamore
2015-02-12 10:16:19 +05:30
Lana Steuck
3a5a821349 Merge 2015-02-05 15:44:57 -08:00