Commit Graph

539 Commits

Author SHA1 Message Date
Jan Lahoda
c0d870559f 8227640: javac crashes on text blocks with invalid escapes
Do not translate escape sequences if text block contains illegal escapes.

Reviewed-by: jlaskey
2019-07-16 10:48:22 +02:00
Jan Lahoda
32a7e50bee 8220041: NullPointerException at jdk.compiler/com.sun.tools.javac.jvm.Code.emitop0
LambdaToMethod must correctly capture local variables inside switch expressions inside local variable initializers.

Reviewed-by: mcimadamore, vromero
2019-07-10 09:04:42 +02:00
Jan Lahoda
1dd6e7a3eb 8226522: No compilation error reported when yield is used in incorrect context
Reviewed-by: mcimadamore
2019-07-02 09:14:51 +02:00
Jan Lahoda
e81d3fa8c3 8226510: No compilation error when switch expression has no result expressions
Ensure a compile-time error is produced when there are no result expressions in an switch expression.

Reviewed-by: vromero
2019-06-27 10:39:27 +02:00
Jonathan Gibbons
454f9f9fd0 8225748: Use SHA-256 for javap classfile checksum
Reviewed-by: mchung
2019-06-18 11:52:57 -07:00
Robert Field
a38e980eb5 8200701: jdk/jshell/ExceptionsTest.java fails on Windows, after JDK-8198801
8159740: JShell: corralled declarations do not have correct source to wrapper mapping
8212167: JShell : Stack trace of exception has wrong line number

Build corralled (recoverable undeclared definitions) declarations from position translating wraps....

Reviewed-by: jlahoda
2019-06-17 17:14:05 -07:00
Toshio Nakamura
0f42d9870e 8224184: jshell got IOException at exiting with AIX
Reviewed-by: rfield, jlahoda
2019-06-13 08:42:47 +02:00
Hannes Wallnöfer
3353016bbc 8225671: Support HTML 5 character references in javadoc
Reviewed-by: jjg
2019-06-12 23:21:24 +02:00
Jan Lahoda
d9407ce428 8220018: javac crash when compiling try-catch-finally inside switch expression
Correcting handling of finally that yields from a switch expression.

Reviewed-by: mcimadamore, jlahoda
2019-06-12 13:49:43 +02:00
Hannes Wallnöfer
0d8209a2b7 8223364: Bad placement of anchor relative to header
Reviewed-by: jjg
2019-06-12 13:21:25 +02:00
Jan Lahoda
b34b2d993c 8223305: Compiler support for Switch Expressions
Reviewed-by: mcimadamore, vromero
2019-06-10 05:09:52 +02:00
Jan Lahoda
1d050ec2e9 8223782: jshell parser should handle Text Blocks
Completion analysis should detect text blocks properly.

Reviewed-by: jlaskey, rfield
2019-06-07 10:09:41 +02:00
Jonathan Gibbons
948577bb1f 8225321: Repeated use of {@systemProperty} in a file causes duplicate ids
Reviewed-by: hannesw
2019-06-06 10:36:43 -07:00
Jim Laskey
08e1ece107 8223967: Implement Text Blocks (Preview) in the Java compiler
Reviewed-by: vromero, jlahoda, abuckley
2019-06-06 12:24:44 -03:00
Vicente Romero
43114a091a 8225386: test for JDK-8216261 fails in Windows
Reviewed-by: jjg
2019-06-05 21:50:29 -04:00
Vicente Romero
d69bc696f2 8223942: Missing methods in ClientCodeWrapper$WrappedJavaFileManager
Reviewed-by: jjg
2019-06-05 17:01:43 -04:00
Vicente Romero
16a0533eac 8216261: Javap ignores default modifier on interfaces
Reviewed-by: jjg, darcy
2019-06-05 16:01:50 -04:00
Hannes Wallnöfer
9f039257cb 8221709: replace use of style blockListLast
Reviewed-by: jjg
2019-06-05 16:26:13 +02:00
Jonathan Gibbons
45f6ff3894 8223805: DocCommentParser should allow for <main> and </main>
Reviewed-by: hannesw
2019-06-04 11:29:29 -07:00
Hannes Wallnöfer
4b01aa4f71 8214126: Method signatures not formatted correctly in browser
Reviewed-by: jjg
2019-06-04 16:33:37 +02:00
Hannes Wallnöfer
4d08dd703e 8222091: Javadoc does not handle package annotations correctly on package-info.java
Reviewed-by: jjg
2019-06-04 16:20:42 +02:00
Robert Field
b84187ca17 8225208: Re-Problem list jdk/jshell/ExceptionsTest.java fails on windows
Reviewed-by: jjg
2019-06-03 16:24:34 -07:00
Robert Field
4bc1fdf83c 8199623: JShell: corralling not restored on drop
Reviewed-by: jlahoda
2019-06-03 08:21:04 -07:00
Robert Field
0be741c70b 8223688: JShell: crash on the instantiation of raw anonymous class
Reviewed-by: jlahoda
2019-06-01 14:09:59 -07:00
Robert Field
50971d6ea7 8080353: JShell: Better error message on attempting to add default method
Special handling for errors with "default" modifier

Reviewed-by: jlahoda
2019-06-01 13:41:01 -07:00
Vicente Romero
e36693bc29 8224083: javadoc Reporter generates warning for Kind.NOTE
8224082: NPE in javadoc Reporter

Reviewed-by: jjg
2019-05-31 18:35:17 -04:00
Joe Darcy
bcd13b790f 8224687: Add clarifying overrides of Element.asType to more specific subinterfaces
Reviewed-by: jjg
2019-05-30 16:21:08 -07:00
Athijegannathan Sundararajan
90fb4990ed 8224946: jrtfs URI to Path and Path to URI conversions are wrong
Reviewed-by: alanb
2019-05-30 17:30:33 +05:30
Jim Laskey
4e83c1c4dc 8224908: Revert: 8216553: JrtFileSystemProvider getPath(URI) omits /modules element from file path
Reviewed-by: darcy, kbarrett
2019-05-28 16:51:28 -03:00
Jonathan Gibbons
a0744051d5 8219147: Javadoc should expose covariant return type overrides
Reviewed-by: hannesw
2019-05-28 11:21:02 -07:00
Athijegannathan Sundararajan
0c724506b8 8216553: JrtFIleSystemProvider getPath(URI) omits /modules element from file path
Reviewed-by: alanb, jlaskey
2019-05-28 19:30:30 +05:30
Jan Lahoda
0112514fde 8220702: compiling in the context of an automatic module disallows --add-modules ALL-MODULE-PATH
Allow --add-modules ALL-MODULE-PATH when compiling in the context of an automatic module.

Reviewed-by: jjg
2019-05-24 12:25:18 +02:00
Joe Darcy
4dd6b687ef 8224177: Harden annotation processing framework to irregular behavior from processors
Reviewed-by: jjg
2019-05-23 18:47:24 -07:00
Priya Lakshmi Muthuswamy
c053e706a9 8223733: "Detail" in headings should be "Details"
Reviewed-by: hannesw
2019-05-21 15:02:18 +05:30
Priya Lakshmi Muthuswamy
adcb06303c 8219313: Support module specific stylesheets
Reviewed-by: jjg
2019-05-20 14:42:32 +05:30
Jan Lahoda
08193be19c 8224031: Cannot parse switch expressions after type cast
Correctly categorize parentheses followed by the switch keyword as cast.

Reviewed-by: mcimadamore
2019-05-16 16:42:14 +02:00
Priya Lakshmi Muthuswamy
5fc3474639 8222548: Upgrading JDK 13 with the latest available jQuery 3.4.1
Reviewed-by: hannesw
2019-05-16 16:40:48 +05:30
Jan Lahoda
b32a840e53 8222169: java.lang.AssertionError switch expression in ternary operator - ?
Ensure the stack size recoded at the begining of the let expression is the correct one.

Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Reviewed-by: vromero
2019-05-16 10:52:36 +02:00
Vicente Romero
23278fea38 8215470: Bad EnclosingMethod attribute on classes declared in lambdas
Reviewed-by: mcimadamore
2019-05-14 11:28:44 -04:00
Hannes Wallnöfer
4a59b995da 8219060: -linksource broken with modules
Reviewed-by: jjg
2019-05-13 16:43:47 +02:00
Vicente Romero
40155b14cd 8222251: preflow visitor is not visiting lambda expressions
Reviewed-by: mcimadamore
2019-05-09 10:04:33 -04:00
Jan Lahoda
55e1da1813 8221759: Crash when completing \"java.io.File.path\"
Do not provide documentation for inaccessible elements.

Reviewed-by: rfield
2019-05-09 11:58:26 +02:00
Vicente Romero
c98fb7d64b 8222949: add condy support to javac's pool API
Reviewed-by: mcimadamore
2019-05-08 10:10:54 -04:00
Lance Andersen
5a4cef05d6 8218875: Add new FileSystems.newFileSystem methods
Reviewed-by: rriggs, alanb, clanger, dfuchs
2019-05-02 17:08:03 -04:00
Joe Darcy
75471b411d 8146726: Improve AbstractProcessor to issue warnings for repeated information
Reviewed-by: jjg, smarks, serb, igerasim
2019-05-01 16:47:26 -07:00
Steve Groeger
7c55d53d66 8218152: [javac] fails and exits with no error if a bad annotation processor provided
Handle exceptions thrown while loading annotation processors.

Reviewed-by: jlahoda
2019-04-30 10:39:22 +02:00
Priya Lakshmi Muthuswamy
a722889681 8221991: Improve the HTML for the inheritance tree for a type
Reviewed-by: hannesw
2019-04-30 11:58:30 +05:30
Hannes Wallnöfer
8322ce2e6b 8220497: Improve Javadoc search feature and add test coverage
Reviewed-by: jjg
2019-04-25 09:12:40 +02:00
Priya Lakshmi Muthuswamy
d0788ec07f 8219998: Eliminate inherently singleton lists
Reviewed-by: jjg
2019-04-23 18:28:48 +05:30
Priya Lakshmi Muthuswamy
e9da006827 8215580: Remove support for --no-module-directories
Reviewed-by: jjg
2019-04-23 14:13:18 +05:30