Skip to content

Commit 30caa60

Browse files
committed
#37 Fixed that plugin would not compile under Photon.
1 parent 8a40d04 commit 30caa60

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/DecompileUtil.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ public static String deleteOneEmptyLine( String origSrc )
173173
public static void mapSource(SourceMapper sourceMapper, IType type, char[] source, IBinaryType info)
174174
{
175175
try {
176-
sourceMapper.mapSource(type, source, info );
176+
ReflectionUtils.invokeMethod( sourceMapper, "mapSource", new Class[]{ //$NON-NLS-1$
177+
IType.class, char[].class, IBinaryType.class
178+
}, new Object[]{
179+
type, source, info
180+
} );
177181
} catch (final NoSuchMethodError e) {
178182
// API changed with Java 9 support (#daa227e4f5b7af888572a286c4f973b7a167ff2e)
179183
ReflectionUtils.invokeMethod( sourceMapper, "mapSourceSwitch", new Class[]{ //$NON-NLS-1$

0 commit comments

Comments
 (0)