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.

Bug 57072 - Global javac.source value does not take effect with NB Module Project syntax checking
Summary: Global javac.source value does not take effect with NB Module Project syntax ...
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-28 19:11 UTC by Nam Nguyen
Modified: 2005-03-28 22:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2005-03-28 19:11:47 UTC
- Define javac.source=1.5 in projectized.xml or some file imported by
projectized.xml.
- Open a projectA that import this projectized.xml
- Write a test target in projectA build.xml that just print out the value of
javac.source, to verify that it does take effect.
- Open a java source file and try adding code with 1.5 generic syntax like:
List<String> nameList = new ArrayList();
- Got syntax error red-underlining and tool-tip text of "generics are not
supported in -source 1.4 (try -source 1.5 to enable generic".

If I put javac.source=1.5 directly in nbproject/project.properties, I will not
get the 1.5 syntax error warning red underline.  However, requiring this to be
done by every project is not good.  We have to be able to set javac.source to a
a default value for all projects in an environment.
Comment 1 Jesse Glick 2005-03-28 22:01:03 UTC
Sorry, but for now the general baseline for NB-based modules is JDK 1.4 and if
you want 1.5, you can add one line to project.properties for affected modules.