-
Bug
-
Resolution: Fixed
-
P4
-
None
-
None
-
b11
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8370226 | 17.0.18-oracle | Joakim Nordström | P4 | Resolved | Fixed | master |
In jabswitch, main is defined as `void main()`, which requires an explicit exit call whenever an error occurs, and extra error checking code on our part. Visual C++ will automatically convert all instances of `void main()` to return 0 in all cases anyway, and there isn't anything gained from using this custom signature when the same can be achieved by simply returning the error value normally, so I propose we simply change it to the regular `int main` signature
- backported by
-
JDK-8370226 jabswitch main() should avoid calling exit explicitly
-
- Resolved
-
- relates to
-
JDK-8288293 Windows/gcc Port
-
- Draft
-