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 243117 - Simple java code should display 4 lines at the end of the output but only shows 1. The same code works fine in 7.4.
Summary: Simple java code should display 4 lines at the end of the output but only sho...
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 23:30 UTC by waldront
Modified: 2014-05-21 16:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (58.60 KB, text/plain)
2014-03-20 23:30 UTC, waldront
Details

Note You need to log in before you can comment on or make changes to this bug.
Description waldront 2014-03-20 23:30:29 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) Client VM 23.25-b01
Comment 1 waldront 2014-03-20 23:30:32 UTC
Created attachment 146200 [details]
IDE log
Comment 2 waldront 2014-03-20 23:34:14 UTC
package test_oru;

/**
 *
 * @author Terry
 */

import java.io.IOException;

import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.model.Varies;
import ca.uhn.hl7v2.model.v25.datatype.CE;
import ca.uhn.hl7v2.model.v25.datatype.ST;
import ca.uhn.hl7v2.model.v25.datatype.TX;
import ca.uhn.hl7v2.model.v25.group.ORU_R01_OBSERVATION;
import ca.uhn.hl7v2.model.v25.group.ORU_R01_ORDER_OBSERVATION;
import ca.uhn.hl7v2.model.v25.message.ORU_R01;
import ca.uhn.hl7v2.model.v25.segment.PID;
import ca.uhn.hl7v2.model.v25.segment.PV1;
import ca.uhn.hl7v2.model.v25.segment.OBR;
import ca.uhn.hl7v2.model.v25.segment.OBX;


        





public class Test_ORU {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws HL7Exception, IOException {
        
        ORU_R01 message = new ORU_R01();
        
        message.initQuickstart("ORU", "R01", "T");
        
        ORU_R01_ORDER_OBSERVATION orderObservation = message.getPATIENT_RESULT().getORDER_OBSERVATION();
        
        OBR obr = orderObservation.getOBR();
        obr.getSetIDOBR().setValue("1");
        obr.getFillerOrderNumber().getEntityIdentifier().setValue("0012345");
        obr.getFillerOrderNumber().getNamespaceID().setValue("DAD");
        obr.getUniversalServiceIdentifier().getIdentifier().setValue("0012345");
        
        ORU_R01_OBSERVATION observation = orderObservation.getOBSERVATION(0);
        
        OBX obx = observation.getOBX();
        obx.getSetIDOBX().setValue("1");
        obx.getObservationIdentifier().getIdentifier().setValue("0012345");
        obx.getObservationSubID().setValue("1");
        obx.getValueType().setValue("CE");
        
        
        CE ce = new CE(message);
        ce.getIdentifier().setValue("T57000");
        ce.getText().setValue("GALLBLADDER");
        ce.getNameOfCodingSystem().setValue("SNM");
        Varies value = obx.getObservationValue(0);
        value.setData(ce);
        
        // Now for the second OBX
        obx = orderObservation.getOBSERVATION(1).getOBX();
        obx.getSetIDOBX().setValue("2");
        obx.getObservationSubID().setValue("1");
        
        ST observationIdentifier = obx.getObservationIdentifier()
                .getIdentifier();
        observationIdentifier.setValue("0012345");
        ST extraSubcomponent = new ST(message);
        extraSubcomponent.setValue("MDT");
        observationIdentifier.getExtraComponents().getComponent(0)
                .setData(extraSubcomponent);
        
        obx.getValueType().setValue("TX");
        
        TX tx = new TX(message);
        tx.setValue("MICROSCOPIC EXAM SHOWS HISTOLOGICALLY NORMAL GALLBLADDER TISSUE");
        value = obx.getObservationValue(0);
        value.setData(tx);
        
        System.out.println(message.encode());
        
    }
    
}
Comment 3 Marian Mirilovic 2014-05-21 16:38:55 UTC
Hmm, hard to say from the code you attached .... the IDE shows the same output as if you run it from the console, if not please reopen and attach the whole project including libraries. Thanks in advance.