Commit Graph

3284 Commits

Author SHA1 Message Date
Iris Clark
f0eef2073e Merge 2015-11-09 10:57:05 -08:00
Maurizio Cimadamore
bf9db9ef6a 8141639: Signatures in Lower could be made tighter by using JCExpression instead of JCTree
Make signatures of Lower methods more specific

Reviewed-by: jlahoda
2015-11-09 16:03:30 +00:00
Srikanth Adayapalam
4d94dba613 8129740: Incorrect class file created when passing lambda in inner class constructor
Lambda implementation method must be static when lambda is an argument to an explicit constructor call.

Reviewed-by: mcimadamore, jlahoda
2015-11-09 05:45:22 +05:30
Srikanth Adayapalam
48e3b3f0df 8138612: Do not retain declaration annotations on lambda formal parameters
Reviewed-by: jlahoda
2015-11-06 14:45:44 +05:30
Lana Steuck
f9a1a366d7 Merge 2015-11-05 13:42:20 -08:00
Chris Plummer
206be75e45 8141489: [TESTBUG] requiredVersion in TEST.ROOT needs to updated to 4.1 b12
Updated requiredVersion to 4.1 b12

Reviewed-by: dholmes, sla, darcy
2015-11-05 10:30:22 -08:00
Lana Steuck
9cd60efd21 Added tag jdk9-b91 for changeset 58661e1ec098 2015-11-05 08:15:46 -08:00
Maurizio Cimadamore
a65f240258 8141343: Subtle semantics changes for union types in cast conversion
Cast applied to union types do not behave correctly and sometimes pass erroneously

Reviewed-by: jlahoda
2015-11-05 11:32:01 +00:00
Lana Steuck
481031043a Merge 2015-11-04 13:46:28 -08:00
Andreas Lundblad
d2d6dd48d4 8139961: Various sjavac tests result in error on Windows (JPRT)
Test now closes Stream properly.

Reviewed-by: jlahoda
2015-11-04 12:27:00 +01:00
Andreas Lundblad
922ac5ff90 8141355: PackagePathMismatch.java does not use --state-dir option
Added --state-dir to the PackagePathMismatch.java test.

Reviewed-by: jlahoda
2015-11-03 22:55:30 +01:00
Andreas Lundblad
7cf539d35e 8137075: Sjavac tests are leaking file managers
Closing sjavac file managers.

Reviewed-by: jjg
2015-11-03 21:29:46 +01:00
Magnus Ihse Bursie
7e33756aa5 8141333: Rename SetupArchive to SetupJarArchive
Reviewed-by: erikj, tbell
2015-11-03 17:54:36 +01:00
Iris Clark
616e4c704e Merge 2015-11-01 09:49:09 -08:00
Lana Steuck
9e8fe215ca Added tag jdk9-b90 for changeset 2fa6e5e17bcf 2015-10-30 10:29:03 -07:00
Jan Lahoda
2b9c0b888d 8140766: langtools/make/test/sym/CreateSymbolsTest.java contains incorrect paths
Fixing paths in CreateSymbolsTest; fixing imports in CreateSymbolsTestImpl.

Reviewed-by: mcimadamore
2015-10-30 17:00:33 +01:00
Lana Steuck
8fbf915970 Merge 2015-10-29 12:40:37 -07:00
Lana Steuck
9ec3dedff4 Added tag jdk9-b89 for changeset b6f6281b4c07 2015-10-29 08:42:34 -07:00
Kumar Srinivasan
2711685247 8132096: Augment the Compiler Tree API to support the new Simplified Doclet API
Reviewed-by: jjg, jlahoda
2015-10-28 10:41:30 -07:00
Andreas Eriksson
27b171c977 8134759: jdb: Incorrect stepping inside finally block
Add LineNumberTable attribute for return bytecodes split around finally code

Reviewed-by: mcimadamore
2015-10-27 10:35:14 +01:00
Iris Clark
641e7a407a Merge 2015-10-25 19:16:46 -07:00
Srikanth Adayapalam
2d8d2e83ba 8057685: javac should not crash compiling type annotations
Reviewed-by: jlahoda
2015-10-23 08:21:41 +05:30
Lana Steuck
ccdbe5b3a1 Merge 2015-10-22 11:12:55 -07:00
Maurizio Cimadamore
8ba15f464a 8140333: Tweak langtools IntelliJ project to better support Kulla changes
Add support for target.java.home option to the idea target

Reviewed-by: jlahoda
2015-10-22 18:58:00 +01:00
Lana Steuck
4caefa6497 Added tag jdk9-b88 for changeset a754462959d5 2015-10-22 08:47:52 -07:00
Srikanth Adayapalam
b84f19e870 8074803: Name clash
Javac incorrectly reports a name clash.

Reviewed-by: mcimadamore
2015-10-22 16:18:28 +05:30
Andreas Lundblad
200d75bd08 8087349: Test tools/sjavac/IncCompInheritance.java is failing
Refactoring of Dependencies framework.

Reviewed-by: mcimadamore
2015-10-22 09:05:54 +02:00
Lana Steuck
574f2d4b2d Merge 2015-10-21 18:40:01 -07:00
Lana Steuck
318515fb59 Merge 2015-10-21 15:15:36 -07:00
Srikanth Adayapalam
32cea7c65b 8138729: javac -parameters should not emit parameter names for lambda expressions
Reviewed-by: mcimadamore
2015-10-21 17:52:43 +05:30
Srikanth Adayapalam
08b811e8d6 8139836: Can't use super::x method reference when x is protected
Javac incorrectly diasllows reference to a protected method from a super class in method reference expressions.

Reviewed-by: mcimadamore
2015-10-20 15:25:41 +05:30
Jan Lahoda
a21102b5f4 8134254: JShell API/tool: REPL for Java into JDK9
Adding the implementation of the jshell (read-eval-print-loop) tool.

Co-authored-by: Robert Field <robert.field@oracle.com>
Co-authored-by: Shinya Yoshida <bitterfoxc@gmail.com>
Reviewed-by: briangoetz, mcimadamore, psandoz, forax
2015-10-19 19:15:16 +02:00
Jan Lahoda
9cd68d0633 8139751: Javac crash with -XDallowStringFolding=false
When string folding is disabled, need to keep the original expression.

Reviewed-by: mcimadamore
2015-10-19 12:41:45 +02:00
Lana Steuck
0d27dc89af Added tag jdk9-b87 for changeset 610c74da519c 2015-10-19 00:25:14 -07:00
Lana Steuck
c69e8167ed Merge 2015-10-15 16:50:02 -07:00
Lana Steuck
934e861da3 Added tag jdk9-b86 for changeset 9a64fdcb72be 2015-10-15 15:15:28 -07:00
Chris Hegarty
8a27a7469b 8139371: Three langtools test failures after the removal of sun.misc.Lock
Reviewed-by: jjg, mchung
2015-10-13 09:02:30 +01:00
Dmitry Chuyko
cb20fc2079 8000316: Huge performance bottleneck in com.sun.tools.javac.comp.Check.localClassName
Speed up Check.localClassName by avoiding generating names known to be in use already

Reviewed-by: mcimadamore, jlahoda, sadayapalam
2015-10-13 09:48:03 +05:30
Srikanth Adayapalam
ac4f8dfdd2 8139245: compiler crashes with exception on int:new method reference and generic method inference
Reviewed-by: mcimadamore
2015-10-12 19:43:44 +05:30
Maurizio Cimadamore
4d32c48daf 8138840: NPE when compiling bitwise operations with illegal operand types
8139243: compiler crashes with exception on sum operation of String var and void method call result
8139249: Compiler crashes on unary bitwise complement with non-integral operand

Certain binary operator checks are accepting more operands than required.

Reviewed-by: jlahoda
2015-10-12 12:24:33 +01:00
Lana Steuck
c4ea932612 Merge 2015-10-09 10:23:45 -07:00
Lana Steuck
cca72c1fde Added tag jdk9-b85 for changeset eb290482d42f 2015-10-08 22:30:46 -07:00
Srikanth Adayapalam
9c310602ec 8075799: Extraneous access checks implemented by javac
Allow anonymous class constructors to refer to inaccessible types.

Reviewed-by: mcimadamore
2015-10-07 19:35:43 +05:30
Srikanth Adayapalam
855243b12f 8065219: Deprecated warning in method reference are missing in some cases
Reviewed-by: mcimadamore
2015-10-07 16:02:57 +05:30
Srikanth Adayapalam
1a5c52e6c3 8130506: javac AssertionError when invoking MethodHandle.invoke with lambda paramter
Reviewed-by: mcimadamore
2015-10-07 15:53:38 +05:30
Vicente Romero
38c2534531 8138914: javac, method visitTypeVar() at visitor Types.hashCode generates the same hash code for different type variables
Reviewed-by: mcimadamore
2015-10-06 13:59:16 -07:00
Lana Steuck
a113b52db0 Merge 2015-10-06 08:43:24 -07:00
Iris Clark
3e51146504 Merge 2015-10-05 20:56:02 -07:00
Lana Steuck
1e4da93986 Added tag jdk9-b84 for changeset e69dd1decf7b 2015-10-05 20:25:08 -07:00
Jan Lahoda
c4a3a35b97 8075274: Compilation still depends on the order of imports
8133235: Compilation depends on order of source files

When analyzing type hierarchy, HierarchyPhase should process supertypes before subtypes.

Reviewed-by: mcimadamore
2015-10-05 18:31:38 +02:00
Srikanth Adayapalam
ea13770069 8133135: Compiler internall error (NPE) on anonymous class defined by qualified instance creation expression with diamond
Reviewed-by: mcimadamore
2015-10-05 15:41:29 +05:30
Maurizio Cimadamore
63a4f10b60 8137269: Add better support for local caching in ArgumentAttr
ArgumentAttr should support local caches when results of speculative attribution might be thrown away

Reviewed-by: jlahoda
2015-10-02 13:27:57 +01:00
Srikanth Adayapalam
0ea96ddfe4 8132535: Compiler fails with diamond anonymous class creation with intersection bound of enclosing class
Reviewed-by: mcimadamore
2015-10-01 19:47:06 +05:30
Nelson Dcosta
5c4dc85619 8133454: Update Java Compiler Error Message
Updating the error message that is used when javac crashes.

Reviewed-by: jjg
2015-09-29 21:22:35 +02:00
Iris Clark
0cbebd3571 Merge 2015-09-29 11:46:40 -07:00
Andrei Eremeev
b403bd3715 8081472: Add a mode to the tests for class-file attributes which dumps in-memory sources to disk
Reviewed-by: ksrini
2015-09-28 13:23:35 +03:00
Lana Steuck
dc0a64b361 Merge 2015-09-26 09:22:07 -07:00
Lana Steuck
869652cc3a Added tag jdk9-b83 for changeset a5249bcec60f 2015-09-25 22:59:34 -07:00
Jan Lahoda
1c64d72bb6 8135307: CompletionFailure thrown when calling FieldDoc.type, if the field's type is missing
Handling CompletionFailures inside the Javadoc API implementation.

Reviewed-by: mcimadamore, ksrini, jjg
2015-09-23 08:29:33 +02:00
Iris Clark
58aa7068df Merge 2015-09-21 20:09:01 -07:00
Andreas Lundblad
6238d40db4 8135131: Enable thin server mode in Sjavac
State tracknig and incremental compilation disabled unless --state-dir is provided.

Reviewed-by: jlahoda
2015-09-21 11:19:10 +02:00
Lana Steuck
cb2378ab3e Merge 2015-09-18 14:21:17 -07:00
Lana Steuck
b0efd22743 Added tag jdk9-b82 for changeset 618ea3c86a0d 2015-09-18 10:46:52 -07:00
Maurizio Cimadamore
981c6dc298 8078093: Severe compiler performance regression Java 7 to 8 for nested method invocations
Add infrastructure to avoid combinatorial explosion of method argument attributions

Reviewed-by: jlahoda, vromero, dlsmith
2015-09-15 13:43:44 +01:00
Iris Clark
16545b9471 Merge 2015-09-14 09:47:26 -07:00
Maurizio Cimadamore
379f2540aa 8077306: Recursive implementation of List.map leads to stack overflow
Recusrive implementation of List.map uses too much stack; switch to iterative version.

Reviewed-by: jlahoda
2015-09-14 11:26:14 +01:00
Kumar Srinivasan
11da417a28 8078320: Improve DocTrees parsing
Reviewed-by: jjg, jlahoda
2015-09-11 16:34:24 -07:00
Lana Steuck
b95f5342cf Merge 2015-09-11 13:01:23 -07:00
Lana Steuck
ee7b252af5 Added tag jdk9-b81 for changeset 98687c25039e 2015-09-11 10:26:41 -07:00
Maurizio Cimadamore
9f6a7922f7 8135246: CheckAttributedTree silently generates spurious compiler error
Cyclic inheritance errors should cause shared combo context to be thrown away

Reviewed-by: jlahoda
2015-09-11 16:27:20 +01:00
Jan Lahoda
25d64eb4bc 8132885: langtools/test/tools/javac/sym/ElementStructureTest.java is also searching default classpath
Explicitly setting classpath when inspecting the platform classes; using the java.util.ServiceLoader instead of the javac's copy

Reviewed-by: jjg
2015-09-10 21:10:20 +02:00
Vicente Romero
2169a5eefd 8073594: javac, before calling rawInstantiate from selectBest the warner should be cleared out
Reviewed-by: jlahoda
2015-09-08 11:59:25 -07:00
Vicente Romero
0c3e27483f 8135203: javac, patch intended for an issue was pushed with wrong id and message
Reviewed-by: jjg
2015-09-08 11:53:17 -07:00
Vicente Romero
772ca1b431 8132806: javac does a naive implementation of some incorporation steps
Reviewed-by: jlahoda
2015-09-08 10:36:44 -07:00
Iris Clark
057b421238 Merge 2015-09-08 10:25:18 -07:00
Andreas Lundblad
ab159bb1f7 8129114: Sjavac should stream back compiler output to the client as soon as it becomes available
Protocol revised, javac output sent back to client slightly earlier.

Reviewed-by: jlahoda
2015-09-04 13:24:15 +02:00
Lana Steuck
e405645f6f Merge 2015-09-03 16:13:49 -07:00
David Katleman
0e15d220c7 Added tag jdk9-b80 for changeset 2bc845318e4b 2015-09-03 14:24:46 -07:00
Iris Clark
ac032b2cb4 Merge 2015-08-31 13:57:43 -07:00
Maurizio Cimadamore
2f46e61a83 8129962: Investigate performance improvements in langtools combo tests
New combo API that runs all combo instances in a shared javac context (whenever possible).

Reviewed-by: jjg, jlahoda, vromero
2015-08-31 17:33:34 +01:00
Maurizio Cimadamore
5f1384e8b4 8134007: Improve string folding
Generalize string folding algorithm to detect mulitple groups of foldable constants within an concat expression

Reviewed-by: jlahoda
2015-08-31 15:50:20 +01:00
Lana Steuck
41f47f1498 Merge 2015-08-27 13:22:04 -07:00
David Katleman
c1f646e04a Added tag jdk9-b79 for changeset 8d067af302fd 2015-08-27 12:59:55 -07:00
Andreas Lundblad
97577b084f 8134483: A recent update to copyright headers caused two tests to fail
Replaced copyright notice with nodynamiccopyright and adjusted line numbers.

Reviewed-by: jfranck
2015-08-26 11:14:28 +02:00
Andreas Lundblad
8d0ebb66bd 8133671: langtools tests have bad license
Dropped classpath exception from copyright notice in tests.

Reviewed-by: jjg
2015-08-26 09:02:02 +02:00
Iris Clark
7f5ebecc4d Merge 2015-08-25 14:45:30 -07:00
Aleksey Shipilev
d2e6717c87 8134329: TeeOpTest.java fails across platforms after fix for JDK-8129547
Wrong indexes associated to CONSTANT_InvokeDynamic_info entries.

Reviewed-by: sundar
2015-08-25 15:10:25 +01:00
Andreas Lundblad
3672dbcddf 8048318: Refactor sjavac as a thin client
Moved compilation logic from client to server.

Reviewed-by: jlahoda
2015-08-25 15:14:41 +02:00
Aleksey Shipilev
062a960fd6 8129547: Excess entries in BootstrapMethods with the same (bsm, bsmKind, bsmStaticArgs), but different dynamicArgs
Pool.DynamicMethod implementation for hash/equals leads to duplicate BSM entries.

Reviewed-by: jlahoda
2015-08-24 13:15:12 +01:00
David Katleman
b3b6d59e9a Added tag jdk9-b78 for changeset 5841c9337554 2015-08-20 11:38:24 -07:00
Iris Clark
8322ba07af Merge 2015-08-17 13:02:56 -07:00
Lana Steuck
6074476a4e Merge 2015-08-13 14:14:59 -07:00
David Katleman
0bce0e49e1 Added tag jdk9-b77 for changeset 9fdd8b175dc1 2015-08-13 12:20:10 -07:00
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