]> source.dussan.org Git - javassist.git/commitdiff
changes test code because package java.rmi.activation.ActivationGroupDesc does not...
authorchibash <chiba@javassist.org>
Tue, 10 May 2022 09:21:13 +0000 (18:21 +0900)
committerchibash <chiba@javassist.org>
Tue, 10 May 2022 09:21:13 +0000 (18:21 +0900)
src/test/javassist/JvstTest2.java
src/test/test2/Inner.java
src/test/test2/Inner2.java [new file with mode: 0644]

index 0ea4571bc94121d37201efa4c51ab1c9026bd2d6..5d01961d7346d2b2c1f09f83bcebb4b9df662efa 100644 (file)
@@ -275,10 +275,8 @@ public class JvstTest2 extends JvstTestRoot {
         String src =
             "public void sampleMethod() throws Exception {"
           + "java.util.Properties props = new java.util.Properties();"
-          + "java.rmi.activation.ActivationGroupDesc.CommandEnvironment ace "
-          + " = null;"
-          + "java.rmi.activation.ActivationGroupDesc agd "
-          + " = new java.rmi.activation.ActivationGroupDesc(props,ace);}";
+          + "test2.Inner2.Child ace = null;"
+          + "test2.Inner2 agd = new test2.Inner2(props, ace);}";
         CtMethod newmethod = CtNewMethod.make(src, target);
         target.addMethod(newmethod);
 
index 15e086639088c66d7149eaf08c2e2bdf804f4c32..bfc9504425b8ec59adaa1a6ad28835ab700885e2 100644 (file)
@@ -4,9 +4,8 @@ package test2;
 public class Inner {
     public void sample() throws Exception {
         java.util.Properties props = new java.util.Properties();
-        java.rmi.activation.ActivationGroupDesc.CommandEnvironment ace = null;
-        java.rmi.activation.ActivationGroupDesc agd = new
-            java.rmi.activation.ActivationGroupDesc(props,ace);
+        test2.Inner2.Child ace = null;
+        test2.Inner2 agd = new test2.Inner2(props, ace);
     }
     public static void main(String args[]) {
         System.out.println("Inner");
diff --git a/src/test/test2/Inner2.java b/src/test/test2/Inner2.java
new file mode 100644 (file)
index 0000000..b9d8166
--- /dev/null
@@ -0,0 +1,23 @@
+package test2;
+
+/**
+ * Used by test2.Inner
+ */
+public class Inner2 {
+    public static class Child {
+        public int value;
+    }
+
+    private java.util.Properties p;
+    private Child c;
+
+    public Inner2(java.util.Properties props, Child child) {
+        p = props;
+        c = child;
+    }
+
+    public void print() {
+        System.out.println(p);
+        System.out.println(c);
+    }
+}