You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by da...@apache.org on 2018/01/09 14:54:24 UTC

svn commit: r1820667 - in /felix/trunk/converter/converter/src/test/java/org/osgi/util/converter: MyGenericDTOWithVariables.java MyGenericInterface.java MyGenericInterfaceWithVariables.java

Author: davidb
Date: Tue Jan  9 14:54:24 2018
New Revision: 1820667

URL: http://svn.apache.org/viewvc?rev=1820667&view=rev
Log:
[converter] Avoid losing generics information in nested types

Committing some missing test classes that should have been included with the previous commit.

Added:
    felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericDTOWithVariables.java
    felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterface.java
    felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterfaceWithVariables.java

Added: felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericDTOWithVariables.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericDTOWithVariables.java?rev=1820667&view=auto
==============================================================================
--- felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericDTOWithVariables.java (added)
+++ felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericDTOWithVariables.java Tue Jan  9 14:54:24 2018
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.osgi.util.converter;
+
+import java.util.Set;
+
+import org.osgi.dto.DTO;
+
+public class MyGenericDTOWithVariables<T> extends DTO {
+    public Set<T> set;
+
+    public T raw;
+    
+    public T[] array;
+}

Added: felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterface.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterface.java?rev=1820667&view=auto
==============================================================================
--- felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterface.java (added)
+++ felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterface.java Tue Jan  9 14:54:24 2018
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.osgi.util.converter;
+
+import java.util.Set;
+
+public interface MyGenericInterface {
+    public Set<Character> charSet();
+}

Added: felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterfaceWithVariables.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterfaceWithVariables.java?rev=1820667&view=auto
==============================================================================
--- felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterfaceWithVariables.java (added)
+++ felix/trunk/converter/converter/src/test/java/org/osgi/util/converter/MyGenericInterfaceWithVariables.java Tue Jan  9 14:54:24 2018
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.osgi.util.converter;
+
+import java.util.Set;
+
+public interface MyGenericInterfaceWithVariables<T> {
+    public Set<T> set();
+
+    public T raw();
+    
+    public T[] array();
+}
\ No newline at end of file