Rename kotlin.reflect.IllegalAccessException -> IllegalPropertyAccessException
The former name clashes with java.lang.IllegalAccessException and proved to be inconvenient because it should always be qualified in the source. Also use java.lang exception's message as kotlin.reflect exception's message
This commit is contained in:
@@ -34,7 +34,7 @@ public class Reflection {
|
||||
catch (ClassCastException e) { impl = null; }
|
||||
catch (ClassNotFoundException e) { impl = null; }
|
||||
catch (InstantiationException e) { impl = null; }
|
||||
catch (java.lang.IllegalAccessException e) { impl = null; }
|
||||
catch (IllegalAccessException e) { impl = null; }
|
||||
|
||||
factory = impl != null ? impl : new ReflectionFactory();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user