Commit Graph

1149 Commits

Author SHA1 Message Date
Jan Lahoda
2ab8ab5613 8332858: References with escapes have broken positions after they are transformed
Reviewed-by: vromero, jjg
2024-05-31 05:54:39 +00:00
Joe Darcy
79f49983d3 8321314: Reinstate disabling the compiler's default active annotation processing
Reviewed-by: vromero
2024-05-30 19:57:21 +00:00
Jan Lahoda
4acafb809c 8333107: javac fails with an exception when processing broken lambda
Reviewed-by: asotona
2024-05-30 13:53:27 +00:00
Jan Lahoda
9a72068ef0 8332230: jshell throws AssertionError when processing annotations
Reviewed-by: asotona
2024-05-30 06:02:31 +00:00
Jan Lahoda
66d9bfce29 8332725: Binding patterns with inferred type have erroneous node in the AST
Reviewed-by: asotona
2024-05-30 06:01:18 +00:00
Archie Cobbs
87a06b6ce4 8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview)
Reviewed-by: vromero, jlahoda
2024-05-28 13:15:20 +00:00
Jan Lahoda
08face8c4c 8332890: Module imports don't work inside the same module
Reviewed-by: vromero
2024-05-27 14:19:26 +00:00
Evemose
617edf3f0d 8332497: javac prints an AssertionError when annotation processing runs on program with module imports
Reviewed-by: liach, vromero, jlahoda
2024-05-27 08:54:20 +00:00
Adam Sotona
cfdc64fcb4 8331291: java.lang.classfile.Attributes class performs a lot of static initializations
Reviewed-by: liach, redestad, vromero
2024-05-24 15:58:34 +00:00
Pavel Rappo
c099f14f07 8305457: Implement java.io.IO
Reviewed-by: naoto, smarks, jpai, jlahoda
2024-05-24 13:37:14 +00:00
Christian Stein
f16265d69b 8332226: "Invalid package name:" from source launcher
Reviewed-by: alanb
2024-05-24 12:24:15 +00:00
Jan Lahoda
af056c1676 8332106: VerifyError when using switch pattern in this(...) or super(...)
Reviewed-by: abimpoudis, vromero
2024-05-24 06:27:45 +00:00
Jan Lahoda
4e6d851f3f 8325324: Implement JEP 477: Implicitly Declared Classes and Instance Main Methods (Third Preview)
Reviewed-by: asotona, vromero, mcimadamore
2024-05-23 09:43:29 +00:00
Aggelos Biboudis
c4557a7b0d 8332463: Byte conditional pattern case element dominates short constant case element
Reviewed-by: vromero
2024-05-22 19:48:23 +00:00
Daniel D. Daugherty
b4d1454085 8332740: [BACKOUT] JDK-8331081 'internal proprietary API' diagnostics if --system is configured to an earlier JDK version
Reviewed-by: mikael, prr, jlahoda
2024-05-22 19:06:06 +00:00
Liam Miller-Cushon
2170e99cb4 8331081: 'internal proprietary API' diagnostics if --system is configured to an earlier JDK version
Reviewed-by: jlahoda
2024-05-22 18:02:37 +00:00
Vicente Romero
9bfae8891e 8332297: annotation processor that generates records sometimes fails due to NPE in javac
Reviewed-by: jlahoda
2024-05-21 08:53:26 +00:00
Jonathan Gibbons
0a58cffe88 8298405: Implement JEP 467: Markdown Documentation Comments
8329296: Update Elements for '///' documentation comments

Co-authored-by: Jim Laskey <jlaskey@openjdk.org>
Reviewed-by: prappo, darcy, hannesw
2024-05-17 17:42:46 +00:00
Vicente Romero
39a55e9779 8324809: compiler can crash with SOE while proving if two recursive types are disjoint
Reviewed-by: mcimadamore
2024-05-17 14:16:11 +00:00
Chen Liang
d4c2edf2c9 8331855: Convert jdk.jdeps jdeprscan and jdeps to use the Classfile API
Reviewed-by: asotona
2024-05-17 12:26:22 +00:00
Chen Liang
beeffd4671 8332109: Convert remaining tests using com.sun.tools.classfile to ClassFile API
Reviewed-by: asotona
2024-05-17 12:24:39 +00:00
Nizar Benalla
ae999eae7e 8129418: JShell: better highlighting of errors in imports on demand
Reviewed-by: jlahoda
2024-05-17 06:39:53 +00:00
Jan Lahoda
d04ac14bdb 8332236: javac crashes with module imports and implicitly declared class
Reviewed-by: vromero
2024-05-15 05:43:18 +00:00
Aggelos Biboudis
ea5eb74a65 8326404: Assertion error when trying to compile switch with fallthrough with pattern
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: vromero
2024-05-14 06:41:58 +00:00
Aggelos Biboudis
3e3f7cf4bd 8330387: Crash with a different types patterns (primitive vs generic) in instanceof
Reviewed-by: vromero
2024-05-13 07:33:42 +00:00
Jan Lahoda
f2c4a41304 8328481: Implement JEP 476: Module Import Declarations (Preview)
Co-authored-by: Jim Laskey <jlaskey@openjdk.org>
Reviewed-by: mcimadamore, vromero
2024-05-06 05:49:28 +00:00
Chen Liang
c60474b122 8323707: Adjust Classfile API's type arg model to better represent the embodied type
Reviewed-by: asotona
2024-05-03 11:08:33 +00:00
Jan Lahoda
8771015d7e 8331027: JDK's ct.sym file packs corrupted module-info classes
Reviewed-by: asotona
2024-05-02 14:32:03 +00:00
Christian Stein
4a78906db1 8331537: Test code should not use the "Classpath" exception clause
Reviewed-by: jpai
2024-05-02 11:13:41 +00:00
Jan Lahoda
44dc85001d 8331212: Error recovery for broken switch expressions could be improved
Reviewed-by: asotona
2024-05-01 12:19:11 +00:00
Jonathan Gibbons
a920af233a 8303689: javac -Xlint could/should report on "dangling" doc comments
Reviewed-by: vromero, ihse, prr
2024-04-26 19:47:06 +00:00
Adam Sotona
ffd850f17e 8309881: Qualified name of a type element depends on its origin (source vs class)
Reviewed-by: darcy, jlahoda
2024-04-26 08:26:22 +00:00
Christian Stein
d43654e573 8331030: langtools/tools/javac/tree tests fail with SOE with fastdebug and -Xcomp
Reviewed-by: jjg, vromero
2024-04-25 06:49:45 +00:00
Vicente Romero
0b9350e8b6 8322992: Javac fails with StackOverflowError when compiling deeply nested synchronized blocks
Reviewed-by: jlahoda
2024-04-22 16:31:32 +00:00
Archie Cobbs
064628471b 8317376: Minor improvements to the 'this' escape analyzer
Reviewed-by: vromero
2024-04-17 17:35:17 +00:00
Archie Cobbs
192ec387bc 8329595: spurious variable "might not have been initialized" on static final field
Reviewed-by: vromero
2024-04-17 14:31:40 +00:00
Maurizio Cimadamore
03e84178eb 8329948: Remove string template feature
Reviewed-by: jlahoda
2024-04-17 14:10:28 +00:00
Joe Darcy
a293bdff91 8330197: Make javac/diags/example release agnostic
Reviewed-by: jlahoda
2024-04-15 15:11:53 +00:00
Aggelos Biboudis
8efe569b8d 8328747: WrongMethodTypeException with pattern matching on switch on sealed classes
Reviewed-by: cushon, vromero
2024-04-05 08:05:53 +00:00
Joe Darcy
5860a48c71 8329624: Add visitors for preview language features
Reviewed-by: vromero, jlahoda
2024-04-05 05:04:48 +00:00
Archie Cobbs
d80d478182 8328649: Disallow enclosing instances for local classes in constructor prologues
Reviewed-by: vromero
2024-04-04 21:13:49 +00:00
Aggelos Biboudis
4dfcc6df17 8329115: Crash involving return from inner switch
Reviewed-by: jlahoda
2024-03-27 09:38:25 +00:00
Christian Stein
9bc741d04f 8328339: Static import prevents source launcher from finding class with main method
Reviewed-by: jlahoda
2024-03-22 05:29:20 +00:00
Archie Cobbs
46809b396c 8324736: Invalid end positions for EMPTY_STATEMENT
Reviewed-by: vromero
2024-03-21 22:54:15 +00:00
Aggelos Biboudis
a5a2eca155 8327683: Crash with primitive type pattern and generic expression in instanceof
Reviewed-by: vromero
2024-03-21 08:02:54 +00:00
Jan Lahoda
5b6b514441 8325362: Allow to create a simple in-memory input JavaFileObject
Reviewed-by: jlaskey, darcy
2024-03-19 09:35:25 +00:00
Aggelos Biboudis
fb390d202c 8327839: Crash with unboxing and widening primitive conversion in switch
Reviewed-by: jlahoda
2024-03-18 13:16:29 +00:00
Mandy Chung
044f4ed55d 8326979: (jdeps) improve the error message for FindException caused by InvalidModuleDescriptorException
Reviewed-by: jpai, alanb
2024-03-15 16:48:24 +00:00
Aggelos Biboudis
cff0747d7f 8326204: yield statements doesn't allow cast expressions with more than 1 type arguments
Reviewed-by: jlahoda
2024-03-14 07:01:32 +00:00
Christian Stein
3b18c5dc5d 8323605: Java source launcher should not require --source ... to enable preview
Reviewed-by: mcimadamore, dholmes
2024-03-13 06:44:04 +00:00
Jan Lahoda
93a2e773a5 8326129: Java Record Pattern Match leads to infinite loop
Reviewed-by: vromero
2024-02-23 10:08:56 +00:00
Jan Lahoda
cb809f8e04 8325215: Incorrect not exhaustive switch error
Reviewed-by: vromero
2024-02-23 08:56:14 +00:00
Hannes Wallnöfer
aa792eabab 8164094: javadoc allows to create a @link to a non-existent method
Reviewed-by: prappo, jjg
2024-02-20 19:56:15 +00:00
Aggelos Biboudis
0c2def0e3e 8325653: Erroneous exhaustivity analysis for primitive patterns
Reviewed-by: vromero
2024-02-14 09:19:18 +00:00
Jan Lahoda
8b70b8d85a 8325440: Confusing error reported for octal literals with wrong digits
Reviewed-by: vromero
2024-02-09 11:51:05 +00:00
Aggelos Biboudis
e3dc6a7a28 8314275: Incorrect stepping in switch
Reviewed-by: vromero
2024-02-09 08:52:28 +00:00
Aggelos Biboudis
e0d98dd301 8325257: jshell reports NoSuchFieldError with instanceof primitive type
Reviewed-by: mcimadamore
2024-02-07 06:59:48 +00:00
Aggelos Biboudis
df35462a4e 8323502: javac crash with wrongly typed method block in Flow
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: jlahoda
2024-02-05 08:59:55 +00:00
Joe Darcy
144a08ee50 8325078: Better escaping of single and double quotes in javac annotation toString() results
Reviewed-by: jlahoda
2024-02-01 20:20:33 +00:00
Aggelos Biboudis
1733d2ea24 8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview)
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Gavin Bierman <gbierman@openjdk.org>
Co-authored-by: Brian Goetz <briangoetz@openjdk.org>
Co-authored-by: Raffaello Giulietti <rgiulietti@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: vromero, jlahoda
2024-01-31 14:18:13 +00:00
Daniel D. Daugherty
70f4a4e18e 8324786: validate-source fails after JDK-8042981
Reviewed-by: darcy
2024-01-26 22:01:07 +00:00
Joe Darcy
ed3272cc44 8042981: Strip type annotations in Types' utility methods
Co-authored-by: Liam Miller-Cushon <cushon@openjdk.org>
Reviewed-by: cushon, jjg, jlahoda
2024-01-26 20:55:46 +00:00
Joe Darcy
b5995a76f7 8302019: Clarify Elements.overrides
Reviewed-by: prappo, jjg
2024-01-25 22:17:07 +00:00
Christian Stein
c702dcabf8 8323815: Source launcher should find classes with $ in names
Reviewed-by: jlahoda, sundar
2024-01-24 19:05:15 +00:00
Jan Lahoda
c9cacfb25d 8323657: Compilation of snippet results in VerifyError at runtime with --release 9 (and above)
Reviewed-by: vromero
2024-01-22 13:06:19 +00:00
Jan Lahoda
72f199024d 8323057: Recoverable errors may be reported before unrecoverable errors when annotation processing is skipped
Reviewed-by: vromero
2024-01-22 10:55:10 +00:00
Joe Darcy
a6c0b10704 8323684: TypeMirror.{getAnnotationsByType, getAnnotation} return uninformative results
Reviewed-by: jjg
2024-01-18 19:04:26 +00:00
Joe Darcy
d8b63370f3 8323839: Expand use of Messager convenience methods in langtools regression tests
Reviewed-by: jjg
2024-01-17 00:29:05 +00:00
Vicente Romero
5ba69e1734 8322477: order of subclasses in the permits clause can differ between compilations
Reviewed-by: jlahoda
2024-01-10 17:52:50 +00:00
Jan Lahoda
7455b1b527 8322159: ThisEscapeAnalyzer crashes for erroneous code
Reviewed-by: vromero
2024-01-02 11:15:12 +00:00
Liam Miller-Cushon
bdebf198bb 8322175: test/langtools/tools/javac/classreader/BadMethodParameter.java doesn't compile
Reviewed-by: jlahoda
2023-12-15 12:18:01 +00:00
Liam Miller-Cushon
20de541b13 8322040: Missing array bounds check in ClassReader.parameter
Reviewed-by: vromero
2023-12-15 10:16:35 +00:00
Adam Sotona
2838a916ab 8288989: Make tests not depend on the source code
Reviewed-by: mcimadamore
2023-12-14 11:36:57 +00:00
Christian Stein
df4ed7eff7 8321739: Source launcher fails with "Not a directory" error
Reviewed-by: jlahoda
2023-12-12 15:26:21 +00:00
Jan Lahoda
ce8399fd60 8321582: yield <primitive-type>.class not parsed correctly.
Reviewed-by: vromero
2023-12-11 12:20:22 +00:00
Joe Darcy
519ecd352a 8319413: Start of release updates for JDK 23
8319414: Add SourceVersion.RELEASE_23
8319416: Add source 23 and target 23 to javac

Reviewed-by: iris, erikj, alanb, vromero
2023-12-07 17:01:29 +00:00
Jan Lahoda
03c4595173 8321164: javac with annotation processor throws AssertionError: Filling jrt:/... during JarFileObject[/...]
Reviewed-by: vromero, mcimadamore
2023-12-07 09:09:19 +00:00
Joe Darcy
3edc24a71d 8321073: Defer policy of disabling annotation processing by default
Reviewed-by: vromero, jlahoda, mcimadamore
2023-12-06 18:36:26 +00:00
Vicente Romero
a9cb120d03 8320948: NPE due to unreported compiler error
Reviewed-by: jlahoda
2023-12-06 16:48:08 +00:00
Aggelos Biboudis
90e433d72e 8320144: Compilation crashes when a custom annotation with invalid default value is used
Reviewed-by: vromero, jlahoda
2023-12-06 15:34:25 +00:00
Vicente Romero
aaaae3ee3c 8321207: javac is not accepting correct code
Reviewed-by: jlahoda
2023-12-06 02:36:02 +00:00
Jan Lahoda
18c7922781 8321224: ct.sym for JDK 22 contains references to internal modules
Reviewed-by: darcy, vromero, asotona, ihse
2023-12-05 17:24:48 +00:00
Christian Stein
517b178819 8306914: Implement JEP 458: Launch Multi-File Source-Code Programs
Reviewed-by: jlahoda, jlaskey
2023-12-05 07:50:21 +00:00
Adam Sotona
2b00ac0d02 8308753: Class-File API transition to Preview
Reviewed-by: ihse, mchung, vromero
2023-12-04 07:07:57 +00:00
Eirik Bjorsnos
2f299e4a73 8321182: SourceExample.SOURCE_14 comment should refer to 'switch expressions' instead of 'text blocks'
Reviewed-by: darcy
2023-12-01 21:15:46 +00:00
Aggelos Biboudis
54957ac55f 8312560: Annotation on Decomposed Record Component in Enhanced For Loop Fails Compilation
Reviewed-by: jlahoda
2023-12-01 14:15:38 +00:00
Pavel Rappo
8f1d40b48b 8321114: Rename "Unnamed Classes" to "Implicitly Declared Classes" better
Reviewed-by: jlaskey
2023-12-01 11:51:25 +00:00
Aggelos Biboudis
4ba94ef69e 8320145: Compiler should accept final variable in Record Pattern
Reviewed-by: jlahoda
2023-12-01 07:13:39 +00:00
Jim Laskey
04ad98ed32 8315458: Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview)
Reviewed-by: jlahoda, mcimadamore, vromero, rriggs, alanb, mchung
2023-11-30 12:49:49 +00:00
Joe Darcy
b68356b267 8320806: Augment test/langtools/tools/javac/versions/Versions.java for JDK 22 language changes
Reviewed-by: jlahoda, vromero
2023-11-29 17:25:26 +00:00
Jan Lahoda
65dfcae6d6 8308399: Recommend --release when -source and -target are misused
Reviewed-by: vromero
2023-11-29 12:27:54 +00:00
Archie Cobbs
12e983a72e 8194743: Compiler implementation for Statements before super()
Reviewed-by: vromero, jwaters, mcimadamore
2023-11-27 17:26:52 +00:00
Vicente Romero
5e24aaf4f7 8320001: javac crashes while adding type annotations to the return type of a constructor
Reviewed-by: cushon, jlahoda
2023-11-27 16:23:02 +00:00
Jan Lahoda
fc314740e9 8318913: The module-infos for --release data do not contain pre-set versions
Co-authored-by: Erik Joelsson <erikj@openjdk.org>
Reviewed-by: vromero, ihse
2023-11-24 06:30:08 +00:00
Adam Sotona
53eb6f126b 8187591: -Werror turns incubator module warning to an error
Reviewed-by: jlahoda
2023-11-21 15:11:00 +00:00
Jim Laskey
9902d2eb17 8315457: Implement JEP 459: String Templates (Second Preview)
Reviewed-by: jlahoda, alanb, vromero
2023-11-17 12:53:49 +00:00
Vicente Romero
d6aa7c8ba0 8314621: ClassNotFoundException due to lambda reference to elided anonymous inner class
Reviewed-by: jlahoda
2023-11-16 16:49:26 +00:00
Vicente Romero
52e2878cff 8319987: compilation of sealed classes leads to infinite recursion
Reviewed-by: jlahoda
2023-11-16 16:41:58 +00:00
Liam Miller-Cushon
346dbd6d1c 8319196: ExecutableElement.getReceiverType doesn't return receiver types for methods loaded from bytecode
Reviewed-by: vromero
2023-11-14 17:38:09 +00:00
Vicente Romero
a75b6e569f 8191460: crash in Annotate with duplicate declaration and annotation processing enabled
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: asotona
2023-11-14 15:17:18 +00:00