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.
Summary: | By adding the new project the NumberFormatException occured | ||
---|---|---|---|
Product: | projects | Reporter: | rudyment <rudyment> |
Component: | Ant | Assignee: | Jesse Glick <jglick> |
Status: | CLOSED WORKSFORME | ||
Severity: | blocker | CC: | jlahoda, lahodaj |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41535 | ||
Attachments: | Zipped messages.log file |
Description
rudyment
2004-07-16 12:27:32 UTC
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 |