Bug with module_info in R10B-3

Bjorn Gustavsson <>
Tue Mar 22 08:51:11 CET 2005


The bug will be corrected in R10B-4.

/Bjorn

Dominic Williams <> writes:

> Hello,
> 
> The following bug appeared sometime after R9C, and is at least present
> in R10B-3 under Windows XP: when recompiling a modified module, its
> old exports appear to be kept by module_info.
> 
> E.g., after compiling test.erl:
> 
> -----------------
> -module(test).
> -export([foo/0]).
> 
> foo() -> ok.
> -----------------
> 
> test:module_info(exports) returns
> [{foo,0},{module_info,0},{module_info,1}]
> 
> After modifying and recompiling test.erl thus:
> 
> -----------------
> -module(test).
> -export([bar/0]).
> 
> bar() -> ok.
> -----------------
> 
> test:module_info(exports) now returns
> [{foo,0},{bar,0},{module_info,0},{module_info,1}]
> 
> Regards,
> 
> Dominic, on behalf of the www.xpdojo.org team.
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list