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.
I wonted to add new, not main project. I selected the "Java Project with Existing Sources". After selecting folders I prssed "Finish" and NumberFormatException occured.
Created attachment 16292 [details] Zipped messages.log file
It seems to me that the EditableProperties try to decode some string with some strange unicode sequence. Passing to ant module for evaluation.
*** Issue 46233 has been marked as a duplicate of this issue. ***
Yes, but I have no idea how to reproduce that. I will improve the class to at least throw an IOException so the error is better.
I did find a bug that if the .properties file contained malformed Unicode escapes, a NFE would be thrown rather than handling the problem more gracefully. Reporter: beware that the properties file format requires \ to be escaped if it is to be treated literally e.g. as a file separator.
That fix: committed * Up-To-Date 1.8 ant/project/src/org/netbeans/spi/project/support/ant/EditableProperties.java committed * Up-To-Date 1.6 ant/project/test/unit/src/org/netbeans/spi/project/support/ant/EditablePropertiesTest.java committed * Up-To-Date 1.3 ant/project/test/unit/src/org/netbeans/spi/project/support/ant/data/test.properties EditableProperties now silently ignores malformed Unicode escapes (as it already ignored truncated Unicode escapes). Note that since java.util.Properties throws an IllegalArgumentException in such a case, property files with such a syntax error would be quite useless anyway.
closed