apl-cornell/fabric

Unused fabric.util.* import causes compiler bug in FabIL and Fabric

Opened this issue · 1 comments

Committed in 88c931a test cases in tests/regression/fabric/UnusedUtilImport.fab and tests/regression/fabric/UnusedUtilImport.fil.

Here's what I get:

# bin/filc -c tests/regression/fabil/UnusedUtilImport.fil
/{rest of path}/fabric/tests/regression/fabil/UnusedUtilImport.fil:1: 
    Class "fabric.util" not found.
import fabric.util.*;
^-------------------^

1 error.
null
# bin/fabc -c tests/regression/fabric/UnusedUtilImport.fab
/{rest of path}/fabric/tests/regression/fabric/UnusedUtilImport.fab:1:
    Package "fabric" not found.
import fabric.util.*;
^-------------------^

1 error.
null
# bin/fabc -c tests/regression/fabric/UnusedUtilImport.fab -cp classes
/home/bluewres/research/fabric/tests/regression/fabric/UnusedUtilImport.fab:1:
    Class "fabric.util" not found.
import fabric.util.*;
^-------------------^

1 error.
null

It's worth noting that compiling with the rt-classes on the classpath for fabric works fine, however.

K33TY commented

Seems this is true for all other unused imports ending with .* that I've seen thus far, I didn't get hung up on the error this time because I knew about it...