Comments (2)
Current work around:
access.getIndex(getterName, new Class[] {})
and fall back to (for more similar potential issus):
final Method reflect = clazz.getDeclaredMethod(getterName);
return reflect.invoke(e);
from reflectasm.
Per the javadocs, getIndex(String)
"Returns the index of the first method with the specified name." You need to specify the parameters if your method has multiple names. It may be nice to sort the methods by number of arguments, please feel free to make a PR if you'd like that.
from reflectasm.
Related Issues (20)
- Class versions V1_5 or less must use F_NEW frames. HOT 3
- class loaded by urlclassloader and cannot be cast to com.esotericsoftware.reflectasm.MethodAccess HOT 2
- Warning with Spring Boot 2.1.6, Java 11, and GraphQL HOT 1
- Class cannot be created (the no-arg constructor is private) HOT 1
- why FieldAccess can't get private Field? HOT 1
- Unable to access methods on the Object class HOT 3
- MethodAccess.invoke takes a lot physical memory
- java.lang.UnsupportedOperationException HOT 2
- Message about F_NEW frames when testing against version 9.1 of asm HOT 1
- Failure of test testAutoUnloadClassloaders HOT 2
- Why not support private field at FieldAccess? HOT 1
- how can i get construct with parameter by ConstructorAccess HOT 1
- Scala 3 lazy val implementation breaks FieldAccess reflection
- not work on JDK11+
- Test failures with OpenJDK17: probably ClassLoader evolutions since OpenJDK11 HOT 8
- Is it possible to invoke static method in interface
- ClassLoaderTest.testAutoUnloadClassloaders is flaky HOT 2
- java.lang.UnsupportedOperationException
- If a class has dozens or more properties, reflectasm performance is slower than java native performance HOT 1
- conflct with ASM framwork which is likes Jacoco
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflectasm.