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.

Bug 234032 - Beans.isDesignTime returns false in design time since JDK 1.7.0_25.
Summary: Beans.isDesignTime returns false in design time since JDK 1.7.0_25.
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 15:53 UTC by gugrim
Modified: 2014-04-24 14:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gugrim 2013-08-06 15:53:08 UTC
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.
Comment 1 Tomas Pavek 2013-08-06 17:52:18 UTC
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).
Comment 2 Tomas Pavek 2013-08-07 12:07:26 UTC
http://hg.netbeans.org/jet-main/rev/e3265c3010b0
Comment 3 Quality Engineering 2013-08-09 10:50:02 UTC
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
Comment 4 Michel Graciano 2014-04-24 14:19:10 UTC
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