8254105: allow static nested declarations

Reviewed-by: mcimadamore
This commit is contained in:
Vicente Romero 2020-11-21 03:17:57 +00:00
parent 14de791d60
commit 9a19eb6918
25 changed files with 581 additions and 459 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,6 +22,8 @@
*/
// key: compiler.err.icls.cant.have.static.decl
// key: compiler.warn.source.no.system.modules.path
// options: -source 15
class InnerClassCantHaveStatic {
class Inner {