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: | Editor allows int, float, double, long but JC-classic VM does not support them | ||
---|---|---|---|
Product: | javacard | Reporter: | dkuzmin |
Component: | Java Card | Assignee: | _ tboudreau <tboudreau> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 163794 | ||
Bug Blocks: |
Description
dkuzmin
2009-12-07 06:58:52 UTC
Nothing I can do about this. NetBeans internally uses javac, and Ant uses it to compile; javac recognizes int as a keyword and compiles it. Fixing this would at a minimum, require support from the Java module in the form of implementing issue 163794. Probably the right way to fix it would be: - Java Card RI ships its own patched javac so compilation will fail even when run by Ant - Java Platform module enhanced to allow a platform to specify some unsupported keywords / language features - Java source module enhanced to look for unsupported keywords / language features - Javac enhanced to use list of unsupported keywords/language features Reducing to P3 - the build process will fail if you are using ints in a classic project. There is no way to fix this from the Java Card side. Fixed - jcproject now uses hard-coded annotation processor to mark such things as errors. Project can still be compiled, but packager prevents deployment. |