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.

View | Details | Raw Unified | Return to bug 36966
Collapse All | Expand All

(-)core/bootstrap/src/org/netbeans/CLIHandler.java (-1 / +9 lines)
Lines 308-314 Link Here
308
                try {
308
                try {
309
                    SecureRandom.getInstance("SHA1PRNG").nextBytes(arr); // NOI18N
309
                    SecureRandom.getInstance("SHA1PRNG").nextBytes(arr); // NOI18N
310
                } catch (NoSuchAlgorithmException e) {
310
                } catch (NoSuchAlgorithmException e) {
311
                    assert false : e;
311
                    // #36966: IBM JDK doesn't have it.
312
                    try {
313
                        SecureRandom.getInstance("IBMSecureRandom").nextBytes(arr); // NOI18N
314
                    } catch (NoSuchAlgorithmException e2) {
315
                        // OK, disable server...
316
                        System.err.println("WARNING: remote IDE automation features cannot be cryptographically secured, so disabling; please reopen http://www.netbeans.org/issues/show_bug.cgi?id=36966"); // NOI18N
317
                        e.printStackTrace();
318
                        return new Status();
319
                    }
312
                }
320
                }
313
                
321
                
314
                Server server = new Server(arr, block, handlers, failOnUnknownOptions);
322
                Server server = new Server(arr, block, handlers, failOnUnknownOptions);

Return to bug 36966