From 30caa60be86fd0761f6c4d53ce289e16af14badf Mon Sep 17 00:00:00 2001 From: Robert Zenz Date: Thu, 28 Jun 2018 21:33:32 +0200 Subject: [PATCH] #37 Fixed that plugin would not compile under Photon. --- .../src/org/sf/feeling/decompiler/util/DecompileUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/DecompileUtil.java b/org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/DecompileUtil.java index 9dddcee6..7d869b8a 100644 --- a/org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/DecompileUtil.java +++ b/org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/DecompileUtil.java @@ -173,7 +173,11 @@ public static String deleteOneEmptyLine( String origSrc ) public static void mapSource(SourceMapper sourceMapper, IType type, char[] source, IBinaryType info) { try { - sourceMapper.mapSource(type, source, info ); + ReflectionUtils.invokeMethod( sourceMapper, "mapSource", new Class[]{ //$NON-NLS-1$ + IType.class, char[].class, IBinaryType.class + }, new Object[]{ + type, source, info + } ); } catch (final NoSuchMethodError e) { // API changed with Java 9 support (#daa227e4f5b7af888572a286c4f973b7a167ff2e) ReflectionUtils.invokeMethod( sourceMapper, "mapSourceSwitch", new Class[]{ //$NON-NLS-1$