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.
When opening up some JavaHelp metadata, a warning pops up saying that the file might be binary when it fairly clearly is not.
Created attachment 17239 [details] file that IDE thinks is binary
The heuristic for recognizing binary file is implemented in DefaultDataObject. The problematic character is the copyright sign, but the heuristic is probably meant to accept it. The problem is the test at line 184: "arr[i] < 9", which is true for character codes 0-8 but also for characters above 128 (like (c)). I thing the intention was to accept everything above code 8. reassigning to DS and also ccing Yarda (after using blametool on the source file ;-)
Fixed in: loaders/src/org/openide/loaders/DefaultDataObject.java; new revision: 1.4; previous revision: 1.3 test/unit/src/org/openide/loaders/DefautDataObjectHasOpenTest.java; new revision: 1.3; previous revision: 1.2
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.