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.
Build: NetBeans IDE Dev (Build 201302131522) VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20 OS: Mac OS X User Comments: jag: Just typed "enter" in the editor Stacktrace: java.lang.AssertionError at com.sun.tools.javac.comp.Attr.visitTree(Attr.java:3951) at com.sun.tools.javac.tree.JCTree$Visitor.visitCatch(JCTree.java:2513) at com.sun.tools.javac.tree.JCTree$JCCatch.accept(JCTree.java:1188) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:605) at com.sun.tools.javac.comp.Attr.visitErroneous(Attr.java:3944) at com.sun.tools.javac.tree.JCTree$JCErroneous.accept(JCTree.java:2363)
Created attachment 131403 [details] stacktrace
Created attachment 131442 [details] stacktrace Just sent error report
accidentally added a non-Throwable arg to a catch statement
Created attachment 131664 [details] stacktrace
Created attachment 131762 [details] stacktrace
Created attachment 131778 [details] stacktrace
Created attachment 131786 [details] stacktrace Simply coding along, typed a { to begin a compound statement; @Override public SimpleMetaData getTableInfo(String tableName) { try { DatabaseMetaData meta = getConnection().getMetaData(); ResultSet schemas = meta.getTables(null, null, tableName, null); if (schemas.next()) { <=- typed this brace } catch (SQLException e) { throw new RuntimeException("Unable to access database", e); } return null; } }
Created attachment 131787 [details] stacktrace pasted; ResultSet rs = entityManagerFactory().dbDriver.getConnection().createStatement().executeQuery( "SELECT * FROM " + tableName + " WHERE 1=0"); ResultSetMetaData metaData = rs.getMetaData(); int colCount = metaData.getColumnCount(); for (int i = 1; i <= colCount; i++) { into; public SimpleMetaData getTableInfo(String tableName) { try { DatabaseMetaData meta = getConnection().getMetaData(); ResultSet schemas = meta.getTables(null, null, tableName, null); if (schemas.next()) { ResultSet rs = entityManagerFactory().dbDriver.getConnection().createStatement().executeQuery( "SELECT * FROM " + tableName + " WHERE 1=0"); ResultSetMetaData metaData = rs.getMetaData(); int colCount = metaData.getColumnCount(); for (int i = 1; i <= colCount; i++) { } else { return null; } } catch (SQLException e) { throw new RuntimeException("Unable to access database", e); } r
Created attachment 131788 [details] stacktrace Typed an { again, snippet; public Object select(TableData table, Object key, TableColumn where) { String stmt="SELECT * FROM ?"; if (key!=null) { stmt+=" WHERE ?=?"; }try { PreparedStatement ps=getConnection().prepareStatement(stmt); ps.setString(1, table.tableName()); if (key != null) { ps.setString(2, where.colName()); ps.setObject(3, key); } ResultSet rs=ps.executeQuery(); // Now build an array of all entries while (rs.next()) { <=- Typed this "{" } catch (SQLException e) { throw new RuntimeException(e); } return null; }
Created attachment 131849 [details] stacktrace I opened brace. After this brace I have few lines of comments and closing brace of catch. I wanted add one more closing brace but got this error. Smth like this: if (){ // Comments // } catch
Created attachment 131976 [details] stacktrace Moving braces around, making code (very) temporarily ill-formed.
Created attachment 131977 [details] stacktrace Wrote construction like this one: new LinkTerUser.class
Created attachment 132490 [details] stacktrace Trying to type try {
Created attachment 132536 [details] Dump file requested by error dialog.
Created attachment 132537 [details] stacktrace Editing a TestNG class.
Created attachment 132607 [details] stacktrace Pasted some code in a Java file.
Created attachment 132667 [details] stacktrace Had introduced a new if-statement which temporarily made the file syntactically malformed.
Created attachment 132789 [details] stacktrace Deleted some code in Try part of try catch statement
Created attachment 132828 [details] stacktrace
Created attachment 132843 [details] stacktrace In the middle of editing.
Created attachment 132863 [details] stacktrace Writen in a Java-File: "try " (while tryieng to write the "}", this Exception occured) Remote-Debugging was running.
Created attachment 132864 [details] stacktrace
Created attachment 133146 [details] stacktrace Typing
Almost 100 dups, isn't this close to beeing P2 by now?
Already fixed. *** This bug has been marked as a duplicate of bug 227420 ***
Cool! Can the fix get merged to the daily builds?