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.
Test description: Purpose: This suite describes compiling a building project Setup: Locate the directory, where are stored compiled classes. The location should be {userdir}/var/cache/index/{index_version}/sX/classes, where X is a decimal number Comments: The test cases should be performed in a row since they depends on result of previous case. Steps: Open class from the project Clean it Make sure CoS is enabled Make some modification and save Expected result: The related .class file is updated, but only in userdir, Need to Compile batch is not dispalyed. Compile actions are enabled Actual result: The cache dir is not created from Netbeans 8.1beta (I can see it in Netbeans 8.0.1). When I save the file the class is updated into the project dir and not into the userdir.
I linked also another test case to this issue because seems related. When I compile a copy from the cache folder to the project folder is expected but it seems that the cache folder is not created and that the code is directly compiled into the project folder instead to be copied from that folder.
The cache dir is correctly created in the ${cachedir}/index. Without the ${cachedir}/index nothing will work as the caches are used by all languages features. Also the COS behaviour is a bit complicated than the test spec: 1)The classes are copied to build/classes after the fist run 2)The incremental updates of classes in the build/classes after save file is done by COSSynchronizingIndexer immediately after java indexing. This behaviour is there from the NB 6.1, so the test spec in wrong.
Actually once project is cleaned the class file does not appear nowhere if COS is enabled. I am not really sure how does it work right now. I am monitoring the cache and it does not change since several minutes. No new files, no modified files. Product Version: NetBeans IDE Dev (Build 201508200002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
*** Bug 254519 has been marked as a duplicate of this bug. ***
Test spec fixed