Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSC should check classpath files for changes #84

Closed
scabug opened this issue Sep 11, 2007 · 3 comments
Closed

FSC should check classpath files for changes #84

scabug opened this issue Sep 11, 2007 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Sep 11, 2007

Aladdin: [http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=768 contrib 768]

== Code ==

edit test.java:

   class Foo {
     public static void foo(int x) {}
   }

compile test.java:

   > javac test.java

edit test.scala:

   object Bar {
     Foo.foo(0)
   }

compile test.scala with FSC:

   > fsc -reset
   > fsc -cp . test.scala

edit test.java:

   class Foo {
     public static void foo(String x) {}
   }

compile test.java:

   > javac test.java

edit test.scala:

   object Bar {
     Foo.foo("test")
   }

compile test.scala with FSC:

   > fsc -cp . test.scala

== What happened ==

Last call to FSC results in:

test.scala:2: error: type mismatch;
 found   : java.lang.String("1")
 required: Int
        Foo.foo("1")
                ^
one error found

FSC is cacheing the first version of the java-compiled classfile. This bug can be quite difficult to track down if you're not expecting it!

== What expected ==

FSC should keep track of the last modification date of all external classfiles it reads in, and reload those with a more recent modification date than that stored.

@scabug
Copy link
Author

scabug commented Sep 11, 2007

Imported From: https://issues.scala-lang.org/browse/SI-84?orig=1
Reporter: @michelou

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone postponed deleted

@SethTisue
Copy link
Member

fsc is unmaintained and likely to be removed entirely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants