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.
From a discussion with Jano & Andrei: If a user has a table named String or something else - then our generated code could be problematic (I'd have to check about imports and whether it would need extra fully qualified names to compile), but it would surely be confusing. Do we want an RFE for this? Yes, please file an RFE. This is a good point, but I can imagine the check would be tricky.
Update: generated code does compile because "java.lang" prefix is added to those kinds of Strings.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss