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 200055 - Cannot run contrib/javahints tests after changing the module code
Summary: Cannot run contrib/javahints tests after changing the module code
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks: 196642
  Show dependency tree
 
Reported: 2011-07-11 16:56 UTC by Jan Lahoda
Modified: 2011-07-12 14:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Ant output (6.29 KB, text/plain)
2011-07-11 16:56 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2011-07-11 16:56:53 UTC
Created attachment 109371 [details]
Ant output

recent checkout of jet-main (0c55b0f2140f) and contrib (83d13f873ba5). Build done as:
ant clean && ant -Dcluster.config=basic

Steps to reproduce:
1. Comment out or delete the following workaround code in contrib/javahints/build.xml:
    <target name="do-unit-test-build" depends="-fix-testdist,projectized.do-unit-test-build" />
    <target name="-fix-testdist">
        <echo>${nb_all}/nbbuild/build/testdist/extralibs/${module.jar.basename}</echo>
        <delete file="${nb_all}/nbbuild/build/testdist/extralibs/${module.jar.basename}" />
    </target>
2. Open the "TypoDetector" class.
3. Run "Test File" (Ctrl-F6).
4. Add space at the very begginig of the TypoDetector.java and delete, save.
5. Run "Test File" (Ctrl-F6). The build crashes (see attached log).

Something similar applies also to contrib/java.ext.editor. This makes developing in contrib extremely annoying and I had to implement the above mentioned workaround for contrib/javahints and contrib/java.ext.editor.
Comment 1 Jesse Glick 2011-07-11 18:04:26 UTC
core-main #247863ac9ab0
Comment 2 Jesse Glick 2011-07-11 18:06:02 UTC
Only applied to modules in main/contrib. Workarounds removed in contrib #de7220c3ee3a.
Comment 3 Quality Engineering 2011-07-12 14:18:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/247863ac9ab0
User: Jesse Glick <jglick@netbeans.org>
Log: #200055: Cannot run contrib/javahints tests after changing the module code