Permalink
Browse files

* tests/java/parsing/GenericDoubleRight.java:

  • Loading branch information...
1 parent 1d8b4cd commit b8a085ab47b16546234d32b29301f06f4c6df24b @aryx aryx committed Sep 22, 2012
Showing with 16 additions and 1 deletion.
  1. +10 −1 lang_java/parsing/parsing_hacks_java.ml
  2. +6 −0 tests/java/parsing/GenericDoubleRight.java
@@ -37,6 +37,14 @@ let fix_tokens xs =
let rec aux env xs =
let depth_angle = env in
+ if depth_angle < 0
+ then begin
+ pr2_gen (List.hd xs);
+ (* failwith "depth < 0" *)
+ aux 0 xs
+ end
+ else
+
match xs with
| [] -> []
@@ -45,7 +53,8 @@ let fix_tokens xs =
*)
| IDENTIFIER (s, ii1)::LT ii2::xs when s =~ "^[A-Z]"->
IDENTIFIER (s, ii1)::LT2 ii2::aux (depth_angle + 1) xs
- | GT ii::xs ->
+
+ | GT ii::xs when depth_angle > 0 ->
GT ii::aux (depth_angle - 1) xs
(* transform >> into two > > *)
@@ -1,4 +1,10 @@
class X {
public List<List<Int>> x;
+
+ void main() {
+ Set<Entry<Integer, String>> set;
+ }
+
+
}

0 comments on commit b8a085a

Please sign in to comment.