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.
1. Create web application with "Visual Web JSF" framework. 2. Add DB table to the page. 3. Open Page Bean. Result: Code generated after inserting of DB table is corrupted.
Created attachment 63087 [details] Sample project with corrupted Page Bean.
Hmmm...as soon as I create a VW project I am seeing a syntax error in Page1.jsp: Could not add one or more tag libraries. Did you see this? This may be the cause of the issue (not confirmed).
Actually it turns out to be some issue with java code generation: Steps: 1. Create a java class with content: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication10; /** */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here System.out.println(System.getProperty("os.name")); } } 2. Select System.getProperty("os.name") expression. 3. Invoke quick fix "Introduce variable". 4. Results in the source: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication10; /** */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { final String property = System.getProperty(/* * To change this template, choose Tools | Templates * and open the template in the editor. */); // TODO code application logic here System.out.println(property); } }
Please see issue #137564. *** This issue has been marked as a duplicate of 137564 ***
Fixed.
Verified with build 080623.