Skip to content

Commit f78df56

Browse files
authored
Merge pull request #36 from applandinc/mark-accessible_20201008
Make method accessible before invoking
2 parents 8005c87 + 29792d4 commit f78df56

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6-
## [0.4.2] - 2020-10-06
6+
## [0.4.3] - 2020-10-08
7+
### Fixed
8+
- ReflectiveType.invoke now makes the method accessible before trying to invoke it.
9+
10+
## [0.4.2] - 2020-10-06 (yanked)
711
### Added
812
- The new system property `appmap.debug.http` to show some debugging when handling
913
requests for `/_appmap/record`.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repositories {
2020
mavenCentral()
2121
}
2222

23-
version = '0.4.2'
23+
version = '0.4.3'
2424

2525
dependencies {
2626
implementation 'org.yaml:snakeyaml:1.25'

src/main/java/com/appland/appmap/reflect/ReflectiveType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ protected Method getMethod(String name, Class<?>... parameterTypes) {
2424

2525
protected Object invoke(Method method, Object... parameters) {
2626
try {
27+
method.setAccessible(true);
2728
return method.invoke(self, parameters);
2829
}
2930
catch (InvocationTargetException e) {

0 commit comments

Comments
 (0)