mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
Merge
This commit is contained in:
commit
555641ede5
68 changed files with 815 additions and 2206 deletions
|
@ -707,7 +707,9 @@ public abstract class Executable extends AccessibleObject
|
|||
Class<?> ownerClass = c.getDeclaringClass();
|
||||
TypeVariable<?>[] typeVars = c.getTypeParameters();
|
||||
|
||||
if (ownerClass == null) { // base case
|
||||
// base case, static nested classes, according to JLS 8.1.3, has no
|
||||
// enclosing instance, therefore its owner is not generified.
|
||||
if (ownerClass == null || Modifier.isStatic(c.getModifiers())) {
|
||||
if (typeVars.length == 0)
|
||||
return c;
|
||||
else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2021, 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
|
||||
|
@ -237,7 +237,8 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
0,
|
||||
length,
|
||||
length,
|
||||
index, segment);
|
||||
index << $LG_BYTES_PER_VALUE$,
|
||||
segment);
|
||||
}
|
||||
|
||||
public $Type$Buffer duplicate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue