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.
ant -f lexer/build.xml ant -f openide/util/build.xml clean netbeans ant -f lexer/build.xml Deleted 8 out of date files in 0 seconds Compiling 47 source files to /space/src/nb_all/lexer/build/classes /space/src/nb_all/lexer/src/org/netbeans/lib/lexer/TokenHierarchyOperation.java:770: <T,ET>embeddedTokenList(org.netbeans.lib.lexer.TokenList<T>,int,org.netbeans.api.lexer.Language<ET>) in org.netbeans.lib.lexer.EmbeddingContainer cannot be applied to (org.netbeans.lib.lexer.TokenList<capture of ?>,int,org.netbeans.api.lexer.Language<capture of ?>) EmbeddedTokenList<?> etl = EmbeddingContainer.embeddedTokenList(tokenList, indexes[i], languagePath.language(i)); ^ 1 error BUILD FAILED Looks like a javac bug - does not occur when using JDK 6 for compilation. Breaking trunk incremental builds frequently.
Caused, I guess, by mmetelka's recent changes in the Lexer API.
Apologies. Checking in TokenHierarchyOperation.java; /cvs/lexer/src/org/netbeans/lib/lexer/TokenHierarchyOperation.java,v <-- TokenHierarchyOperation.java new revision: 1.30; previous revision: 1.29
Thanks, workaround looks reasonable. Not sure whether this should be merged to release60. Unlikely to affect official builds, which should be clean builds, but could possibly affect developers working on that branch in the future.
A simpler fix (just a variable for Language<?> is enough): Checking in TokenHierarchyOperation.java; /cvs/lexer/src/org/netbeans/lib/lexer/TokenHierarchyOperation.java,v <-- TokenHierarchyOperation.java new revision: 1.31; previous revision: 1.30 I will integrate to release60 too.
I would like to integrate the latest fix into release60 to prevent possible build failures. There is NO change in functionality so it should not cause any regression.
Visual diff: http://www.netbeans.org/source/browse/lexer/src/org/netbeans/lib/lexer/TokenHierarchyOperation.java.diff?r1=1.29&r2=1.31
Fix looks safe to me.
Integrated in release60: Checking in src/org/netbeans/lib/lexer/TokenHierarchyOperation.java; /cvs/lexer/src/org/netbeans/lib/lexer/TokenHierarchyOperation.java,v <-- TokenHierarchyOperation.java new revision: 1.29.2.1; previous revision: 1.29
v/c