Deprecate VASSAL.launch.install?

Can we deprecate the entire VASSAL.launch.install package now? I’m not
aware of anything in it still in use.

I think it’s okay to deprecate. Did you remove the Create Module Installer action from the editor? That’s the only thing that might still use it.

rk

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Rodney Kinney”:

Yes, that’s gone.

I’m having trouble deprecating them, as it turns out. javac seems to
have a hard time figuring out that two deprecated clases which refer
to each other should produce no warning.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

So, this is quite annoying. Sun’s Java compiler gives you warnings
about using deprecated classes from within other deprecated classes.
If I have these two classes, I get a deprecation warning from the
Foo ctor, regardless of the fact that both Foo and Bar are deprecated
and that I’ve explicitly said to suppress all warnings:

/** @deprecated */
@Deprecated
@SuppressWarnings("all")
public class Foo {
  public Foo(Bar bar) {
  }
}

/** @deprecated */
@Deprecated
@SuppressWarnings("all")
public class Bar {
}

Thus, it appears that there’s no way to deprecate a package without
suffering through loads of warnings after that. ARGH!

Did you try deprecating the calling method instead of the enclosing class? (i.e. in your example, mark Foo’s constructor as @Deprecated)

rk

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Rodney Kinney”:

Yes, at one point I had an @Deprecated on every single block in the example.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)