Skip to content

Commit 8aacbb4

Browse files
committed
Unwildcard java.util in gc.java, update ACKNOWLEDGEMENTS with Java sizeof, and make sure we shadow the java sizeof in jarjar
1 parent 5795b05 commit 8aacbb4

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

ACKNOWLEDGMENTS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Jython links the following libraries:
3535
* Mock Runner, licensed under the Apache 1.1 license
3636
* Netty 4, licensed under the Apache 2.0 license from the Netty project
3737
* PyPy datetime module, licensed under the MIT License from the PyPy project
38+
* Java sizeof, licensed under the Apache 2.0 License from the Apache Software Foundation
3839

3940
Jython follows closely the Python language and its reference
4041
implementation CPython, as created by Guido van Rossum.

build.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,10 @@ The readme text for the next release will be like:
583583
<rule pattern="io.netty.**" result="org.python.netty.@1"/>
584584
<zipfileset src="extlibs/netty-transport-4.0.33.Final.jar" excludes="META-INF/**"/>
585585
<rule pattern="io.netty.**" result="org.python.netty.@1"/>
586-
<!-- these stub jars are pre-built in https://github.com/jnr/jffi/tree/master/archive
587-
and rarely if ever change -->
586+
<zipfileset src="${extlibs.dir}/java-sizeof-0.0.5.jar"/>
587+
<rule pattern="com.carrotsearch.sizeof.**" result="org.python.sizeof.@1"/>
588+
<!-- these stub jars are pre-built in https://github.com/jnr/jffi/tree/master/archive
589+
and rarely if ever change -->
588590
<zipfileset src="extlibs/jffi-arm-Linux.jar"/>
589591
<zipfileset src="extlibs/jffi-Darwin.jar"/>
590592
<zipfileset src="extlibs/jffi-i386-FreeBSD.jar"/>
@@ -605,7 +607,6 @@ The readme text for the next release will be like:
605607
<zipfileset src="extlibs/jffi-x86_64-Windows.jar"/>
606608
<!-- remainder of JNR, JFFI -->
607609
<zipfileset src="extlibs/jffi-1.2.10.jar"/>
608-
<zipfileset src="${extlibs.dir}/java-sizeof-0.0.5.jar"/>
609610
<zipfileset src="${extlibs.dir}/jnr-ffi-2.0.7.jar"/>
610611
<zipfileset src="${extlibs.dir}/jnr-netdb-1.1.5.jar"/>
611612
<zipfileset src="${extlibs.dir}/jnr-posix-3.0.23.jar"/>

src/org/python/modules/gc.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
package org.python.modules;
22

3-
import java.util.*;
3+
import java.util.Set;
4+
import java.util.List;
5+
import java.util.LinkedList;
6+
import java.util.ArrayList;
7+
import java.util.IdentityHashMap;
8+
import java.util.HashSet;
49
import java.util.concurrent.atomic.AtomicBoolean;
510
import java.lang.ref.Reference;
611
import java.lang.ref.ReferenceQueue;

0 commit comments

Comments
 (0)