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: | ClassCastException in generated bytecode | ||
---|---|---|---|
Product: | java | Reporter: | _ briansmith <briansmith> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ briansmith
2002-07-16 06:30:43 UTC
Note, that this is very likely an error in my code and I merely reported it because Martin said that no exceptions should ever originate from the generated bytecode. The cause of the exception was code like this: void foo(Attribute attr, MofPackage pkg) { attr.refSetValue("type", pkg); } Obviously, this was an error in my code. But I believe that you need to check for TypeMismatchException before the generated bytecode is called (per Martin's comment quoted above). You are absolutely right Brian. Thanks. Should be fixed. |