-
Enhancement
-
Resolution: Fixed
-
P4
-
23
We are seeing some evidence that `Method.hashCode` is hot in some enterprise stacks, notably Spring. Even though `Method.hashCode` is already quite small:
```
public int hashCode() {
return getDeclaringClass().getName().hashCode() ^ getName().hashCode();
}
```
...caching its result might still be a win.
```
public int hashCode() {
return getDeclaringClass().getName().hashCode() ^ getName().hashCode();
}
```
...caching its result might still be a win.
- relates to
-
JDK-8286288 java.lang.reflect.Method and Constructor hashCode implementation ignores significant properties
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/8ba9bc6f
-
Review(master) openjdk/jdk/19433