Commit Graph

3929 Commits

Author SHA1 Message Date
Lana Steuck
f0bbed0c96 Merge 2017-01-20 19:10:00 +00:00
Robert Field
bba1175418 8173073: jshell tool: blank lines removed from multi-line snippets
Reviewed-by: jlahoda
2017-01-20 11:05:48 -08:00
Vicente Romero
6e24cb584c 8170692: inconsistent check of module-related options against target version
Reviewed-by: jjg
2017-01-20 08:29:59 -08:00
Jan Lahoda
721001933d 8173117: Compilation significantly slower after JDK-8169197
Only using recovery search when an error is inevitable.

Reviewed-by: jjg, mcimadamore
2017-01-20 15:32:07 +01:00
Jan Lahoda
3e7e4c275b 8172809: Error compiling javafx modules after fix for JDK-8169197
Properly stripping broken requires from ModuleSymbols.

Reviewed-by: jjg, mcimadamore
2017-01-20 15:32:03 +01:00
Jan Lahoda
b6e7bcbc6a 8171177: Compiler should issue a warning for incubating modules that are resolved
Javac needs to follow ModuleResolution.DO_NOT_RESOLVE_BY_DEFAULT and ModuleResolution.WARN_INCUBATING

Reviewed-by: jjg
2017-01-20 13:20:42 +01:00
Jan Lahoda
ec3981561d 8171098: NPE when --add-modules java.corba is used
Block annotations queue until enter is done, to avoid flushing annotations during module resolution.

Reviewed-by: jjg
2017-01-20 09:26:49 +01:00
Jonathan Gibbons
04405c6abc 8147414: java.nio.file.ClosedFileSystemException in javadoc
Reviewed-by: vromero
2017-01-19 19:14:51 -08:00
Jonathan Gibbons
16d379dad4 8165102: incorrect message from javac
Reviewed-by: vromero
2017-01-19 15:12:59 -08:00
Jonathan Gibbons
f54232896c 8172753: Improve style of left-side index pages
Reviewed-by: bpatel
2017-01-19 14:35:16 -08:00
Lana Steuck
eb1242d56a Added tag jdk-9+153 for changeset 047a57b0839a 2017-01-19 22:31:09 +00:00
Kumar Srinivasan
8045fb0059 8169608: Compiler Tree API's Doctrees.getDocTreePath needs to accept a PackageElement
8157611: field visiblePackages is null for the unnamed module producing NPE when accessed

Reviewed-by: jjg, jlahoda
2017-01-19 13:16:19 -08:00
Robert Field
362b794a82 8171130: jshell tool: /edit adds empty statement to brace terminated snippet
8173007: JShell Tests: ToolFormatTest takes too long

Reviewed-by: jlahoda
2017-01-19 11:17:11 -08:00
Robert Field
99e3bceb60 8172179: jshell tool: builtin startup settings should be by reference not content
Reviewed-by: jlahoda
2017-01-19 11:12:02 -08:00
Henry Jen
9e40eebc93 Merge 2017-01-19 07:02:34 -08:00
Joe Darcy
5fe31c310c 8172910: Use default methods as appropriate for language model visitors
Reviewed-by: jjg
2017-01-18 19:39:06 -08:00
Andrey Nazarov
408d7e99f7 8170250: update/improve testing of classfile module attribute
Reviewed-by: jjg, jlahoda
2017-01-18 21:09:19 +03:00
Chris Hegarty
a0dee349e1 8171380: Remove all exports from jdk.jlink
Reviewed-by: alanb, mchung, sundar
2017-01-18 09:35:23 +00:00
Joe Darcy
4873a69abe 8172686: Use less aggressive deprecation of utility visitors
Reviewed-by: jjg, smarks
2017-01-17 09:40:23 -08:00
Jan Lahoda
53792b463e 8172262: packages missing from docs build
Do not return packages without members from Elements.getPackageElement(String), to avoid ambiguities among such packages in multiple modules.

Reviewed-by: jjg
2017-01-17 07:41:04 +01:00
Srikanth Adayapalam
f1eb002e95 8171993: AssertionError when compiling method reference with generic code and varargs
Reviewed-by: mcimadamore
2017-01-17 09:17:10 +05:30
Joe Darcy
c96f02f2e8 8172531: Correct misstatements in javax.lang.model visitor documentation
Reviewed-by: jjg
2017-01-13 19:29:55 -08:00
Robert Field
cde454bda3 8172678: JShell Tests: Disable CompletionSuggestionTest.testBrokenClassFile2()
Reviewed-by: jlahoda
2017-01-13 18:29:21 -08:00
Jonathan Gibbons
ee0491d210 8172474: javac should enable doclint checking for HTML 5
Reviewed-by: jlahoda
2017-01-13 15:48:12 -08:00
Lana Steuck
071f4e022d Merge 2017-01-13 01:35:30 +00:00
Vicente Romero
5fc51d4ecd 8171528: Crash in Annotate with duplicate package-info declarations
Reviewed-by: jjg
2017-01-12 15:59:28 -08:00
Lana Steuck
6cabc219e0 Added tag jdk-9+152 for changeset 7b8b8750a78e 2017-01-12 23:41:19 +00:00
Vicente Romero
a709f5c3ef 8172213: Remove unused and partially implemented JavacElements#getSourcePosition methods
Reviewed-by: jjg
2017-01-12 09:04:16 -08:00
Jan Lahoda
abddf32a62 8172668: NPE in jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.importNamed(
Guarding against noType returned from ErrorType.getOriginalType.

Reviewed-by: mcimadamore
2017-01-12 15:37:46 +01:00
Robert Field
96c8382650 8172530: JShell: TypeProjection .stream().map(...).collect(...) must be replaced with .map(...)
Reviewed-by: mcimadamore
2017-01-11 11:09:04 -08:00
Vicente Romero
a9a05f2aff 8171325: NPE in Check.clearLocalClassNameIndexes
Reviewed-by: mcimadamore
2017-01-11 10:29:24 -08:00
Jan Lahoda
c2d9172419 8169197: Improve error reporting for compiling against unexported package
When a type cannot be found, look into other modules, search for possible viable types, and report them conveniently to the user.

Reviewed-by: mcimadamore, jjg
2017-01-11 10:59:57 +01:00
Vicente Romero
6c4a689750 8171332: NPE in MembersPhase.finishClass
Reviewed-by: mcimadamore
2017-01-10 11:31:59 -08:00
Jan Lahoda
b8bdb56985 8172414: jshell not working in exploded JDK build
Using Class.getResourceAsStream instead of a direct reference to JRT.

Reviewed-by: rfield, sundar
2017-01-10 13:53:44 +01:00
Jan Lahoda
fd12ea2d58 8171385: jshell tool: unresponsive to ctrl-C in input wait on Windows
Ensuring stop is sent using the proper channel depending on the current state of the StopDetectingInputStream.

Reviewed-by: rfield
2017-01-10 10:17:47 +01:00
Robert Field
cea33151ed 8171981: JShell: Fails compilation: new Object().getClass().getSuperclass()
Reviewed-by: mcimadamore
2017-01-09 18:04:16 -08:00
Joe Darcy
bee65032d4 8172458: Make javax.lang.model javadoc HTML 5 compliant
Reviewed-by: jjg
2017-01-09 16:20:48 -08:00
Robert Field
f9b57bfbed 8172255: JShell API: ExecutionControl/LoaderDelegate: Remove unused/unimplemented setClassPath
Reviewed-by: jlahoda
2017-01-09 13:50:45 -08:00
Jan Lahoda
869f5bbd91 8172411: -XDnoModules must be removed
Reviewed-by: jjg
2017-01-09 16:44:45 +01:00
Robert Field
6f796f5684 8165405: jshell tool: /classpath is inconsistent
8172103: JShell: crash in TaskFactory$WrapSourceHandler.diag

Reviewed-by: jlahoda
2017-01-06 10:31:25 -08:00
Jan Lahoda
4ec30a933a 8172158: Annotation processor not run with -source <= 8
Avoiding use of module prefix to map annotations to processors when running without modules.

Reviewed-by: darcy, jjg
2017-01-06 14:16:45 +01:00
Jonathan Gibbons
61175156de 8172311: MostSpecific09.java and PotentiallyAmbiguousWarningTest.java failing across platforms
Reviewed-by: vromero
2017-01-05 15:39:57 -08:00
Lana Steuck
21aaeeffff Merge 2017-01-05 19:47:14 +00:00
Vicente Romero
cedf0baa46 8026699: test test/tools/javac/lambda/T8024947/PotentiallyAmbiguousWarningTest.java has an extra @compile attribute that should be removed
Reviewed-by: mcimadamore
2017-01-05 11:20:56 -08:00
Bernard Blaser
37f7ab915c 8148100: Convert lambda most specific positive tests to check runtime behavior
Reviewed-by: mcimadamore
2017-01-05 11:16:39 -08:00
Maurizio Cimadamore
01fc0b7771 8172287: improve intellij logging to cover javac internal errors
Add new message kind to custom intellij ant logger

Reviewed-by: jjg
2017-01-05 19:10:24 +00:00
Joe Darcy
42a9464947 8172220: Mark UserInputTest.java as intermittently failing and problem list it
Reviewed-by: jlahoda
2017-01-05 11:02:35 -08:00
Liam Miller-Cushon
d3f27dfe9c 8065800: javac, fix diagnostic position for statement-bodied lambdas
Reviewed-by: mcimadamore
2017-01-05 10:04:40 -08:00
Lana Steuck
bb1aca9034 Added tag jdk-9+151 for changeset ae7decb33b43 2017-01-05 17:51:12 +00:00
Jonathan Gibbons
6fa9fb405d 8172260: remove tests from ProblemList
Reviewed-by: rfield
2017-01-04 18:33:20 -08:00
Jonathan Gibbons
3cfe5aae72 8171977: Add support for latest messages from 'tidy'
Reviewed-by: darcy
2017-01-04 16:08:27 -08:00
Liam Miller-Cushon
1b499dbf8b 8172214: typo in "intersection types in cast are not supported" message
Reviewed-by: mcimadamore
2017-01-03 17:49:08 -05:00
Mandy Chung
920965dad2 8172212: jdeps --require and --check should detect the specified module in the image
Reviewed-by: psandoz, lancea
2017-01-03 17:53:34 -08:00
Dan Smith
342a27ab58 8144066: StackOverflowException when computing glb
Reviewed-by: mcimadamore
2017-01-03 16:27:54 -07:00
Maurizio Cimadamore
4ff56b008f 8169091: Method reference T::methodName for generic type T does not compile any more
MethodReferenceLookupHelper should use original site to perform unbound subtype check

Reviewed-by: vromero
2017-01-03 11:33:18 +00:00
Liam Miller-Cushon
a84bef19f0 8171132: Improve class reading of invalid or out-of-range ConstantValue attributes
Reviewed-by: mcimadamore
2016-12-21 15:40:08 -08:00
Robert Field
6c52320ccc 8172102: jshell tool: remove print method forwarding to System.out from default startup
Reviewed-by: briangoetz
2017-01-02 18:31:30 -08:00
Robert Field
72b502fa4f 8171892: JShell: incorrect printing of multidemensional arrays
8171387: jshell tool: message inconsistencies

Reviewed-by: sundar, dlsmith
2016-12-23 11:17:50 -08:00
Lana Steuck
bc5b401e00 Merge 2016-12-22 18:48:42 +00:00
Lana Steuck
3fe3fea9c1 Added tag jdk-9+150 for changeset a8d83044a192 2016-12-22 08:26:03 +00:00
Robert Field
f7067671f6 8168615: JShell API: jdk.jshell.spi should be a pluggable ServiceLoader SPI
Reviewed-by: jlahoda
2016-12-21 20:14:39 -08:00
Robert Field
ea579f7bec 8170162: jshell tool: no mechanism to programmatically launch
8170044: jshell tool: jshell missing from javax.tools.ToolProvider

Reviewed-by: jjg
2016-12-20 13:42:13 -08:00
Jonathan Gibbons
23c1a004ec 8171413: jdk/javadoc/doclet/testModules/TestModules.java failed due to some subtests failed
Reviewed-by: bpatel
2016-12-20 06:06:01 -08:00
Jonathan Gibbons
71b65b06e4 8171412: tools/javac/modules/AddLimitMods.java failed with "error: module not found"
Reviewed-by: mcimadamore
2016-12-20 05:50:39 -08:00
Mandy Chung
cc3b86f64c 8171418: Remove jdeps internal --include-system-modules option
Reviewed-by: dfuchs, lancea
2016-12-19 12:30:39 -08:00
Jonathan Gibbons
bf8ce3692c 8171255: Javac generates Deprecated class file attribute for @deprecated javadoc tag on module declaration
Reviewed-by: mcimadamore, anazarov
2016-12-19 11:15:01 -08:00
Jonathan Gibbons
347e8689f2 8171451: update langtools problem lists for failing tests
Reviewed-by: darcy
2016-12-19 11:07:44 -08:00
Vicente Romero
b29a67ae55 8169005: tools/javac/T8132562/ClassPathWithDoubleQuotesTest.java fails after fix to JDK-8132562
Reviewed-by: jjg
2016-12-17 16:57:14 -05:00
David Dehaven
2bff185d11 Merge 2016-12-16 11:58:18 -08:00
Bhavesh Patel
4a4e893915 8160196: Module summary page should display information based on "api" or "detail" mode
Reviewed-by: jjg, ksrini
2016-12-16 09:07:57 -08:00
Andrey Nazarov
8c5b717ec4 Merge 2016-12-16 18:54:09 +03:00
Andrey Nazarov
bf8e595590 8170549: Improve testing of annotations on modules
Reviewed-by: jjg, jlahoda
2016-12-16 18:40:23 +03:00
Maurizio Cimadamore
ef78f339fd 8171371: Remove redundant type-arguments from generic method calls
Reviewed-by: jjg, rfield, mchung
2016-12-16 15:27:47 +00:00
Maurizio Cimadamore
c4e8276376 8181370: Convert anonymous inner classes into lambdas/method references
Reviewed-by: jjg, rfield, mchung
2016-12-16 15:27:34 +00:00
Jan Lahoda
5a0691c4e4 8171355: Implement Elements.getOrigin
Adding implementation for javax.lang.model.util.Elements.getOrigin

Reviewed-by: darcy, jjg
2016-12-16 12:08:46 +01:00
Joe Darcy
11ce270bfc 8163315: Implement an API to identify an implicitly declared annotation (or declaration)
Adding javax.lang.model.util.Elements.getOrigin

Reviewed-by: jjg
2016-12-16 12:04:32 +01:00
Jan Lahoda
e62a384eb3 8133896: Update javax.lang.model APIs
Reviewed-by: darcy, jjg
2016-12-16 12:02:30 +01:00
Alan Bateman
574ac0add6 Merge 2016-12-16 08:17:55 +00:00
Alan Bateman
2381943e61 8170987: Module system implementation refresh (12/2016)
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Srikanth Adayapalam <srikanth.adayapalam@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Reviewed-by: mcimadamore
2016-12-16 05:47:58 +00:00
Jonathan Gibbons
fbd2e66afb 8170553: javac info options should match launcher options
Reviewed-by: jlahoda
2016-12-15 11:47:25 -08:00
Jonathan Gibbons
e4748a6d4c 8170708: javap -m <module> cannot read a module-info.class
Reviewed-by: jlahoda
2016-12-14 18:30:56 -08:00
Dan Smith
3999672b7a 8075793: Source incompatibility for inference using -source 7
In pre-8 sources, avoid capture variables as inference bounds, consistent with old javac behavior

Reviewed-by: vromero, mcimadamore
2016-12-14 17:56:11 -07:00
Lana Steuck
93f097a106 Merge 2016-12-14 20:34:19 +00:00
Lana Steuck
353a59448d Added tag jdk-9+149 for changeset d10c31f6b857 2016-12-14 20:23:26 +00:00
Mandy Chung
54e787fbd4 8171201: Drop java.compact$N aggregator modules
8171202: Rename jdk.crypto.pkcs11 and jdk.pack200 to end with Java letters

Reviewed-by: alanb, erikj
2016-12-14 10:51:21 -08:00
Erik Joelsson
053cdb4fa5 8170741: Enable uploading of built artifacts through Jib
Reviewed-by: ihse
2016-12-14 16:32:07 +01:00
Bhavesh Patel
88d8618e30 8162674: change javadoc output text and style emitted by for-removal deprecations
Reviewed-by: jjg
2016-12-13 12:25:58 -08:00
Jan Lahoda
d3892cc3b4 8072988: Update javax.annotation.processing for modules
Support for generating files in multi-module mode.

Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Reviewed-by: darcy, jjg
2016-12-13 10:49:28 +01:00
Jan Lahoda
5f63bc3ff0 8171005: Fix JavaFileManager.getLocationForModule(Location location, JavaFileObject fo, String pkgName) to work with location == CLASS_OUTPUT
JavaFileManager operations that allow module-oriented locations should also allow output locations.

Reviewed-by: jjg
2016-12-13 10:48:18 +01:00
David Dehaven
44265a8aaa Merge 2016-12-12 20:54:41 -08:00
Mandy Chung
59e977e56b 8169925: Organize licenses by module in source, JMOD file, and run-time image
Co-authored-by: Jeannette Hung <jeannette.hung@oracle.com>
Reviewed-by: alanb, erikj, ihse, naoto, prr
2016-12-12 18:56:45 -08:00
Jan Lahoda
b0e53fc8de 8153229: JavacFiler.checkFileReopening drowns in exceptions after Modular Runtime Images change
Using Path.equals instead of Files.isSameFile to speed up Filer checks

Reviewed-by: jjg
2016-12-12 17:00:30 +01:00
Bernard Blaser
bc1ae385d3 8147527: Wrong code generated for postfix unary operators
Avoiding use of duplicated tree nodes when these may be changed in place.

Reviewed-by: mcimadamore, jlahoda
2016-12-12 13:27:39 +01:00
Jonathan Gibbons
e9ddc68f70 8170251: Add javax.tools.Tool.name()
Reviewed-by: darcy, mchung
2016-12-09 16:24:50 -08:00
Liam Miller-Cushon
7aff5df624 8170667: ClassReader assigns method parameters from MethodParameters incorrectly when long/double parameters are present
MethodParameters attribute does not skip a slot for long/double.

Reviewed-by: vromero, jlahoda
2016-12-09 18:06:48 +01:00
Jonathan Gibbons
7987d2876a 8170953: CheckResourceKeys tests should declare the resource package to be open
Reviewed-by: mchung
2016-12-08 16:52:38 -08:00
Lana Steuck
4d2bb23e1c Merge 2016-12-08 21:21:48 +00:00
Bhavesh Patel
b5d8b0b991 8168688: javadoc top left frame should display all modules while in module mode
Reviewed-by: jjg
2016-12-08 12:46:59 -08:00
Lana Steuck
07e2360af7 Added tag jdk-9+148 for changeset 8e1573096052 2016-12-08 18:03:37 +00:00
Li Jiang
34c791a6a4 8169618: JDK9 message drop interim resource updates - OpenJDK
Reviewed-by: rfield, peytoia, joehw, weijun
2016-12-07 05:58:43 -08:00