Mercurial > hg > openjdk > jdk9 > langtools
changeset 1147:9350d0498d21
7119032: (javac) increase visibility of JavacParser methods to improve subtyping
Reviewed-by: jjg
Contributed-by: jan.lahoda@oracle.com
author | ksrini |
---|---|
date | Fri, 09 Dec 2011 08:40:40 -0800 |
parents | abfa0d8ea803 |
children | e7d5e1a7cde5 |
files | src/share/classes/com/sun/tools/javac/parser/JavacParser.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Wed Dec 07 10:47:46 2011 -0800 +++ b/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Fri Dec 09 08:40:40 2011 -0800 @@ -2604,7 +2604,7 @@ * @param mods The modifiers starting the class declaration * @param dc The documentation comment for the class, or null. */ - JCClassDecl classDeclaration(JCModifiers mods, String dc) { + protected JCClassDecl classDeclaration(JCModifiers mods, String dc) { int pos = token.pos; accept(CLASS); Name name = ident(); @@ -2633,7 +2633,7 @@ * @param mods The modifiers starting the interface declaration * @param dc The documentation comment for the interface, or null. */ - JCClassDecl interfaceDeclaration(JCModifiers mods, String dc) { + protected JCClassDecl interfaceDeclaration(JCModifiers mods, String dc) { int pos = token.pos; accept(INTERFACE); Name name = ident(); @@ -2656,7 +2656,7 @@ * @param mods The modifiers starting the enum declaration * @param dc The documentation comment for the enum, or null. */ - JCClassDecl enumDeclaration(JCModifiers mods, String dc) { + protected JCClassDecl enumDeclaration(JCModifiers mods, String dc) { int pos = token.pos; accept(ENUM); Name name = ident(); @@ -2878,7 +2878,7 @@ * ConstructorDeclaratorRest = * "(" FormalParameterListOpt ")" [THROWS TypeList] MethodBody */ - JCTree methodDeclaratorRest(int pos, + protected JCTree methodDeclaratorRest(int pos, JCModifiers mods, JCExpression type, Name name,