Jan Lahoda
2c8e94f680
8247403: JShell: No custom input (e.g. from GUI) possible with JavaShellToolBuilder
...
Reviewed-by: vromero
2021-05-31 09:25:16 +00:00
Jan Lahoda
8072ea5628
8238173: jshell - switch statement with a single default not return cause syntax error
...
Reviewed-by: vromero
2021-04-29 14:54:39 +00:00
Guoxiong Li
657f103937
8057543: Replace javac's Filter with Predicate (and lambdas)
...
Reviewed-by: mcimadamore
2021-04-22 16:44:29 +00:00
Tagir F. Valeev
787908c778
8264221: Rewrite confusing stream API chain in SnippetMaps
...
Reviewed-by: jlahoda
2021-04-20 01:44:32 +00:00
Jan Lahoda
325eecbccb
8255273: jshell crashes with UnsupportedOperationException: Should not get here.
...
Reviewed-by: vromero
2021-04-15 16:17:35 +00:00
Tagir F. Valeev
3997c99e0a
8264222: Use switch expression in jshell where possible
...
Reviewed-by: briangoetz
2021-04-01 06:02:21 +00:00
Alex Blewitt
8735259f05
8264333: Use the blessed modifier order in jdk.jshell
...
Reviewed-by: iris, shade
2021-03-30 08:15:50 +00:00
Jan Lahoda
6c0fbf70e8
8254196: jshell infinite loops when startup script contains System.exit call
...
Reviewed-by: sundar
2021-03-24 10:34:31 +00:00
Ian Graves
fad8484058
8263411
: Convert jshell tool to use Stream.toList()
...
Reviewed-by: jlahoda
2021-03-24 09:31:54 +00:00
Jan Lahoda
41276eb83a
8259863: doc: JShell snippet doesn't compile
...
Reviewed-by: sundar
2021-03-17 12:36:24 +00:00
Magnus Ihse Bursie
f7a6cff983
8261149: Initial nroff manpage update for JDK 17
...
Reviewed-by: dholmes, erikj
2021-02-04 14:37:33 +00:00
Jesper Wilhelmsson
9b7a8f1982
Merge
2021-02-04 02:06:33 +00:00
Magnus Ihse Bursie
ed1a7755c3
8258378: Final nroff manpage update for JDK 16
...
Reviewed-by: erikj, dholmes
2021-02-02 07:41:48 +00:00
Jan Lahoda
0675473486
8252409: JShell: Intersection types cause NoSuchFieldError
...
Reviewed-by: vromero
2021-01-29 09:19:14 +00:00
Jesper Wilhelmsson
133bcb0995
Merge
2021-01-21 05:23:42 +00:00
Leo Jiang
012051090d
8259732: JDK 16 L10n resource file update - msg drop 10
...
Reviewed-by: naoto
2021-01-20 13:58:49 +00:00
Jan Lahoda
0ec2c969df
8259820: JShell does not handle -source 8 properly
...
Reviewed-by: sundar
2021-01-15 12:45:22 +00:00
Jan Lahoda
77ca1031a0
8257236: can't use var with a class named Z
...
Reviewed-by: sundar
2021-01-13 11:27:52 +00:00
Jan Lahoda
235488215b
8250768: javac should be adapted to changes in JEP 12
...
Reviewed-by: mcimadamore, erikj, jjg, ihse
2021-01-11 10:10:47 +00:00
Alan Bateman
79e57ace65
8256643: Terminally deprecate ThreadGroup stop, destroy, isDestroyed, setDaemon and isDaemon
...
Reviewed-by: serb, rriggs, iris, mchung, smarks
2020-11-25 08:26:00 +00:00
Jan Lahoda
cdef186c11
8232856: jshell crashes when pressing up arrow after /!
...
Reviewed-by: psandoz
2020-11-05 09:12:07 +00:00
Magnus Ihse Bursie
622f72bc8b
8255853: Update all nroff manpages for JDK 16 release
...
Reviewed-by: erikj
2020-11-03 22:12:56 +00:00
Robert Field
261eb76ea2
8247456: JShell: Handling of top-level final, abstract, and static modifiers
...
Reviewed-by: jlahoda
2020-09-02 09:37:25 -07:00
Robert Field
9390446081
8249566: jshell tool: retained modes from JDK-13 or prior cause confusing messages to be generated for records
...
Reviewed-by: jlahoda
2020-08-01 14:18:06 -07:00
Mikael Vidstedt
e7289aa4d4
Merge
2020-07-27 22:26:00 -07:00
Pavel Rappo
922ba8da30
8240777: Update all nroff manpages for JDK 15 release
...
Reviewed-by: dholmes
2020-07-24 17:06:35 +01:00
Robert Field
6e198fec0b
8249197: JShell: variable declaration with unicode type name gets garbled result
...
8249199: JShell: Consistent representation of unicode
Reviewed-by: jlahoda
2020-07-23 10:37:06 -07:00
Jan Lahoda
3770be7f70
8249367: JShell uses 100% of one core all the time
...
Workarounding busy wait while reading from NonBlocking.NonBlockingReaderInputStream wrapping NonBlockingPumpReader.
Reviewed-by: rfield, cstein
2020-07-16 11:30:11 +02:00
Mark Reinhold
55039aa1c6
8249205: Remove unnecessary trademark symbols
...
Reviewed-by: darcy, lancea, bpb, prr, jjg, cjplummer, iris, dfuchs, weijun, joehw, wetmore, bchristi
2020-07-15 14:21:54 -07:00
Leo Jiang
1b1fb08000
8249086: JDK 15 L10N resource file update - msg drop 10
...
Reviewed-by: naoto
2020-07-09 17:04:06 +00:00
Robert Field
a2db08ae98
8247438: JShell: When FailOverExecutionControlProvider fails the proximal cause is not shown
...
8237743: test/langtools/jdk/jshell/FailOverExecutionControlTest.java fails No ExecutionControlProvider with name 'nonExistent' and parameter keys: []
8199646: JShell tests: jdk/jshell/FailOverDirectExecutionControlTest.java failed with java.lang.UnsupportedOperationException
Reviewed-by: jlahoda
2020-06-26 18:20:22 -07:00
Jan Lahoda
61e44cdb6a
8247932: JShell crashes when typing text block
...
Setting up Log before running javac's scanner, so that errors reported from the scanner are properly ignored.
Reviewed-by: rfield
2020-06-22 12:03:11 +02:00
Jan Lahoda
358714bcd0
8246353: Sealed types not supported by jshell
...
Reviewed-by: rfield, vromero
2020-06-08 16:59:43 +02:00
Jan Lahoda
3beee2cd93
8242919: Paste locks up jshell
...
Not waiting until the full block is available while reading from input.
Reviewed-by: rfield
2020-05-08 09:16:12 +02:00
Jan Lahoda
f08b5a8006
8241950: JShell could support auto-indent
...
Reviewed-by: rfield
2020-04-20 12:36:09 +02:00
Jan Lahoda
e44dcf09c0
8234896: Tab completion does not work for method references in jshell
...
Reviewed-by: rfield
2020-03-04 13:43:28 +01:00
Jan Lahoda
acd2d32913
8239536: Can't use java.util.List
object after importing java.awt.List
...
Using full qualified names for synthetic types; ensuring the user is warned when a variable becomes undefined due to a dependency change.
Reviewed-by: rfield
2020-02-24 11:43:04 +01:00
Leo Jiang
9ec5da00bc
8238377: JDK 14 L10N resource file update - msgdrop 20
...
Reviewed-by: naoto, herrick, mchung
2020-02-04 16:26:54 +00:00
Jonathan Gibbons
cdedede9ca
8237916: Bad copyright line in a jshell source file
...
Reviewed-by: vromero
2020-01-27 16:19:25 -08:00
Leo Jiang
b94b082727
8237465: JDK 14 L10n resource files update - msg drop 10
...
Reviewed-by: naoto
2020-01-22 22:37:36 +08:00
Jonathan Gibbons
9ec4001d87
8237058: Update all nroff manpages for JDK 14 release
...
Reviewed-by: dholmes
2020-01-14 15:01:34 -08:00
Jan Lahoda
6fc159f17c
8236715: JShell: Records with errors are not properly corraled
...
Correctly corralling record classes, and providing correct messages to the user.
Reviewed-by: rfield, vromero
2020-01-13 10:49:58 +01:00
Robert Field
dca6e34397
8210527: JShell: NullPointerException in jdk.jshell.Eval.translateExceptionStack
...
8232855: jshell missing word in /help help
Reviewed-by: jlahoda
2019-12-11 14:39:04 -08:00
Jan Lahoda
308aea3e0b
8235474: JShell does not handle records properly
...
Reviewed-by: vromero, rfield
2019-12-11 13:08:42 +01:00
Vicente Romero
827e5e3226
8225054: Compiler implementation for records
...
8225052: javax.lang.model support for records
8225053: Preview APIs support for records
8225055: Javadoc for records
8226314: com.sun.source support for records
8227113: Specification for java.lang.Record
8233526: JVM support for records
Implement records in the compiler and the JVM, including serialization, reflection and APIs support
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: mcimadamore, briangoetz, alanb, darcy, chegar, jrose, jlahoda, coleenp, dholmes, lfoltan, mchung, sadayapalam, hannesw, sspitsyn
2019-12-04 15:57:39 -05:00
Joe Darcy
48f186bb62
8231545: Suppress warnings on non-serializable instance fields in jdk.jshell module
...
Reviewed-by: rfield
2019-10-01 20:07:30 -07:00
Robert Field
6fe98143bc
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-14 20:30:10 -07: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
Robert Field
4bc1fdf83c
8199623: JShell: corralling not restored on drop
...
Reviewed-by: jlahoda
2019-06-03 08:21:04 -07:00
Robert Field
50d54d86cd
8225151: JShell API: Fix position of @jls tag
...
Reviewed-by: jjg
2019-06-03 07:46:47 -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
Jonathan Gibbons
d2ad9dabdf
8225134: Update man-page files
...
Reviewed-by: erikj, mchung
2019-05-31 17:27:28 -07:00
Joe Darcy
6930e80c31
8224175: Fix inconsistencies in @jls and @jvms tags
...
Reviewed-by: jjg, rfield
2019-05-20 17:29:44 -07:00
Jonathan Gibbons
2ad2cce6e0
8223663: Update links for tool guides
...
Reviewed-by: alanb, erikj, darcy
2019-05-20 10:57:57 -07:00
Robert Field
8d98b75f47
8223595: Consider updating jdk.jshell module description
...
Conform to module summary standards
Reviewed-by: jlahoda
2019-05-17 12:52:46 -07: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
Jan Lahoda
ef4cde4a24
8215244: jdk/jshell/ToolBasicTest.java testHistoryReference failed
...
Mark history entries from previous sessions with timestamp that is definitelly in the past.
Reviewed-by: rfield
2019-01-11 10:46:29 +01:00
Leo Jiang
0486227784
8215994: JDK 12 l10n resource file update - msg drop 10
...
Reviewed-by: billyh, ssadetsky, naoto
2019-01-09 00:25:41 -08:00
Jan Lahoda
c526b4b225
8215438: jshell tool: Ctrl-D causes EOF
...
Properly handling EndOfFileException so that jshell can be closed with Ctrl-D.
Reviewed-by: rfield
2019-01-08 16:31:27 +01:00
Robert Field
2ebc9f99e5
8215099: jshell tool: /help representation of ctrl/meta characters inconsistent
...
Reviewed-by: jlahoda
2018-12-15 17:13:39 -08:00
Jan Lahoda
35bd56fcdf
8215243: JShell tests failing intermitently with \"Problem cleaning up the following threads:\"
...
Do not reset closed state in the StopDetectingInputStream.write
Reviewed-by: rfield
2018-12-13 08:26:07 +01:00
Jan Lahoda
cc116b1259
8214491: Upgrade to JLine 3.9.0
...
Upgrading JLine to 3.9.0 and updating jshell and jjs to the new JLine.
Reviewed-by: rfield, sundar
2018-12-11 11:29:28 +01:00
Robert Field
020877da03
8213725: JShell NullPointerException due to class file with unexpected package
...
Reviewed-by: jlahoda
2018-11-29 17:45:29 -08:00
Robert Field
37ef084d73
8210808: jshell tool: only considers the first snippet of the external editor
...
Reviewed-by: jlahoda, sundar
2018-10-29 08:34:33 -07:00
Robert Field
0d815c2677
8211694: JShell: Redeclared variable should be reset
...
Reviewed-by: sundar
2018-10-24 21:17:30 -07:00
Robert Field
dafc483475
8210959: JShell fails and exits when statement throws an exception whose message contains a '%'
...
Reviewed-by: jlahoda
2018-10-22 09:26:50 -07:00
Robert Field
749916b897
8210923: JShell: support for switch expressions
...
Reviewed-by: jlahoda
2018-10-22 08:30:39 -07:00
Robert Field
f4e1502e03
8210596: jshell does not support raw string literals
...
Reviewed-by: jlahoda, jlaskey
2018-09-17 08:37:47 -07:00
Jan Lahoda
b3b644438e
8206986: Compiler support for Switch Expressions (Preview)
...
8207405: Compiler Tree API support for Switch Expressions (Preview)
Support for switch expression, switch with rules and multiple constants for cases.
Reviewed-by: jjg, mcimadamore, vromero
2018-08-29 09:36:17 +02:00
Leo Jiang
6c703b8589
8207948: JDK 11 L10n resource file update msg drop 10
...
Reviewed-by: naoto
2018-07-25 22:48:53 -07:00
Jan Lahoda
aabea5d599
8203827: Upgrade JLine to 2.14.6
...
Reviewed-by: alanb, hannesw, rfield
2018-06-01 13:04:30 +02:00
Chris Yin
7166041796
8202690: jdk/jshell/ToolBasicTest.java failed in testOpenFileOverHttp() and testOpenLocalFileUrl()
...
Reviewed-by: rfield, jlahoda
2018-05-08 09:51:42 +08:00
Michal Vala
1e0c45b250
8199912: jshell tool: /open from URI
...
Reviewed-by: rfield
2018-05-04 23:19:10 -07:00
Robert Field
ac44a19694
8199193: jshell tool: Add support for preview features
...
Reviewed-by: sundar
2018-04-23 09:01:03 -07:00
Vicente Romero
6a2e0a5a01
8198314: javac hidden options violate standard syntax for options
...
Reviewed-by: jjg
2018-04-03 23:58:52 -04:00
Robert Field
4ecc488704
8198801: JShell: user exception chained cause not retained
...
Reviewed-by: jlahoda
2018-04-03 13:27:58 -07:00
Shinya Yoshida
4b6cd06e3d
8199762: JShell API: Failed to detect override when snippet to be overridden has been changed before
...
Reviewed-by: rfield
2018-03-24 14:43:04 +09:00
Phil Race
d2e6289c0b
Merge
2018-02-26 10:36:34 -08:00
Phil Race
31dabd4d7f
Merge
2018-02-20 21:49:06 -08:00
Vicente Romero
4b6ab35c85
8198479: JDK build is broken by 8194892
...
Reviewed-by: sundar
2018-02-21 00:29:04 -05:00
Phil Race
89cb6a90d2
Merge
2018-02-20 13:30:49 -08:00
Vicente Romero
2591c21c01
8194892: add compiler support for local-variable syntax for lambda parameters
...
Reviewed-by: mcimadamore
2018-02-20 11:45:16 -05:00
Robert Field
4aa85f9489
8196133: JShell crashes when attempting to use bad source file in class path
...
Reviewed-by: jlahoda
2018-02-16 16:18:55 -08:00
Robert Field
b2ed2bda60
8198573: JShell: class replace loses instances
...
Reviewed-by: jlahoda
2018-02-23 10:49:56 -08:00
Robert Field
f23f23fc76
8166232: jshell tool: cannot access previous history
...
Reviewed-by: jlahoda
2018-02-23 10:25:22 -08:00
Lana Steuck
845f7823de
Merge
2018-02-09 02:23:34 +00:00
Yue Liu
751fa92e41
8196383: JDK 10 L10n resource file update - msgdrop 20
...
Reviewed-by: naoto
2018-02-06 22:26:13 -08:00
Vicente Romero
5f7d996632
8196403: remove the remaining use of string keys for errors and warnings in the compiler
...
Reviewed-by: mcimadamore, jlahoda
2018-02-02 07:43:54 -05:00
Jan Lahoda
e332323760
8191842: JShell: Inferred type information is lost when assigning types to a \"var\"
...
For vars, upgrading all anonymous classes to member classes; stripping intersection types from fields before writing.
Reviewed-by: rfield
2018-01-19 17:11:52 +01:00
Goetz Lindenmaier
22762d1cdc
8189102: All tools should support -?, -h and --help
...
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini
2018-01-16 08:48:34 +01:00
Li Jiang
cc269bbcc4
8194717: JDK10 L10n resource file update - msgdrop 10
...
Reviewed-by: joehw
2018-01-14 22:25:53 -08:00
Robert Field
ec203d777d
8179858: jshell tool: sync nomenclature from reference to online /help
...
Reviewed-by: dlsmith, jjg
2018-01-04 12:24:56 -08:00
Alan Bateman
7b054f30b8
8193758: Update copyright headers of files in src tree that are missing Classpath exception
...
Reviewed-by: mchung, mr, jjg, iris, prr
2017-12-19 10:03:36 +00:00
Phil Race
4b727d4f18
Merge
2017-12-13 10:25:38 -08:00
Phil Race
ee9c644643
Merge
2017-12-11 10:08:51 -08:00
Robert Field
e08ffc05d9
8192863: jshell tool: /<id><tab> gives "No such command"
...
Reviewed-by: jlahoda
2017-12-07 13:23:18 -08:00
Jan Lahoda
17b766fb1d
8191636: [Windows] jshell tool: Wrong character in /env class-path command crashes jshell
...
Fixing handling of invalid paths.
Reviewed-by: rfield
2017-12-13 11:27:28 +01:00
Robert Field
5252da0f37
8192979: jshell tool: Online help text for commands is confusing
...
Reviewed-by: jlahoda
2017-12-05 11:04:42 -08:00
Maurizio Cimadamore
686d74f11e
8189749: Devise strategy for making source level checks more uniform
...
Create a 'feature' enum which is responsible for handling source version checks and related diagnostic generation
Reviewed-by: jjg, jlahoda
2017-12-04 17:54:49 +00:00
Jan Lahoda
9f07305ab6
8189248: Jshell: error with mutually dependent snippets, when one must be replaced
...
Ensuring proper imports are generated for mutually dependent snippets if one of them is replaced.
Reviewed-by: rfield
2017-12-07 19:24:27 +01:00
Phil Race
dcaa7f90ba
Merge
2017-11-27 10:35:05 -08:00
Robert Field
c942c5de6b
8190939: JShell: gives a compiler error evaluating an expression of inaccessible type
...
Reviewed-by: jlahoda
2017-11-24 16:55:18 -08:00
Jan Lahoda
fea6c39ce2
8178109: More useful documentation on /help
...
For /help <command/subject>, show the help for the command/subject directly.
Reviewed-by: rfield
2017-11-23 19:44:13 +01:00
Robert Field
c0689879a7
8177076: jshell tool: allow non-zero /exit
...
8190383: JShell API: no way for the jshell tool to report exit status to provider
Reviewed-by: jlahoda
2017-11-14 19:33:37 -08:00
Robert Field
846d6be95c
8172154: jshell tool: make all IMPORTS.jsh generated at build time
...
Reviewed-by: jlahoda
2017-11-14 10:45:22 -08:00
Phil Race
158e69f6ec
Merge
2017-11-03 09:56:02 -07:00
Robert Field
022c618af9
8188072: JShell: NPE in SourceCodeAnalysis.completionSuggestions()
...
Reviewed-by: jlahoda
2017-11-02 11:09:28 -07:00
Robert Field
7ce7347fd2
8179856: jshell tool: not suitable for pipeline use
...
8186708: jshell tool: bad load file garbles message and does not abort
Reviewed-by: jlahoda
2017-10-24 20:33:36 -07:00
Robert Field
19fbc4c08c
8187359: JShell: Give comprehensible error when user method name matches Object method
...
Reviewed-by: jlahoda
2017-10-20 19:08:25 -07:00
Jan Lahoda
f66b1c7a8b
8186694: JShell: speed-up compilation by reusing compiler instances
...
Generalizing ReusableContext and using it in JShell to speed up processing.
Reviewed-by: mcimadamore, rfield
2017-09-01 14:04:20 +02:00
Jan Lahoda
a36938e082
8188225: AST could be improved in presence of var types
...
Adding a better start pos for vars; always adding a synthetic type tree to vars.
Reviewed-by: mcimadamore
2017-10-06 17:18:03 +02:00
Maurizio Cimadamore
c825188cd8
8177466: Add compiler support for local variable type-inference
...
Add support for 'var' in implicitly typed local variable declarations
Reviewed-by: vromero, jlahoda
2017-09-26 12:52:53 +01:00
Erik Joelsson
3789983e89
8187443: Forest Consolidation: Move files to unified layout
...
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00
Jan Lahoda
e44c7feff9
8189595: jshell tool: line redrawn on each completion
...
Reviewed-by: rfield
2017-11-02 10:09:34 +01:00