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 110462 - Files with -source 1.4 uncompilable
Summary: Files with -source 1.4 uncompilable
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 102365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-20 18:35 UTC by Jesse Glick
Modified: 2007-08-02 13:54 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 Jesse Glick 2007-07-20 18:35:55 UTC
070718. Open contrib/naming. You will see DOEnum.java marked with various errors where it refers to
org.openide.util.enum.* classes. The project customizer correctly reports its source level as 1.4. JavaScript
introspection of the NB process confirms that apisupport is doing nothing wrong:

f=org.openide.filesystems.FileUtil.toFileObject(new
java.io.File("/space/src/nb_all/contrib/naming/src/org/netbeans/core/naming/DOEnum.java"))
MasterFileObject@9565ce[space/src/nb_all/contrib/naming/src/org/netbeans/core/naming/DOEnum.java]
org.netbeans.api.java.queries.SourceLevelQuery.getSourceLevel(f)
1.4

And of course the file compiles OK.
Comment 1 Jan Lahoda 2007-07-21 10:49:47 UTC
The problem is that the RepositoryUpdater will not compile/index openide/util/enum (package org.openide.util.enum), as
the package name contains "enum" and RU:1924 (rev. 1.67) checks for org.openide.util.Utilities.isJavaIdentifier, which
is false for "enum".
Comment 2 Tomas Zezula 2007-07-23 16:31:20 UTC
Checking in org/netbeans/modules/java/source/usages/RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v  <--  RepositoryUpdater.java
new revision: 1.68; previous revision: 1.67
done
Comment 3 Tomas Zezula 2007-08-02 13:54:40 UTC
*** Issue 102365 has been marked as a duplicate of this issue. ***