Mantis - OCaml-Java
Erweiterte Problemanzeige
127 Absturz immer 2013-12-06 11:50 2014-01-28 22:09
nunogaspar  
xclerc  
normal  
erledigt 2.0-early-access6  
erledigt  
keine    
keine 2.0-early-access10  
0000127: Wrappers generated with errors
I am able to successfully generate a Wrappers class, however when trying to compile it yields an error. For instance,

ocamlwrap Batteries.cmi Base.cmi
javac -cp PainlessLib.jar BaseWrapper.java
ocamlwrap Batteries.cmi Base.cmi Binding.cmi
javac -cp PainlessLib.jar BindingWrapper.java
ocamlwrap Batteries.cmi Base.cmi Binding.cmi Interface.cmi
javac -cp PainlessLib.jar InterfaceWrapper.java

yields

InterfaceWrapper.java:159: error: illegal start of type
    public static OCamlFunction2<interface, interface, OCamlBool> beq_interface$closure() {
                                 ^
InterfaceWrapper.java:159: error: <identifier> expected
    public static OCamlFunction2<interface, interface, OCamlBool> beq_interface$closure() {
                                          ^

....

100 errors

I am not sure how to reduce this problem for easy replication. In any case I send the involved files.
Problem-Historie
2013-12-06 11:50 nunogaspar Neues Problem
2014-01-28 22:09 xclerc Problemnotiz hinzugefügt: 0000284
2014-01-28 22:09 xclerc Status neu => erledigt
2014-01-28 22:09 xclerc Behoben in Version => 2.0-early-access10
2014-01-28 22:09 xclerc Lösung offen => erledigt
2014-01-28 22:09 xclerc Bearbeitung durch => xclerc

Notiz
(0000284)
xclerc   
2014-01-28 22:09   
ocamlwrap now "escapes" Java keywords.