Skip to content

Commit

Permalink
#37 Fixed that plugin would not compile under Photon.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertZenz committed Jun 28, 2018
1 parent 8a40d04 commit 30caa60
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down

0 comments on commit 30caa60

Please sign in to comment.