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 254274 - When generating class files for protocol buffer test, netbeans creates a folder labeled (regex) s[0-9]{1,3} in the main project directory.
Summary: When generating class files for protocol buffer test, netbeans creates a fold...
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 13:33 UTC by sschick
Modified: 2015-09-08 13:38 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 sschick 2015-08-11 13:33:09 UTC
If tests are run after netbeans has already built the project once and has not since been cleaned, a folder labeled like those in .cache/netbeans/8.0.2/index is created four levels above my test/classes folder in target, which happens to be in a central project folder. Running strace gives this section, which is the most relevant information I could find;
stat("/home/sschick/bcc/lib/core/target/test-classes/../../../../s145/java/14/classes/com/rajant/core/protoprefs/protos", 0x7f9c58382d70) = -1 ENOENT (No such file or directory)
stat("/home/sschick/bcc/lib/core/target/test-classes/../../../../s145/java/14/classes/com/rajant/core/protoprefs/protos", 0x7f9c58382d00) = -1 ENOENT (No such file or directory)
mkdir("/home/sschick/bcc/lib/core/target/test-classes/../../../../s145/java/14/classes/com/rajant/core/protoprefs/protos", 0777) = -1 ENOENT (No such file or directory)

There is no reason I can think of that anything should be looking for a cache folder under that listing, so this call seems broken, and would place the cache folder in the directory it is eventually constructed under. The created folder contains only the .class files of the .java file generated by the protocol buffers.
Comment 1 Theofanis Oikonomou 2015-09-08 13:38:03 UTC
no idea how to reproduce. Please reopen describing exact steps of how you ended up in this situation and ideally log file. Thank you for reporting