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 30471 - breaked testability - compilation of core/unit tests failed
Summary: breaked testability - compilation of core/unit tests failed
Status: VERIFIED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2003-01-29 11:49 UTC by Adam Sotona
Modified: 2008-12-22 18:27 UTC (History)
2 users (show)

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 Adam Sotona 2003-01-29 11:49:35 UTC
compile-one-dir:
    [javac] Compiling 54 source files
[test-compiler]
/space/xtest/cvs_nbdev/nb_all/core/test/unit/src/org/netbeans/core/NbKeymapTest.java:145:
addActionForKeyStrokeMap(java.util.HashMap) in
org.netbeans.core.NbKeymap cannot be applied to
(java.util.Map)
[test-compiler]        
km.addActionForKeyStrokeMap(m);
[test-compiler]           ^
[test-compiler]
/space/xtest/cvs_nbdev/nb_all/core/test/unit/src/org/netbeans/core/NbKeymapTest.java:155:
addActionForKeyStrokeMap(java.util.HashMap) in
org.netbeans.core.NbKeymap cannot be applied to
(java.util.Map)
[test-compiler]        
km.addActionForKeyStrokeMap(m);
[test-compiler]           ^
[test-compiler] Note: Some input files use or
override a deprecated API.
[test-compiler] Note: Recompile with -deprecation
for details.
[test-compiler] 2 errors

BUILD FAILED
Comment 1 _ ttran 2003-01-29 13:19:33 UTC
pzavadsky, jglick:  isn't this caused by the recent changes you made
in actions and keymaps?
Comment 2 Peter Zavadsky 2003-01-29 13:47:58 UTC
You have not synch NbKeymapTest and NbKeymap sources.

The problem is the tests are not running on updated core sources, the
method addActionForKeyStrokeMap was changed (NbKeymap revision 1.21)
to accept Map instead just HashMap. The change was commited at same
time like the test was introduced.
Comment 3 Jesse Glick 2003-01-29 14:58:16 UTC
Right, please always run on up-to-date sources...
Comment 4 Adam Sotona 2003-01-29 15:19:22 UTC
Tests are checked out with the same timestamp as build so that must be
some ghost in CVS :-)