Commits

Fredrik Johansson  committed c9df010

Fixed bug in list of enums

  • Participants
  • Parent commits 87cbfdf

Comments (0)

Files changed (1)

File maven/protocol-generator-plugin/src/main/scripts/java_generator.rb

       elsif(enum?(list.obj_type))
         wi("int ordinal = ps.loadInt();",1)
         wi("#{ltype} _tmp = Enums.make#{ltype}(ordinal);",1)
-        wi("status.add(_tmp);",1)
+        wi("#{name}.add(_tmp);",1)
       else
         wi("#{ltype} _tmp = new #{ltype}();",1)
         wi("_tmp.load(ps);",1)