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: | IllegalArgumentException: / | ||
---|---|---|---|
Product: | javacard | Reporter: | Oleg Khokhlov <ovk> |
Component: | Java Card | Assignee: | issues@mobility <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jglick, jtulach |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 172179 |
Attachments: | stacktrace |
Description
Oleg Khokhlov
2010-08-26 13:30:42 UTC
Created attachment 101692 [details]
stacktrace
User error? "/" is not valid name for a file. core-main#6786f5a2830e Integrated into 'main-golden', will be available in build *201008310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6786f5a2830e User: Jaroslav Tulach <jtulach@netbeans.org> Log: #189914: Is IOException better than IllegalStateArgument one? I think the fix is wrong and should be reverted. The Javadoc for createData specifically prohibits slashes; attempts to call methods with invalid arguments should be rejected with IllegalArgumentException. The real bug is probably in the JavaCard template wizard, which should reject such illegal file names using a localized error message; the current fix will just let the wizard be finished and then display a different kind of exception later. Define "wrong"! Throwing IOException instead of not documented ISE is imho better, although not 100% compatible change. I want to keep it. If you believe the JavaCard module shall be fixed, reopen and reassign. IAE is more appropriate than IOE for arguments passed to a method which directly contradict its stated prerequisites, when no actual I/O has even been performed. Note that the IOE is documented to be thrown for other reasons. The correct behavior is to throw IAE as before, and also document it. Anyway there is still a bug open in JC. Reassigning a bunch of bugs still assigned to me - I haven't worked for Oracle in almost a year. Uy... I *am* the default assignee for javacard... Fixed in a1380b2a9bb7 Integrated into 'main-golden', will be available in build *201105290401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2ac04bfd680d User: tboudreau@netbeans.org Log: #189906, #189914 - minor low hanging fruit in javacard; added friend module (soon to be added to contrib) |