WALA/com.ibm.wala.ide.jdt/source/com/ibm/wala/cast/java/translator/jdt/FakeExceptionTypeBinding.java

462 lines
12 KiB
Java
Raw Normal View History

/*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html.
*
* This file is a derivative of code released by the University of
* California under the terms listed below.
*
* WALA JDT Frontend is Copyright (c) 2008 The Regents of the
* University of California (Regents). Provided that this notice and
* the following two paragraphs are included in any distribution of
* Refinement Analysis Tools or its derivative work, Regents agrees
* not to assert any of Regents' copyright rights in Refinement
* Analysis Tools against recipient for recipient's reproduction,
* preparation of derivative works, public display, public
* performance, distribution or sublicensing of Refinement Analysis
* Tools and derivative works, in source code and object code form.
* This agreement not to assert does not confer, by implication,
* estoppel, or otherwise any license or rights in any intellectual
* property of Regents, including, but not limited to, any patents
* of Regents or Regents' employees.
*
* IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT,
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
* INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE
* AND ITS DOCUMENTATION, EVEN IF REGENTS HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE AND FURTHER DISCLAIMS ANY STATUTORY
* WARRANTY OF NON-INFRINGEMENT. THE SOFTWARE AND ACCOMPANYING
* DOCUMENTATION, IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS
* IS". REGENTS HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT,
* UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*/
package com.ibm.wala.cast.java.translator.jdt;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.dom.IAnnotationBinding;
import org.eclipse.jdt.core.dom.IBinding;
import org.eclipse.jdt.core.dom.IMethodBinding;
import org.eclipse.jdt.core.dom.IPackageBinding;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.IVariableBinding;
import com.ibm.wala.util.debug.Assertions;
/**
* This is a hack to get around the fact that AST.resolveWellKnownTypes() doesn't know about some implicitly declared exceptions,
* such as ArithmeticException (implicitly thrown in a division operation) and NullPointerException (implicitly thrown in a field
* access). We need to know the lineage of these types to determine possible catch targets.
*
* @author evan
*
*/
public class FakeExceptionTypeBinding implements ITypeBinding {
static public final FakeExceptionTypeBinding arithmetic = new FakeExceptionTypeBinding("Ljava/lang/ArithmeticException;");
static public final FakeExceptionTypeBinding nullPointer = new FakeExceptionTypeBinding("Ljava/lang/NullPointerException;");
static public final FakeExceptionTypeBinding classCast = new FakeExceptionTypeBinding("Ljava/lang/ClassCastException;");
static public final FakeExceptionTypeBinding noClassDef = new FakeExceptionTypeBinding("Ljava/lang/NoClassDefFoundError;");
static public final FakeExceptionTypeBinding initException = new FakeExceptionTypeBinding(
"Ljava/lang/ExceptionInInitializerError;");
static public final FakeExceptionTypeBinding outOfMemory = new FakeExceptionTypeBinding("Ljava/lang/OutOfMemoryError;");
private final String exceptionBinaryName;
private FakeExceptionTypeBinding(String exceptionBinaryName) {
this.exceptionBinaryName = exceptionBinaryName;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isAssignmentCompatible(ITypeBinding variableType) {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean equals(Object o) {
if (o instanceof FakeExceptionTypeBinding)
return this == o;
if (o instanceof ITypeBinding)
return ((ITypeBinding) o).getBinaryName().equals(exceptionBinaryName);
return false;
}
// --- rest not needed
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding createArrayType(int dimension) {
Assertions.UNREACHABLE("FakeExceptionTypeBinding createArrayType");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public String getBinaryName() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getBound() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getComponentType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public IVariableBinding[] getDeclaredFields() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public IMethodBinding[] getDeclaredMethods() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public int getDeclaredModifiers() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return 0;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding[] getDeclaredTypes() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getDeclaringClass() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public IMethodBinding getDeclaringMethod() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public int getDimensions() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return 0;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getElementType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getErasure() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding[] getInterfaces() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public int getModifiers() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return 0;
}
2013-06-25 15:57:37 +00:00
@Override
public String getName() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public IPackageBinding getPackage() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public String getQualifiedName() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getSuperclass() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding[] getTypeArguments() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding[] getTypeBounds() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getTypeDeclaration() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding[] getTypeParameters() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getWildcard() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isAnnotation() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isAnonymous() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isArray() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isCapture() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isCastCompatible(ITypeBinding type) {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isClass() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isEnum() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isFromSource() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isGenericType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isInterface() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isLocal() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isMember() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isNested() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isNullType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isParameterizedType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isPrimitive() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isRawType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isSubTypeCompatible(ITypeBinding type) {
String name = type.getBinaryName();
if (exceptionBinaryName.endsWith("Error;")) {
if (name.equals("Ljava/lang/Throwable;") || name.equals("Ljava/lang/Error;") || name.equals(exceptionBinaryName)) {
return true;
}
} else {
if (name.equals("Ljava/lang/Throwable;") || name.equals("Ljava/lang/Exception;")
|| name.equals("Ljava/lang/RuntimeException;") || name.equals(exceptionBinaryName)) {
return true;
}
}
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isTopLevel() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isTypeVariable() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isUpperbound() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isWildcardType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public IAnnotationBinding[] getAnnotations() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public IJavaElement getJavaElement() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public String getKey() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public int getKind() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return 0;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isDeprecated() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isEqualTo(IBinding binding) {
return this.equals(binding);
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isRecovered() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public boolean isSynthetic() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return false;
}
2013-06-25 15:57:37 +00:00
@Override
public ITypeBinding getGenericTypeOfWildcardType() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
2013-06-25 15:57:37 +00:00
@Override
public int getRank() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return 0;
}
new test to remind me that prototype no longer works with correlation tracking: com.ibm.wala.cast.js.rhino.test/harness-src/com/ibm/wala/cast/js/test/TestPrototypeCallGraphShapeRhino.java com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestPrototypeCallGraphShape.java com.ibm.wala.cast.js.test.data/examples-src/pages/prototype.html work (not yet finished) on fixes to property accesses for JavaScript: com.ibm.wala.cast/source/java/com/ibm/wala/cast/ipa/callgraph/AstSSAPropagationCallGraphBuilder.java com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/AstJavaSSAPropagationCallGraphBuilder.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/ipa/callgraph/JSSSAPropagationCallGraphBuilder.java currently unused tests to remind me to fix bugs: com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java com.ibm.wala.cast.js.test.data/examples-src/tests/loops.js com.ibm.wala.cast.js.test.data/examples-src/tests/primitive_strings.js fixes to exception handler code generation in JavaScript: com.ibm.wala.cast.js.rhino/source/com/ibm/wala/cast/js/translator/RhinoToAstTranslator.java com.ibm.wala.cast.js.test.data/examples-src/tests/try.js com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java fixes to make the system build on both juno and luna com.ibm.wala.cast.js.test.data/pom.xml pom.xml targets/e42/e42.target targets/e44/e44.target targets/pom.xml com.ibm.wala.core.tests/META-INF/MANIFEST.MF com.ibm.wala.dalvik.test/META-INF/MANIFEST.MF com.ibm.wala.ide.jdt.test/META-INF/MANIFEST.MF com.ibm.wala.ide.jdt/source/com/ibm/wala/cast/java/translator/jdt/FakeExceptionTypeBinding.java com.ibm.wala.ide.jdt/source/com/ibm/wala/ide/util/JavaEclipseProjectPath.java com.ibm.wala.ide.jsdt.tests/META-INF/MANIFEST.MF com.ibm.wala.ide.jsdt.tests/src/com/ibm/wala/ide/jsdt/tests/AbstractJSProjectScopeTest.java com.ibm.wala.ide/src/com/ibm/wala/ide/util/EclipseProjectPath.java com.ibm.wala.ide/src/com/ibm/wala/ide/util/ProgressMonitorDelegate.java beginnings of "pointer analysis" on top of field-based analysis com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/FlowGraph.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/PropVertex.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/RetVertex.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/VarVertex.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/VertexFactory.java com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/PointerAnalysis.java com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/cfa/ExceptionReturnValueKey.java fixes for crashes in correlartion tracking com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/ipa/callgraph/correlations/extraction/ClosureExtractor.java fixes for Dalvik IR generation com.ibm.wala.core/src/com/ibm/wala/cfg/BytecodeCFG.java com.ibm.wala.core/src/com/ibm/wala/cfg/ShrikeCFG.java com.ibm.wala.core/src/com/ibm/wala/ssa/SSACFG.java com.ibm.wala.dalvik.test/source/com/ibm/wala/dalvik/drivers/APKCallGraphDriver.java com.ibm.wala.dalvik.test/source/com/ibm/wala/dalvik/test/callGraph/JVMLDalvikComparison.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/classLoader/DexCFG.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/dex/instructions/UnaryOperation.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/ssa/AbstractIntRegisterMachine.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/ssa/DexSSABuilder.java fixes to stack map generation when instrumenting for Java 7 com.ibm.wala.shrike/src/com/ibm/wala/shrike/cg/DynamicCallGraph.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/ConstantInstruction.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/analysis/Analyzer.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/analysis/ClassHierarchy.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/analysis/Verifier.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/shrikeCT/ClassInstrumenter.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeCT/StackMapConstants.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeCT/StackMapTableReader.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeCT/StackMapTableWriter.java
2014-10-15 07:01:38 +00:00
// do not put @Override here, to avoid breaking compilation on Juno
2014-10-10 21:47:50 +00:00
public IMethodBinding getFunctionalInterfaceMethod() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
new test to remind me that prototype no longer works with correlation tracking: com.ibm.wala.cast.js.rhino.test/harness-src/com/ibm/wala/cast/js/test/TestPrototypeCallGraphShapeRhino.java com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestPrototypeCallGraphShape.java com.ibm.wala.cast.js.test.data/examples-src/pages/prototype.html work (not yet finished) on fixes to property accesses for JavaScript: com.ibm.wala.cast/source/java/com/ibm/wala/cast/ipa/callgraph/AstSSAPropagationCallGraphBuilder.java com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/AstJavaSSAPropagationCallGraphBuilder.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/ipa/callgraph/JSSSAPropagationCallGraphBuilder.java currently unused tests to remind me to fix bugs: com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java com.ibm.wala.cast.js.test.data/examples-src/tests/loops.js com.ibm.wala.cast.js.test.data/examples-src/tests/primitive_strings.js fixes to exception handler code generation in JavaScript: com.ibm.wala.cast.js.rhino/source/com/ibm/wala/cast/js/translator/RhinoToAstTranslator.java com.ibm.wala.cast.js.test.data/examples-src/tests/try.js com.ibm.wala.cast.js.test/harness-src/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java fixes to make the system build on both juno and luna com.ibm.wala.cast.js.test.data/pom.xml pom.xml targets/e42/e42.target targets/e44/e44.target targets/pom.xml com.ibm.wala.core.tests/META-INF/MANIFEST.MF com.ibm.wala.dalvik.test/META-INF/MANIFEST.MF com.ibm.wala.ide.jdt.test/META-INF/MANIFEST.MF com.ibm.wala.ide.jdt/source/com/ibm/wala/cast/java/translator/jdt/FakeExceptionTypeBinding.java com.ibm.wala.ide.jdt/source/com/ibm/wala/ide/util/JavaEclipseProjectPath.java com.ibm.wala.ide.jsdt.tests/META-INF/MANIFEST.MF com.ibm.wala.ide.jsdt.tests/src/com/ibm/wala/ide/jsdt/tests/AbstractJSProjectScopeTest.java com.ibm.wala.ide/src/com/ibm/wala/ide/util/EclipseProjectPath.java com.ibm.wala.ide/src/com/ibm/wala/ide/util/ProgressMonitorDelegate.java beginnings of "pointer analysis" on top of field-based analysis com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/FlowGraph.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/PropVertex.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/RetVertex.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/VarVertex.java com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/callgraph/fieldbased/flowgraph/vertices/VertexFactory.java com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/PointerAnalysis.java com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/propagation/cfa/ExceptionReturnValueKey.java fixes for crashes in correlartion tracking com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/ipa/callgraph/correlations/extraction/ClosureExtractor.java fixes for Dalvik IR generation com.ibm.wala.core/src/com/ibm/wala/cfg/BytecodeCFG.java com.ibm.wala.core/src/com/ibm/wala/cfg/ShrikeCFG.java com.ibm.wala.core/src/com/ibm/wala/ssa/SSACFG.java com.ibm.wala.dalvik.test/source/com/ibm/wala/dalvik/drivers/APKCallGraphDriver.java com.ibm.wala.dalvik.test/source/com/ibm/wala/dalvik/test/callGraph/JVMLDalvikComparison.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/classLoader/DexCFG.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/dex/instructions/UnaryOperation.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/ssa/AbstractIntRegisterMachine.java com.ibm.wala.dalvik/src/com/ibm/wala/dalvik/ssa/DexSSABuilder.java fixes to stack map generation when instrumenting for Java 7 com.ibm.wala.shrike/src/com/ibm/wala/shrike/cg/DynamicCallGraph.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/ConstantInstruction.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/analysis/Analyzer.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/analysis/ClassHierarchy.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/analysis/Verifier.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeBT/shrikeCT/ClassInstrumenter.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeCT/StackMapConstants.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeCT/StackMapTableReader.java com.ibm.wala.shrike/src/com/ibm/wala/shrikeCT/StackMapTableWriter.java
2014-10-15 07:01:38 +00:00
// do not put @Override here, to avoid breaking compilation on Juno
2014-10-10 21:47:50 +00:00
public IAnnotationBinding[] getTypeAnnotations() {
Assertions.UNREACHABLE("FakeExceptionTypeBinding ");
return null;
}
// I guess the comments above apply here as well...
public IBinding getDeclaringMember() {
// TODO Auto-generated method stub
return null;
}
}