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 243574 - [hotspot] Line Feeds in Macro Expansion
Summary: [hotspot] Line Feeds in Macro Expansion
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 14:48 UTC by Vladimir Voskresensky
Modified: 2014-04-24 02:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2014-04-04 14:48:43 UTC
open jdk_trunk/hotspot/src/share/vm/runtime/globals.hpp
have a look at line 481:
#define RUNTIME_FLAGS ... \
   .........              \
   ............           \

then open macro view and there are 3 expanded lines at the end of file.
They don't have Line Feeds => i.e. the first one is very long (~37 000 symbols)
and it's impossible to find anything in this line, because Macro View doesn't have "Find" as well
Comment 1 Alexander Simon 2014-04-09 16:24:33 UTC
Code example:
------------------------8<--------------------
#include <iostream>
#define LOOP(A, V) std::cout << "Welcome ..." << std::endl;\
\
    if (argc > 1) {\
        std::cout << std::endl << "Arguments:" << std::endl;\
        for (int i = 1; i < argc; i++) {\
            std::cout << i << ": " << argv[i] << std::endl;\
        }\
    }

int main(int argc, char**argv) {
    LOOP(argc, argv)
    return 0;
}
------------------------8<--------------------
Comment 2 Alexander Simon 2014-04-09 16:36:18 UTC
fixed LF in change set:
http://hg.netbeans.org/cnd-main/rev/05b6052b8d2c
Comment 3 Quality Engineering 2014-04-10 02:02:24 UTC
Integrated into 'main-silver', will be available in build *201404100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/05b6052b8d2c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #243574 [hotspot] Line Feeds in Macro Expansion
Comment 4 Alexander Simon 2014-04-10 15:21:18 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/b3013a013993
Comment 5 Quality Engineering 2014-04-18 02:41:57 UTC
Integrated into 'main-silver', will be available in build *201404180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b3013a013993
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #243574 [hotspot] Line Feeds in Macro Expansion
- smarter macro expansion formatting
Comment 6 Quality Engineering 2014-04-24 02:17:31 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/887e31682119
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #243574 [hotspot] Line Feeds in Macro Expansion
(transplanted from 05b6052b8d2ccfc6a0b08f28161c854fd54f6f3b)