This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | handle better "javac: invalid target release: 1.6" compilation error | ||
---|---|---|---|
Product: | javaee | Reporter: | Vince Kraemer <vkraemer> |
Component: | Web Project | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | dkonecny |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vince Kraemer
2009-05-28 20:13:16 UTC
Vince, I don't think this is P2 - you have to explicitly change your project's source level to 6 and later you are trying to run it on JDK5 so clearly user should be able to make a connection. If source level 6 would be default for projects created on JDK6 then I would agree with you that users may not be aware of what's happening and why suddenly compilation fails. I was about to move this issue to J2SE project but J2SE project seems to have a check for this: the project name is displayed in red color if you run the same scenario on J2SE Project which I guess is slightly better although there was no indication why the project is displayed in red. And trying to compile it you end up with the same error. Do you think drawing project name in red color would be enough? The steps are illustrative. If the project is shared between users (via cvs, hg or the like), steps 1,2,3 may be executed by user A; while steps 5,6,7 may be executed by user B... I don't think just drawing the project name in red is enough feedback... though it is earlier, which is a good start. This issue probably applies to each of the different Ant based project types that support a Source/Binary format property. I'm passing to J2SE project then - web/j2ee projects should just reuse/mirror Java behaviour. Once fixed in J2SE project the fix should be transplant to web/j2ee. Marking WONTFIX for j2se, may be valid for web project. The j2seproject solves this by marking the project as broken (red + badge) and marking the value of source level in the customizer as broken (red). (In reply to comment #4) > Marking WONTFIX for j2se, may be valid for web project. The j2seproject solves > this by marking the project as broken (red + badge) and marking the value of > source level in the customizer as broken (red). Web project could at least do the same: mark project as erroneous. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |