remove old cglib-compat tests
diff --git a/pom.xml b/pom.xml
index a162ed5..c32c464 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,12 +80,7 @@
<!-- and for testing we need a few libraries
libs for which we use reflection for code, but direct dep for testing
-->
- <dependency>
- <groupId>cglib</groupId>
- <artifactId>cglib</artifactId>
- <version>3.1</version>
- <scope>test</scope>
- </dependency>
+
<!-- For testing TestNoClassDefFoundDeserializer -->
<dependency>
<groupId>javax.measure</groupId>
@@ -93,13 +88,6 @@
<version>0.9.2</version>
<scope>test</scope>
</dependency>
-
- <dependency> <!-- from core we just test for repackaged cglib, not hibernate proper -->
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-cglib-repack</artifactId>
- <version>2.1_3</version>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
diff --git a/release-notes/VERSION b/release-notes/VERSION
index a678cb9..dd31f4b 100644
--- a/release-notes/VERSION
+++ b/release-notes/VERSION
@@ -12,6 +12,7 @@
(reported by Charles A)
#700: Cannot Change Default Abstract Type Mapper from LinkedHashMap
(reported by wealdtech@github)
+- Remove old cglib compatibility tests; cause problems in Eclipse
2.5.2 (not yet released)
diff --git a/src/test/java/com/fasterxml/jackson/databind/interop/TestCglibUsage.java b/src/test/java/com/fasterxml/jackson/databind/interop/TestCglibUsage.java
deleted file mode 100644
index 3a0620b..0000000
--- a/src/test/java/com/fasterxml/jackson/databind/interop/TestCglibUsage.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.fasterxml.jackson.databind.interop;
-
-import java.lang.reflect.Method;
-import java.util.*;
-
-import net.sf.cglib.proxy.Enhancer;
-import net.sf.cglib.proxy.MethodInterceptor;
-import net.sf.cglib.proxy.MethodProxy;
-
-import com.fasterxml.jackson.databind.*;
-
-/**
- * Unit test for checking that we can serialize CGLib generated proxies.
- */
-public class TestCglibUsage extends BaseMapTest
-{
- interface BeanInterface {
- public int getX();
- }
-
- /*
- /**********************************************************
- /* Tests
- /**********************************************************
- */
-
- public void testSimpleProxied() throws Exception
- {
- Enhancer enh = new Enhancer();
- enh.setInterfaces(new Class[] { BeanInterface.class });
- enh.setCallback(new MethodInterceptor() {
- @Override
- public Object intercept(Object obj, Method method,
- Object[] args, MethodProxy proxy)
- throws Throwable
- {
- if ("getX".equals(method.getName ())) {
- return Integer.valueOf(13);
- }
- return proxy.invokeSuper(obj, args);
- }
- });
- BeanInterface bean = (BeanInterface) enh.create();
- ObjectMapper mapper = new ObjectMapper();
- Map<String,Object> result = writeAndMap(mapper, bean);
- assertEquals(1, result.size());
- assertEquals(Integer.valueOf(13), result.get("x"));
- }
-}
-
diff --git a/src/test/java/com/fasterxml/jackson/databind/interop/TestHibernate.java b/src/test/java/com/fasterxml/jackson/databind/interop/TestHibernate.java
deleted file mode 100644
index 48dc573..0000000
--- a/src/test/java/com/fasterxml/jackson/databind/interop/TestHibernate.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.fasterxml.jackson.databind.interop;
-
-import java.lang.reflect.Method;
-import java.util.*;
-
-import org.hibernate.repackage.cglib.proxy.Enhancer;
-import org.hibernate.repackage.cglib.proxy.MethodInterceptor;
-import org.hibernate.repackage.cglib.proxy.MethodProxy;
-
-import com.fasterxml.jackson.databind.*;
-
-/**
- * Basic tests covering Hibernate-compatibility features.
- */
-public class TestHibernate
- extends BaseMapTest
-{
- interface BeanInterfaceHib {
- public int getX();
- }
-
- /*
- /**********************************************************
- /* Tests
- /**********************************************************
- */
-
- /*
- * Unit test to test [JACKSON-177]
- */
- public void testHibernateCglib() throws Exception
- {
- /* 03-Sep-2010, tatu: This often fails form Eclipse (on some platforms like Mac OS X),
- * so let's only run it from Ant/CLI
- */
- if (!runsFromAnt()) {
- return;
- }
-
- Enhancer enh = new Enhancer();
- enh.setInterfaces(new Class[] { BeanInterfaceHib.class });
- enh.setCallback(new MethodInterceptor() {
- @Override
- public Object intercept(Object obj, Method method,
- Object[] args, MethodProxy proxy)
- throws Throwable
- {
- if ("getX".equals(method.getName ())) {
- return Integer.valueOf(13);
- }
- return proxy.invokeSuper(obj, args);
- }
- });
- BeanInterfaceHib bean = (BeanInterfaceHib) enh.create();
- ObjectMapper mapper = new ObjectMapper();
- Map<String,Object> result = writeAndMap(mapper, bean);
- assertEquals(1, result.size());
- assertEquals(Integer.valueOf(13), result.get("x"));
- }
-}
-