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.
Product Version: NetBeans IDE Dev (Build 070611) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u6 toSting method in Fold class returns different string on JDK 1.5.0_12 and 1.6.0_01. The problem is that ApiPackageAccessor.get().foldGetOperation(fold).getPriority()) (FoldUtilitiesImpl line 378) return 0 in one case and 1 in other case. This prevent using goldenfiles in tests. If it is as designed, feel free to close this issue and I'll update the test infrastructure to handle it. Thanks.
Are you sure that you have the same set of modules in both scenarios? The 0 or 1 looks like a priority of the fold, which is computed as an index of FoldManagerFactory that created the fold. If there is a different number of factories registered the priority of apparently the same fold will be different.
I've tested it once more time on latest daily build with jdk 1.5.0_11 and 1.6.0_02 and it it the same, the priority differs.
Could you please point me to the test? I'll have a look and hopefuly will find out what the difference is between jdk5 and 6. Thanks.
The failing test is qa-functional test in java/editor module, class name java_code_folding.JavaFoldsTest, to run from xtest you can use attribute "folding"
moving opened issues from TM <= 6.1 to TM=Dev
Marek, these are yours now ...
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss