mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8254105: allow static nested declarations
Reviewed-by: mcimadamore
This commit is contained in:
parent
14de791d60
commit
9a19eb6918
25 changed files with 581 additions and 459 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue