Well, dcevm.org domain is lost, so let's use com.github.dcevm for now.tags/light-jdk8u5+36
Manifest-Version: 1.0 | Manifest-Version: 1.0 | ||||
Can-Redefine-Classes: true | Can-Redefine-Classes: true | ||||
Agent-Class: org.dcevm.agent.InstrumentationAgent | |||||
Premain-Class: org.dcevm.agent.InstrumentationAgent | |||||
Agent-Class: com.github.dcevm.agent.InstrumentationAgent | |||||
Premain-Class: com.github.dcevm.agent.InstrumentationAgent |
package org.dcevm.agent; | |||||
package com.github.dcevm.agent; | |||||
import java.lang.instrument.Instrumentation; | import java.lang.instrument.Instrumentation; | ||||
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm; | |||||
package com.github.dcevm; | |||||
import java.lang.annotation.Retention; | import java.lang.annotation.Retention; | ||||
import java.lang.annotation.RetentionPolicy; | import java.lang.annotation.RetentionPolicy; |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm; | |||||
package com.github.dcevm; | |||||
import org.objectweb.asm.ClassReader; | import org.objectweb.asm.ClassReader; | ||||
import org.objectweb.asm.ClassWriter; | import org.objectweb.asm.ClassWriter; |
package com.github.dcevm; | |||||
import com.github.dcevm.agent.InstrumentationAgent; | |||||
import java.io.IOException; | |||||
import java.lang.instrument.ClassDefinition; | |||||
import java.lang.instrument.Instrumentation; | |||||
import java.lang.instrument.UnmodifiableClassException; | |||||
import java.util.Map; | |||||
public class InstrumentationRedefiner implements Redefiner { | |||||
public void redefineClasses(Map<Class<?>, byte[]> classes) throws ClassNotFoundException, UnmodifiableClassException { | |||||
Instrumentation instrumentation = InstrumentationAgent.INSTRUMENTATION; | |||||
if (instrumentation == null) { | |||||
throw new IllegalStateException("Instrumentation agent is not properly installed!"); | |||||
} | |||||
ClassDefinition[] definitions = new ClassDefinition[classes.size()]; | |||||
int i = 0; | |||||
for (Map.Entry<Class<?>, byte[]> entry : classes.entrySet()) { | |||||
definitions[i++] = new ClassDefinition(entry.getKey(), entry.getValue()); | |||||
} | |||||
instrumentation.redefineClasses(definitions); | |||||
} | |||||
@Override | |||||
public void close() throws IOException { | |||||
// Do nothing. | |||||
} | |||||
} |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm; | |||||
package com.github.dcevm; | |||||
import com.sun.jdi.Bootstrap; | import com.sun.jdi.Bootstrap; | ||||
import com.sun.jdi.ReferenceType; | import com.sun.jdi.ReferenceType; |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm; | |||||
package com.github.dcevm; | |||||
import java.io.Closeable; | import java.io.Closeable; | ||||
import java.lang.instrument.UnmodifiableClassException; | import java.lang.instrument.UnmodifiableClassException; |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm; | |||||
package com.github.dcevm; | |||||
import org.objectweb.asm.ClassVisitor; | import org.objectweb.asm.ClassVisitor; | ||||
import org.objectweb.asm.MethodVisitor; | import org.objectweb.asm.MethodVisitor; |
/* | |||||
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. | |||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |||||
* | |||||
* This code is free software; you can redistribute it and/or modify it | |||||
* under the terms of the GNU General Public License version 2 only, as | |||||
* published by the Free Software Foundation. | |||||
* | |||||
* This code is distributed in the hope that it will be useful, but WITHOUT | |||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |||||
* version 2 for more details (a copy is included in the LICENSE file that | |||||
* accompanied this code). | |||||
* | |||||
* You should have received a copy of the GNU General Public License version | |||||
* 2 along with this work; if not, write to the Free Software Foundation, | |||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |||||
* | |||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |||||
* or visit www.oracle.com if you need additional information or have any | |||||
* questions. | |||||
* | |||||
*/ | |||||
package org.dcevm; | |||||
import org.dcevm.agent.InstrumentationAgent; | |||||
import java.io.IOException; | |||||
import java.lang.instrument.ClassDefinition; | |||||
import java.lang.instrument.Instrumentation; | |||||
import java.lang.instrument.UnmodifiableClassException; | |||||
import java.util.Map; | |||||
public class InstrumentationRedefiner implements Redefiner { | |||||
public void redefineClasses(Map<Class<?>, byte[]> classes) throws ClassNotFoundException, UnmodifiableClassException { | |||||
Instrumentation instrumentation = InstrumentationAgent.INSTRUMENTATION; | |||||
if (instrumentation == null) { | |||||
throw new IllegalStateException("Instrumentation agent is not properly installed!"); | |||||
} | |||||
ClassDefinition[] definitions = new ClassDefinition[classes.size()]; | |||||
int i = 0; | |||||
for (Map.Entry<Class<?>, byte[]> entry : classes.entrySet()) { | |||||
definitions[i++] = new ClassDefinition(entry.getKey(), entry.getValue()); | |||||
} | |||||
instrumentation.redefineClasses(definitions); | |||||
} | |||||
@Override | |||||
public void close() throws IOException { | |||||
// Do nothing. | |||||
} | |||||
} |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test; | |||||
package com.github.dcevm.test; | |||||
import org.dcevm.test.body.BodyTestSuite; | |||||
import org.dcevm.test.eval.EvalTestSuite; | |||||
import org.dcevm.test.fields.FieldsTestSuite; | |||||
import org.dcevm.test.methods.MethodsTestSuite; | |||||
import org.dcevm.test.structural.StructuralTestSuite; | |||||
import com.github.dcevm.test.body.BodyTestSuite; | |||||
import com.github.dcevm.test.eval.EvalTestSuite; | |||||
import com.github.dcevm.test.fields.FieldsTestSuite; | |||||
import com.github.dcevm.test.methods.MethodsTestSuite; | |||||
import com.github.dcevm.test.structural.StructuralTestSuite; | |||||
import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||
import org.junit.runners.Suite; | import org.junit.runners.Suite; | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test; | |||||
package com.github.dcevm.test; | |||||
import junit.framework.Assert; | import junit.framework.Assert; | ||||
import org.dcevm.HotSwapTool; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import com.github.dcevm.HotSwapTool; | |||||
/** | /** | ||||
* Utility methods for unit testing. | * Utility methods for unit testing. |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.lang.reflect.Array; | import java.lang.reflect.Array; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||
import org.junit.runners.Suite; | import org.junit.runners.Suite; |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.dcevm.ClassRedefinitionPolicy; | |||||
import com.github.dcevm.ClassRedefinitionPolicy; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.io.PrintStream; | import java.io.PrintStream; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertFalse; | import static org.junit.Assert.assertFalse; | ||||
import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.util.List; | import java.util.List; | ||||
import static junit.framework.Assert.assertNull; | import static junit.framework.Assert.assertNull; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.body; | |||||
package com.github.dcevm.test.body; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.eval; | |||||
package com.github.dcevm.test.eval; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
/** | /** | ||||
* Adds an implemented interface to a class and tests whether an instance of this class can then really be treated as an instance of the interface. | * Adds an implemented interface to a class and tests whether an instance of this class can then really be treated as an instance of the interface. |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.eval; | |||||
package com.github.dcevm.test.eval; | |||||
import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||
import org.junit.runners.Suite; | import org.junit.runners.Suite; |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.eval; | |||||
package com.github.dcevm.test.eval; | |||||
import org.dcevm.HotSwapTool; | |||||
import com.github.dcevm.HotSwapTool; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
/** | /** | ||||
* @author Thomas Wuerthinger | * @author Thomas Wuerthinger |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.eval; | |||||
package com.github.dcevm.test.eval; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Ignore; | import org.junit.Ignore; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
import static org.junit.Assert.assertNotNull; | import static org.junit.Assert.assertNotNull; | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
/** | /** | ||||
* Complex field test. | * Complex field test. |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||
import org.junit.runners.Suite; | import org.junit.runners.Suite; |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.fields; | |||||
package com.github.dcevm.test.fields; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.util.Arrays; | import java.util.Arrays; | ||||
import java.util.List; | import java.util.List; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.lang.reflect.Field; | import java.lang.reflect.Field; | ||||
import java.lang.reflect.Method; | import java.lang.reflect.Method; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import junit.framework.Assert; | import junit.framework.Assert; | ||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.lang.ref.SoftReference; | import java.lang.ref.SoftReference; | ||||
import java.lang.reflect.Method; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import junit.framework.Assert; | import junit.framework.Assert; | ||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import junit.framework.Assert; | import junit.framework.Assert; | ||||
import org.junit.Before; | import org.junit.Before; | ||||
import java.lang.reflect.Method; | import java.lang.reflect.Method; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||
import org.junit.runners.Suite; | import org.junit.runners.Suite; |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |
package org.dcevm.test.structural; | |||||
package com.github.dcevm.test.structural; | |||||
import org.junit.Assert; | import org.junit.Assert; | ||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
/** | /** | ||||
* Test insertion and swap of anonymous classes. | * Test insertion and swap of anonymous classes. |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.structural; | |||||
package com.github.dcevm.test.structural; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.*; | import org.junit.*; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.*; | import static org.junit.Assert.*; | ||||
/** | /** |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.structural; | |||||
package com.github.dcevm.test.structural; | |||||
import org.dcevm.ClassRedefinitionPolicy; | |||||
import com.github.dcevm.ClassRedefinitionPolicy; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Ignore; | import org.junit.Ignore; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
/** | /** | ||||
* Smallest test case for redefining the interface java/lang/reflect/Type (causes java/lang/Class being redefined) | * Smallest test case for redefining the interface java/lang/reflect/Type (causes java/lang/Class being redefined) |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.structural; | |||||
package com.github.dcevm.test.structural; | |||||
import org.dcevm.ClassRedefinitionPolicy; | |||||
import com.github.dcevm.ClassRedefinitionPolicy; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Ignore; | import org.junit.Ignore; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** | ||||
} | } | ||||
public final String myTestFunction___() { | public final String myTestFunction___() { | ||||
return "org/dcevm/test"; | |||||
return "com/github/dcevm/test"; | |||||
} | } | ||||
public final native void notify___(); | public final native void notify___(); | ||||
//assertEquals("test", o.toString()); | //assertEquals("test", o.toString()); | ||||
assertEquals("org/dcevm/test", Helper.access(o)); | |||||
assertEquals("com/github/dcevm/test", Helper.access(o)); | |||||
__toVersion__(0); | __toVersion__(0); | ||||
__toVersion__(1); | __toVersion__(1); | ||||
__toVersion__(0); | __toVersion__(0); |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.structural; | |||||
package com.github.dcevm.test.structural; | |||||
import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||
import org.junit.runners.Suite; | import org.junit.runners.Suite; |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.structural; | |||||
package com.github.dcevm.test.structural; | |||||
import org.dcevm.test.TestUtil; | |||||
import com.github.dcevm.test.TestUtil; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
/** | /** | ||||
* Tests that change the type of the object references by the Java this pointer. | * Tests that change the type of the object references by the Java this pointer. |
* questions. | * questions. | ||||
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.util; | |||||
package com.github.dcevm.test.util; | |||||
import org.dcevm.HotSwapTool; | |||||
import com.github.dcevm.HotSwapTool; | |||||
/** | /** | ||||
* Shortcut methods for testing. Methods are named this way to make them more visible in the test code. | * Shortcut methods for testing. Methods are named this way to make them more visible in the test code. |
* | * | ||||
*/ | */ | ||||
package org.dcevm.test.methods; | |||||
package com.github.dcevm.test.methods; | |||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import static org.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static org.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; | |||||
import static com.github.dcevm.test.util.HotSwapTestHelper.__version__; | |||||
import static org.junit.Assert.assertEquals; | import static org.junit.Assert.assertEquals; | ||||
/** | /** |