Bug 11 : warn about writing non-1.1 code
Last modified: 2009-10-29 05:03




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P4
Severity:
enhancement

 

Reporter:
fry
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-05-12 18:53
figure out a way to link against the 1.1 libraries so that people don't
inadvertently make non-1.1 (ms java) compatible code.

not a priority as of beta because 1.3+ is required, but will be once P2D is
finished.
Additional Comment #1 From fry 2005-05-12 18:55
there's also a faq item about this, once fixed, need to remove that:
If you get a "ClassCastException" when trying to run your code in a
browser, you're probably trying to run non-Java 1.1 compliant code. This
means any classes that didn't exist in java 1.1. Or, if if you're exporting
as applet, variables that are 'final int' need to be 'static final int',
otherwise they'll have trouble on a maching that only has Java 1.1
installed (i.e. running Microsoft's Java on Windows). You should also avoid
using "final" variables inside of methods, since those aren't supported by
Microsoft's VM (and that's the one most widely installed).
Additional Comment #2 From fry 2005-05-12 18:55
jikes won't do it just by setting -target to 1.1.
Additional Comment #3 From fry 2005-07-15 15:08
Additional Comment #4 From fry 2008-10-21 11:23
No longer an issue because we've dropped 1.1 support a long while ago.