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 I try to parse invalid type name using Type.parse (e.g. I can pass "." as a parameter, which means I call Type.parse(".")) and get a valid Type object. But after I try to call .compareTo, I will get an IllegalArgumentException. This bug is related to bug http://www.netbeans.org/bugs-cgi/show_bug.cgi?id=8605
I suggest to correct this bug with this patch: Index: openide/src/org/openide/src/Type.java =================================================================== RCS file: /cvs/openide/src/org/openide/src/Type.java,v retrieving revision 1.16 diff -r1.16 Type.java 227c227,229 < while (tok2.hasMoreTokens()) { --- > if (!tok2.hasMoreTokens()) > throw new IllegalArgumentException(); > do { 231c233 < } --- > }while (tok2.hasMoreTokens());
The second attempt worked fine, Tomas ;-) Thanks a lot.
[010221_2] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.