Skip to content

Commit f964dba

Browse files
Merge branch 'master' into javalib-plugin
2 parents be064f9 + ff842a8 commit f964dba

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

CHANGELOG

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
From 3.2 to 3.2.2
2+
-----------------
3+
Minor changes:
4+
* small improvements in the test directory
5+
* use Stdlib instead of Pervasives
6+
17
From 3.2 to 3.2.1
28
-----------------
39
Minor changes:

javalib.opam

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
opam-version: "2.0"
22
name: "javalib"
3-
version: "3.2.1"
4-
maintainer: "Nicolas Barré <nicolas.barre@irisa.fr>"
3+
version: "3.2.2"
4+
maintainer: "David Pichardie <david.pichardie@ens-rennes.fr>"
55
authors: "Javalib Development team"
66
homepage: "https://javalib-team.github.io/javalib/"
77
bug-reports: "https://github.com/javalib-team/javalib/issues"
8-
license: "LGPL-2.1 with OCaml linking exception"
8+
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
99
dev-repo: "git+https://github.com/javalib-team/javalib.git"
1010
build: [
1111
["./configure.sh" "-s" {ocaml:native-dynlink}]
@@ -16,7 +16,7 @@ depends: [
1616
"ocaml" {>= "4.08"}
1717
"conf-which" {build}
1818
"ocamlfind" {build}
19-
"camlzip" {>= "1.05"}
19+
"camlzip" {>= "1.11"}
2020
"extlib"
2121
"containers"
2222
]

src/META.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.2.1"
1+
version = "3.2.2"
22
description = "library to parse Java .class files"
33
archive(native) = "javalib.cmxa"
44
archive(byte) = "javalib.cma"

src/jFile.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ let lookup c : cp_unit -> JClassLow.jclass =
120120
| `dir d ->
121121
if is_file (Filename.concat d c)
122122
then
123-
let ch = open_in_bin (Filename.concat d c) in
123+
let ch = Stdlib.open_in_bin (Filename.concat d c) in
124124
JLib.IO.input_channel ch
125125
else raise Not_found
126126
| `jar jar ->
@@ -156,7 +156,7 @@ let write_class_low output_dir classe =
156156
(mkdir
157157
(Filename.concat output_dir (Filename.dirname c))
158158
0o755);
159-
let f = open_out_bin (Filename.concat output_dir c) in
159+
let f = Stdlib.open_out_bin (Filename.concat output_dir c) in
160160
let output = JLib.IO.output_channel f in
161161
JUnparse.unparse_class_low_level output classe;
162162
JLib.IO.close_out output
@@ -171,7 +171,7 @@ let dir_sep =
171171
| _ -> assert false (* Inspirated from filename.ml in the stdlib *)
172172

173173
let extract_class_name_from_file file =
174-
let input = JLib.IO.input_channel (open_in_bin file) in
174+
let input = JLib.IO.input_channel (Stdlib.open_in_bin file) in
175175
let c = JParse.parse_class_low_level input in
176176
JLib.IO.close_in input;
177177
let cname = c.j_name in
@@ -291,7 +291,7 @@ let fold_string class_path f file =
291291
try
292292
apply_to_dir_or_class
293293
(function c ->
294-
let ch = open_in_bin c in
294+
let ch = Stdlib.open_in_bin c in
295295
let input = JLib.IO.input_channel ch in
296296
let classe = JParse.parse_class_low_level input in
297297
JLib.IO.close_in input;

src/ptrees/ptset.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ let elements s =
335335
in
336336
(* unfortunately there is no easy way to get the elements in ascending
337337
order with little-endian Patricia trees *)
338-
List.sort compare (elements_aux [] s)
338+
List.sort Stdlib.compare (elements_aux [] s)
339339

340340
let split x s =
341341
let coll k (l, b, r) =
@@ -599,7 +599,7 @@ module Big = struct
599599
| Branch (_,_,l,r) -> elements_aux (elements_aux acc r) l
600600
in
601601
(* we still have to sort because of possible negative elements *)
602-
List.sort compare (elements_aux [] s)
602+
List.sort Stdlib.compare (elements_aux [] s)
603603

604604
let split x s =
605605
let coll k (l, b, r) =

tests/Makefile

+3-5
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ all:javatests java/javac java/unparsed
5050

5151
if [ -s .errors ]; then cat .errors >> /dev/stderr; exit 1; fi
5252

53-
javatests: javatests/huge javatests/jmods
53+
javatests: javatests/out javatests/jmods
5454
mkdir -p javatests
5555

56-
javatests/huge:
56+
javatests/out:
5757
mkdir -p javatests/out
58-
wget -r -nH --cut-dirs=4 -np --reject="*.html,*.tmp" -e robots=off \
59-
https://scm.gforge.inria.fr/anonscm/svn/javalib/tests/javatests/
6058

6159
javatests/jmods:
6260
mkdir -p javatests/jmods
@@ -71,4 +69,4 @@ java/unparsed:
7169

7270
clean cleantests:
7371
make -C src clean
74-
rm -rf javatests java/javac java/unparsed java/*.txt .errors
72+
rm -rf javatests/out javatests/jmods java/javac java/unparsed java/*.txt .errors

0 commit comments

Comments
 (0)