changeset 55385:93c8b30e4755 records-and-sealed

allow sealed classes in jshell
author vromero
date Mon, 25 Mar 2019 10:32:18 -0400
parents cc3d1484e813
children 72b856dc0a05
files src/jdk.jshell/share/classes/jdk/jshell/CompletenessAnalyzer.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/jshell/CompletenessAnalyzer.java	Sun Mar 24 18:03:46 2019 -0400
+++ b/src/jdk.jshell/share/classes/jdk/jshell/CompletenessAnalyzer.java	Mon Mar 25 10:32:18 2019 -0400
@@ -193,6 +193,8 @@
         UNDERSCORE(TokenKind.UNDERSCORE, XERRO),  //  _
         CLASS(TokenKind.CLASS, XEXPR|XDECL1|XBRACESNEEDED),  //  class decl (MAPPED: DOTCLASS)
         RECORD(TokenKind.RECORD, XEXPR|XDECL1),  //  record decl (MAPPED: DOTCLASS)
+        SEALED(TokenKind.SEALED, XEXPR|XDECL1),  //  sealed class decl (MAPPED: DOTCLASS)
+        PERMITS(TokenKind.PERMITS, XEXPR|XDECL),  // permits classlist
         MONKEYS_AT(TokenKind.MONKEYS_AT, XEXPR|XDECL1),  //  @
         IMPORT(TokenKind.IMPORT, XDECL1|XSTART),  //  import -- consider declaration
         SEMI(TokenKind.SEMI, XSTMT1|XTERM|XSTART),  //  ;