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: java.lang.String cannot be cast to java.lang.Number | ||
---|---|---|---|
Product: | java | Reporter: | aldobrucale <aldobrucale> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | mmirilovic, mpetras, yardus |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 201151 |
Attachments: |
stacktrace
patched nb-javac |
Description
aldobrucale
2013-06-04 08:34:42 UTC
Created attachment 135305 [details]
stacktrace
Is the issue reproducible with a clean userdir? Do you have a reproducible test case? Thanks. As soon as i kill my m2/repository, netbeans will throw this all time long. Its really annoying! *** Bug 233232 has been marked as a duplicate of this bug. *** Unfortunately, I'm not able to reproduce the problem. Could you please provide a reproducible test case? Thanks. This happens every time I open a certain Java source file (J2EE entity bean). I tried to use the trick of starting with a clean userdir. So I did not close the problematic file (to make the IDE open it after the next startup), shut the IDE down, deleted the "userdir" and started the IDE again. It did not help, the exception occurred again. I cannot provide the problematic source code file but I can help with finding the cause - e.g. by installing a custom patch with extensive logging (preferred) or by trying to find the root cause by reducing it progressively (pretty much time-consuming for me). I reopened this bug because it has almost 20 duplicates and I because I want to help fix it. Created attachment 140173 [details]
patched nb-javac
Fine Marian, if you are willing to help please replace the original nb-javac-impl.jar (located in java/modules/ext) with the patched version that should add more information to the ClassCastExceptions being thrown. Then try to reproduce the problem and attach the additional information provided. Thanks. I did not get the exception with the patched nb-javac. When I replaced it with the original nb-javac from NB 7.4 Beta, I got the exception again. Maybe the bug is already fixed in recent development versions of NB 7.4? I downloaded and installed dev. version of NetBeans 7.4 (build 201309180002) and installed the patched nb-javac-impl.jar there. But I did not get any exception. Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1. |