Summary: | Warn when compiling for 1.4 against a 1.3 library. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | John Arthorne <john.arthorne> | ||||
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
Status: | RESOLVED WORKSFORME | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | markus.kell.r | ||||
Version: | 3.0 | ||||||
Target Milestone: | 3.0 M3 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
John Arthorne
2003-07-24 10:32:27 EDT
I do not see this error (using the VM J9SC build 20030714a). However, could you look at your installed JRE definition to see if the problem may be related to bug 40673. Is it missing libraries? This is likely a different problem. What compilation preferences do you have for the project the snippet is compiled in? i.e. anything special? Created attachment 5548 [details]
Project compiler preferences
I've figured it out. That project had the compiler compliance level set to 1.4, although I'm using a 1.3 VM. So I was doing something wrong, but I think there should have been a better warning somewhere (from the compiler?). There are two problems - when compiling against 1.3 with 1.4 compliance, there should be a compiler error (I will move this bug there). The runtime issue is ours - i.e. running 1.4 files against a 1.3 VM (already filed bug 38319). Did you enable the existing warning ? Preferences > Java > Compiler > Build path > Incompatible Required Binaries Closing, please reopen if suggested warning does not work. I'm wondering if "Incompatible required binaries" should be a warning by default instead of ignore. In my case I just got an obscure failure when running the program, and it took some investigation and help from Darin to figure out what was wrong. More discussions about this warning: bug 390446. |