Remove NoSuchMethodException emulation This emulation will be never thrown from GWT/J2CL and only relevant context is reflection code which is not supported as well. Per our earlier discussion we are removing the emulation. Change-Id: I1afb9460e75dde8bf42d4fcd735bc5e8447fb1f6 Review-Link: https://gwt-review.googlesource.com/#/c/21500/
diff --git a/tools/api-checker/config/gwt27_28userApi.conf b/tools/api-checker/config/gwt27_28userApi.conf index 297e668..c3530d4 100644 --- a/tools/api-checker/config/gwt27_28userApi.conf +++ b/tools/api-checker/config/gwt27_28userApi.conf
@@ -222,4 +222,7 @@ # Removed some JRE incompatible PriorityQueue APIs java.util.PriorityQueue::makeHeap(I) MISSING -java.util.PriorityQueue::mergeHeaps(I) MISSING \ No newline at end of file +java.util.PriorityQueue::mergeHeaps(I) MISSING + +# Remove reflection related API +java.lang.NoSuchMethodException MISSING
diff --git a/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java b/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java deleted file mode 100644 index b846cf2..0000000 --- a/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java +++ /dev/null
@@ -1,34 +0,0 @@ -/* - * Copyright 2011 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ -package java.lang; - -/** - * See <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NoSuchMethodException.html">the - * official Java API doc</a> for details. - * - * This exception is never thrown by GWT or GWT's libraries, as GWT does not support reflection. It - * is provided in GWT only for compatibility with user code that explicitly throws or catches it for - * non-reflection purposes. - */ -public class NoSuchMethodException extends Exception { - - public NoSuchMethodException() { - } - - public NoSuchMethodException(String message) { - super(message); - } -}