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.
After upgrading JDK 1.7.0 from update 21 to update 25 my GUI beans no longer detect when they are in design time. The method Beans.isDesignTime used to return true but now it returns false.
Beans started to use ThreadGroupContext in Java 7 (not sure when exactly). We call Beans.setDesignTime(true) during IDE startup. Perhaps the ThreadGroupContext is different here for whatever reason than later when calling the beans (in EDT thread).
http://hg.netbeans.org/jet-main/rev/e3265c3010b0
Integrated into 'main-silver', will be available in build *201308090746* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e3265c3010b0 User: Tomas Pavek <tpavek@netbeans.org> Log: #234032: don't call Beans.setDesignTime in form module restore, might be in a different ThreadGroupContext
For the record, looks like the cause is related in the comment 5 [1] of issue 127935. (mbien from comment #5) > fyi, > this bug is fixed in jdk7, Beans.* works now AppContext sensitive > fix: > http://hg.openjdk.java.net/jdk7/swing/jdk/rev/27dabbdfdcac > > bug report: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6669869 [1] https://netbeans.org/bugzilla/show_bug.cgi?id=127935#c5